/* HW_CLAUDE_SBERID_BUTTON_v1 (2026-10-28)
 * Кнопка Сбер ID в окне «Личный кабинет», на /auth/ и на регистрации (блок .soc-avt шаблона Aspro),
 * вариант А, выбранный владельцем: вместо «Быстрый вход через соцсети» разделитель «или», широкая
 * зелёная кнопка «Войти по Сбер ID» и строка «Счёт в Сбербанке не нужен…» под ней.
 * По правилам Сбера: рекомендованный текст, зелёный цвет (основная кнопка сайта не зелёная), скругление
 * как у .btn-lg сайта («таблетка» 26px). Разметку модуля и шаблона не меняем — только CSS, текст через content.
 * На /order/ кнопку и строку ставит hw-sberid.js.
 * Подключение: строка в $assets в /local/php_interface/init.php. Откат: убрать строку, удалить файл. */

.soc-avt:has(.sberid-button) > .title {
	position: relative;
	display: block !important;
	width: 100%;
	height: 20px;
	margin: 22px 0 16px !important;
	padding: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-align: center;
}
.soc-avt:has(.sberid-button) > .title::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	border-top: 1px solid #e5e5e5;
}
.soc-avt:has(.sberid-button) > .title::after {
	content: "или";
	position: relative;
	display: inline-block;
	padding: 0 12px;
	background: var(--card_bg_black, #fff);
	color: inherit;
	font-size: 13px;
	line-height: 20px;
}

.soc-avt .auth:has(.sberid-button) {
	display: block;
}
.soc-avt .auth .sberid-button + .bx-spacer {
	display: none !important;
}
.soc-avt .auth .bx-ss-button.sberid-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	float: none !important;
	box-sizing: border-box;
	width: 100% !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 26px !important;
	background: #21a038 !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600;
	line-height: 1 !important;
	text-align: center;
	text-decoration: none !important;
	transition: background-color .15s;
}
.soc-avt .auth .bx-ss-button.sberid-button:hover,
.soc-avt .auth .bx-ss-button.sberid-button:focus-visible {
	background: #1b8a30 !important;
}
.soc-avt .auth .bx-ss-button.sberid-button:active {
	background: #167527 !important;
}
.soc-avt .auth .bx-ss-button.sberid-button:focus-visible {
	outline: 2px solid #21a038;
	outline-offset: 3px;
}
.soc-avt .auth .bx-ss-button.sberid-button::after {
	content: "Войти по Сбер ID";
}
.soc-avt .auth .bx-ss-button.sberid-button i.sberbank_id_icon {
	display: block !important;
	flex: 0 0 22px;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
	border-radius: 0 !important;
	background: url("/bitrix/images/sberbank.id/sber_id_logo_white.svg") center / contain no-repeat !important;
}
.soc-avt .auth:has(.sberid-button)::after {
	content: "Счёт в Сбербанке не нужен — достаточно номера телефона и кода из СМС";
	display: block;
	margin-top: 10px;
	color: inherit;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
	text-wrap: balance;
}
