

/* Start:/opt/assets/opt.css?179204644210018*/
/* Стили раздела /opt/ (вход/регистрация/личный кабинет оптовиков и дилеров).
   Цвета взяты из макета (front/auth, front/personal): акцент #ef3c2e, тёмный #070707,
   светло-серый фон полей #f2f2f2. Хедер/футер сайта не дублируются — это разметка только
   контентной области, обвязка приходит из bitrix/header.php и bitrix/footer.php. */

.opt-wrap {
	max-width: 480px;
	margin: 48px auto;
	padding: 0 16px;
}

.opt-wrap--wide {
	max-width: 1500px;
}

.opt-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 16px;
	padding: 32px;
}

.opt-title {
	font-size: 24px;
	font-weight: 700;
	color: #070707;
	margin: 0 0 8px;
}

.opt-subtitle {
	font-size: 14px;
	color: #666;
	margin: 0 0 24px;
}

.opt-field {
	margin-bottom: 16px;
}

.opt-field label {
	display: block;
	font-size: 12px;
	color: #888;
	margin-bottom: 6px;
}

.opt-field input,
.opt-field select,
.opt-field textarea {
	width: 100%;
	box-sizing: border-box;
	background: #f2f2f2;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
	color: #070707;
}

.opt-field input:focus,
.opt-field select:focus,
.opt-field textarea:focus {
	outline: none;
	border-color: #ef3c2e;
	background: #fff;
}

.opt-field input[readonly] {
	color: #888;
}

.opt-password-wrap {
	position: relative;
}

.opt-password-wrap input {
	padding-right: 44px;
}

.opt-password-toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	padding: 0;
	color: #999;
	cursor: pointer;
}

.opt-password-toggle svg {
	width: 20px;
	height: 20px;
}

.opt-password-toggle .opt-password-toggle__slash {
	opacity: 0;
}

.opt-password-toggle--active {
	color: #ef3c2e;
}

.opt-password-toggle--active .opt-password-toggle__slash {
	opacity: 1;
}

.opt-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 12px;
	align-items: start;
}

/* display:contents отдаёт label/input .opt-field-row напрямую в грид-родитель — так лейбл и
   инпут каждой колонки садятся каждый в свой ряд (1 и 2), и инпуты выравниваются по одной
   линии, даже если в одном из лейблов текст длиннее и занимает две строки. Раз .opt-field
   перестаёт быть блоком, его margin-bottom больше не работает — отступ снизу перенесён на сам
   инпут/селект (below). */
.opt-field-row .opt-field {
	display: contents;
}

.opt-field-row .opt-field label {
	grid-row: 1;
}

.opt-field-row .opt-field input,
.opt-field-row .opt-field select,
.opt-field-row .opt-field textarea {
	grid-row: 2;
	margin-bottom: 16px;
}

.opt-btn {
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
	background: #ef3c2e;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 14px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}

.opt-btn:hover {
	background: #d6321f;
}

.opt-btn:disabled {
	opacity: .6;
	cursor: default;
}

/* Кнопка "Сохранить" в /opt/cabinet/personal/ не должна тянуться на всю ширину формы,
   в отличие от остальных .opt-btn (вход/регистрация и т.п.), где растяжение уместно. */
#opt-profile-submit {
	display: inline-block;
	width: auto;
	padding-left: 32px;
	padding-right: 32px;
}

.opt-btn--secondary {
	background: #f2f2f2;
	color: #070707;
}

.opt-btn--secondary:hover {
	background: #e5e5e5;
}

.opt-btn--dark {
	background: #070707;
}

.opt-btn--dark:hover {
	background: #232323;
}

.opt-links {
	display: flex;
	justify-content: space-between;
	margin: 16px 0 24px;
	font-size: 13px;
}

.opt-links a {
	color: #070707;
	text-decoration: underline;
}

.opt-consent {
	font-size: 12px;
	color: #888;
	margin-top: 16px;
	line-height: 1.4;
}

.opt-consent a {
	color: #070707;
}

.opt-alert {
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 13px;
	margin-bottom: 20px;
}

.opt-alert--error {
	background: #fdeceb;
	color: #b3261e;
}

.opt-alert--info {
	background: #fff8dc;
	color: #6b5900;
}

/* Статичная плашка в разметке страницы. Намеренно не .opt-alert: optShowAlert()/optHideAlert()
   ищут в карточке именно .opt-alert и подменили бы/удалили её вместе с ошибками формы. */
.opt-notice {
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 13px;
	margin-bottom: 20px;
	background: #fff8dc;
	color: #6b5900;
}

.opt-alert--success {
	background: #eaf7ec;
	color: #1e7a34;
}

/* Код подтверждения email — 4 цифры */

.opt-code-row {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 20px 0;
}

.opt-code-digit {
	width: 56px;
	height: 56px;
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	background: #f2f2f2;
	border: 1px solid transparent;
	border-radius: 10px;
	color: #070707;
}

.opt-code-digit:focus {
	outline: none;
	border-color: #ef3c2e;
	background: #fff;
}

.opt-resend {
	font-size: 13px;
	color: #888;
}

.opt-resend a {
	color: #070707;
	text-decoration: underline;
}

/* Тип аккаунта — переключатель */

.opt-type-switch {
	display: flex;
	gap: 8px;
	background: #f2f2f2;
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 20px;
}

.opt-type-switch label {
	flex: 1;
	text-align: center;
	padding: 10px 8px;
	font-size: 13px;
	border-radius: 8px;
	cursor: pointer;
	color: #070707;
}

.opt-type-switch input {
	display: none;
}

.opt-type-switch input:checked + span {
	display: block;
}

.opt-type-switch label:has(input:checked) {
	background: #070707;
	color: #fff;
}

.opt-type-switch label.is-disabled {
	opacity: .45;
	cursor: not-allowed;
}

.opt-section-title {
	font-size: 15px;
	font-weight: 600;
	color: #070707;
	margin: 28px 0 12px;
}

.opt-section-title:first-child {
	margin-top: 0;
}

.opt-suggest-box {
	background: #fff8dc;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 13px;
	color: #4a3f00;
	margin: -8px 0 16px;
}

.opt-suggest-box div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 0;
}

/* Личный кабинет — двухколоночный лейаут */

.opt-cabinet {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.opt-cabinet-side {
	width: 280px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.opt-cabinet-card {
	padding: 24px;
	box-shadow: -10px 0px 74px 0px #0000001A;
}

.opt-logout-btn {
	width: 85px;
}

.opt-cabinet-heading {
	font-size: 20px;
	font-weight: 700;
	color: #070707;
	margin: 0 0 12px;
}

.opt-badge {
	display: inline-block;
	background: #fff8dc;
	color: #070707;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 6px 12px;
	margin-bottom: 20px;
}

.opt-cabinet-info {
	margin-bottom: 20px;
}

.opt-cabinet-info__row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #070707;
	padding: 6px 0;
}

.opt-cabinet-info__row .icon {
	flex-shrink: 0;
	color: #999;
}

.opt-cabinet-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.opt-cabinet-nav__link {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	color: #070707;
	text-decoration: none;
}

.opt-cabinet-nav__link:hover {
	background: #f7f7f7;
}

.opt-cabinet-nav__link.is-active {
	background: #f2f2f2;
	font-weight: 600;
}

.opt-cabinet-content {
	flex: 1;
	min-width: 0;
}

/* Анкета-визард "заведение" (/opt/cabinet/venue/) */

.opt-wizard-step {
	display: none;
}

.opt-wizard-step.is-active .opt-field {
	margin: 16px;
}

.opt-wizard-step.is-active {
	display: block;
}

.opt-wizard-nav {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

/* Фиксированная ширина (а не flex:1) — иначе одна кнопка "Далее" без "Назад" (первый шаг)
   растягивалась бы на всю ширину. Ширина считается так, чтобы при двух кнопках (Назад+Далее)
   они по-прежнему занимали всю строку без изменений: 50% - половина gap на каждую. */
.opt-wizard-nav .opt-btn {
	flex: 0 0 auto;
	width: calc(50% - 6px);
}

/* Мои заказы (/opt/cabinet/orders/) */

.opt-orders-calendar-pop {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	width: 260px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	padding: 16px;
}

.opt-orders-calendar-pop__field {
	display: block;
	margin-bottom: 12px;
}

.opt-orders-calendar-pop__field span {
	display: block;
	font-size: 12px;
	color: #888;
	margin-bottom: 6px;
}

.opt-orders-calendar-pop__field input {
	width: 100%;
	box-sizing: border-box;
	background: #f2f2f2;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13px;
	color: #070707;
}

.opt-orders-calendar-pop__actions {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.opt-orders-calendar-pop__actions .opt-btn {
	padding: 10px;
	font-size: 13px;
}

@media (max-width: 720px) {
	.opt-cabinet {
		flex-direction: column;
	}
	.opt-cabinet-side {
		width: 100%;
		box-sizing: border-box;
	}
	.opt-field-row {
		grid-template-columns: 1fr;
	}
	.opt-field-row .opt-field label,
	.opt-field-row .opt-field input,
	.opt-field-row .opt-field select,
	.opt-field-row .opt-field textarea {
		grid-row: auto;
	}
}

/* End */
/* /opt/assets/opt.css?179204644210018 */
