.ldb-bis-box {
	margin: 16px 0;
	padding: 18px;
	background: #EEE9F8;
	border-radius: 12px;
}

.ldb-bis-box__title {
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #161022;
}

.ldb-bis-box__text {
	margin: 4px 0 14px;
	font-size: 15px;
	line-height: 1.5;
	color: #5C5668;
}

.ldb-bis-open {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: #3D2470;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s;
}

.ldb-bis-open:hover,
.ldb-bis-open:focus-visible {
	background: #52359A;
	color: #FFFFFF;
}

.ldb-bis-modal[hidden],
.ldb-bis-step[hidden],
.ldb-bis-form__error[hidden] {
	display: none !important;
}

.ldb-bis-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ldb-bis-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 10, 31, .6);
}

.ldb-bis-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 28px 24px;
	background: #FFFFFF;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(15, 10, 31, .35);
	color: #161022;
}

.ldb-bis-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #161022;
	cursor: pointer;
}

.ldb-bis-product {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-right: 40px;
}

.ldb-bis-product__img {
	flex: none;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border: 1px solid #E4DFF0;
	border-radius: 10px;
}

.ldb-bis-product__label {
	display: block;
	font-size: 13px;
	color: #5C5668;
}

.ldb-bis-product__name {
	display: block;
	font-family: "Space Grotesk", sans-serif;
	font-size: 16px;
	line-height: 1.3;
}

.ldb-bis-modal__title {
	margin: 20px 0 6px;
	font-family: "Space Grotesk", sans-serif;
	font-size: 24px;
	line-height: 1.2;
	color: #161022;
}

.ldb-bis-modal__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.5;
	color: #5C5668;
}

.ldb-bis-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.ldb-bis-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.ldb-bis-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #161022;
}

.ldb-bis-form input[type="text"],
.ldb-bis-form input[type="email"] {
	width: 100%;
	height: 46px;
	padding: 0 12px;
	border: 1px solid #C9BEE6;
	border-radius: 8px;
	background: #FFFFFF;
	font-family: inherit;
	font-size: 16px;
	color: #161022;
	box-sizing: border-box;
}

.ldb-bis-form input:focus {
	outline: 2px solid #52359A;
	outline-offset: 1px;
}

.ldb-bis-form .ldb-bis-form__check {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	line-height: 1.45;
	color: #5C5668;
}

.ldb-bis-form__check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #3D2470;
}

.ldb-bis-form .ldb-bis-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ldb-bis-form__error {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #FDECEF;
	font-size: 14px;
	color: #C4213A;
}

.ldb-bis-form__submit {
	min-height: 52px;
	border: 0;
	border-radius: 10px;
	background: #E0216A;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s;
}

.ldb-bis-form__submit:hover,
.ldb-bis-form__submit:focus-visible {
	background: #B8144F;
	color: #FFFFFF;
}

.ldb-bis-form__submit[disabled] {
	opacity: .7;
	cursor: wait;
}

.ldb-bis-form__legal {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #5C5668;
}

.ldb-bis-form__legal a {
	color: #3D2470;
	text-decoration: underline;
}

.ldb-bis-done {
	padding-top: 12px;
	text-align: center;
}

.ldb-bis-done__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #EEE9F8;
	color: #1B7A4B;
}

.ldb-bis-done .ldb-bis-modal__title {
	margin-top: 0;
}

.ldb-bis-done__close {
	min-height: 48px;
	padding: 0 28px;
	border: 1px solid #3D2470;
	border-radius: 10px;
	background: #FFFFFF;
	color: #3D2470;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

body.ldb-bis-lock {
	overflow: hidden;
}

@media (max-width: 600px) {
	.ldb-bis-modal {
		align-items: flex-end;
		padding: 0;
	}

	.ldb-bis-modal__dialog {
		max-width: none;
		max-height: 92vh;
		padding: 24px 20px 24px;
		border-radius: 20px 20px 0 0;
	}

	.ldb-bis-modal__title {
		font-size: 21px;
	}
}
