/* ===== Страница авторизации /auth/ — Abrau Club ===== */

body:has(.auth-page) .main_banner_after_banner,
body:has(.auth-page) .main_banner {
	display: none !important;
}

body:has(.auth-page) .maintop_bnrs {
	margin-bottom: 0 !important;
}

body:has(.auth-page) #breadcrumbs {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body:has(.auth-page) .main_content {
	padding-top: calc(136px + env(safe-area-inset-top, 0px));
}

body:has(.auth-page) .main_content .wrapper-inner.static_page {
	margin-top: 0 !important;
}

.auth-page {
	--ap-ink: #151515;
	--ap-muted: #7a7a7a;
	--ap-line: #e8e8e8;
	--ap-bg: #f6f6f6;
	--ap-radius: 10px;
	--ap-ease: cubic-bezier(.22, 1, .36, 1);
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	max-width: 440px;
	margin: 0 auto 72px;
	padding: 0 20px;
	color: var(--ap-ink);
}

.auth-page__head {
	margin: 0 0 20px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--ap-line);
	text-align: center;
}

.auth-page__title {
	margin: 0 0 8px;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--ap-ink);
}

.auth-page__lead {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--ap-muted);
	font-weight: 400;
}

.auth-page__card {
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: 0;
	padding: 28px 24px 24px;
	box-shadow: 0 8px 28px rgba(21, 21, 21, 0.06);
}

.auth-page__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
	width: 100%;
	min-height: 44px;
	border-radius: 0;
	border: 1px solid var(--ap-line);
	color: var(--ap-muted);
	text-decoration: none;
	font-size: 13px;
	font-weight: 400;
	transition: border-color .2s var(--ap-ease), color .2s var(--ap-ease), background .2s var(--ap-ease);
}

.auth-page__back:hover {
	border-color: var(--ap-ink);
	color: var(--ap-ink);
	background: var(--ap-bg);
}

/* ---- bxmaker phone auth overrides ---- */
.auth-page .bxmaker-authuserphone-simple {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
	padding: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font-family: inherit !important;
}

.auth-page .bxmaker-authuserphone-simple,
.auth-page .bxmaker-authuserphone-simple * {
	box-sizing: border-box;
}

/* Дубль «Войдите или зарегистрируйтесь…» — скрываем, заголовок уже на странице */
.auth-page .bxmaker-authuserphone-header {
	display: none !important;
}

.auth-page .bxmaker-authuserphone-input-phone__field,
.auth-page .bxmaker-authuserphone-input-phone--focus .bxmaker-authuserphone-input-phone__field,
.auth-page .bxmaker-authuserphone-input-phone--hover .bxmaker-authuserphone-input-phone__field,
.auth-page .bxmaker-authuserphone-input-phone:hover .bxmaker-authuserphone-input-phone__field,
.auth-page input[type="text"],
.auth-page input[type="tel"],
.auth-page input[type="password"] {
	border-color: var(--ap-line) !important;
	border-radius: 0 !important;
	min-height: 48px !important;
	font-size: 15px !important;
	box-shadow: none !important;
}

.auth-page .bxmaker-authuserphone-input-phone--focus .bxmaker-authuserphone-input-phone__field,
.auth-page input:focus {
	border-color: var(--ap-ink) !important;
}

.auth-page .bxmaker-authuserphone-input-phone--flag .bxmaker-authuserphone-input-phone__flag {
	opacity: 0 !important;
}

.auth-page .bxmaker-authuserphone-button {
	color: #fff !important;
}

.auth-page .bxmaker-authuserphone-button__inner,
.auth-page .bxmaker-authuserphone-button--white .bxmaker-authuserphone-button__inner,
.auth-page button[type="submit"] {
	background: var(--ap-ink) !important;
	border: 1px solid var(--ap-ink) !important;
	border-radius: 0 !important;
	min-height: 48px !important;
	box-shadow: none !important;
	opacity: 1 !important;
}

.auth-page .bxmaker-authuserphone-button__title,
.auth-page .bxmaker-authuserphone-button .bxmaker-authuserphone-button__title,
.auth-page .bxmaker-authuserphone-button--white .bxmaker-authuserphone-button__title,
.auth-page .bxmaker-authuserphone-button:hover .bxmaker-authuserphone-button__title,
.auth-page .bxmaker-authuserphone-button--white:hover .bxmaker-authuserphone-button__title {
	color: #fff !important;
	font-weight: 400 !important;
	font-size: 14px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	line-height: 1.2 !important;
}

.auth-page .bxmaker-authuserphone-button:hover .bxmaker-authuserphone-button__inner,
.auth-page .bxmaker-authuserphone-button--white:hover .bxmaker-authuserphone-button__inner {
	background: #2a2a2a !important;
	border-color: #2a2a2a !important;
	opacity: 1 !important;
}

.auth-page .bxmaker-authuserphone-loader {
	color: #fff !important;
}

.auth-page .store {
	display: none !important;
}

/* ---- попап входа (списки / шаринг) ---- */
.popup-window.wish-auth-popup-window,
#wishAuthPopup.popup-window {
	width: min(100vw - 32px, 400px) !important;
	border: 1px solid #e8e8e8 !important;
	border-radius: 0 !important;
	box-shadow: 0 16px 48px rgba(21, 21, 21, 0.16) !important;
	overflow: hidden;
	background: #fff !important;
	padding: 0 !important;
}

#wishAuthPopup .popup-window-content {
	padding: 28px 24px 24px !important;
	background: #fff !important;
}

#wishAuthPopup .popup-window-close-icon {
	top: 14px !important;
	right: 14px !important;
	opacity: 0.55;
}

#wishAuthPopup .popup-window-titlebar {
	display: none !important;
}

#wishAuthPopup .wish-auth-popup {
	padding: 0;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	color: #151515;
	text-align: center;
}

#wishAuthPopup .wish-auth-popup__brand {
	margin: 0 0 10px;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #151515;
}

#wishAuthPopup .wish-auth-popup__title {
	margin: 0 0 8px;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: 26px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: #151515;
}

#wishAuthPopup .wish-auth-popup__text {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.45;
	color: #7a7a7a;
	font-weight: 400;
}

#wishAuthPopup .wish-auth-popup__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#wishAuthPopup .wish-auth-popup__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 0;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none !important;
	cursor: pointer;
	border: 1px solid transparent;
	box-sizing: border-box;
	transition: opacity .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

#wishAuthPopup a.wish-auth-popup__btn--primary,
#wishAuthPopup .wish-auth-popup__btn--primary {
	background: #151515 !important;
	border-color: #151515 !important;
	color: #ffffff !important;
}

#wishAuthPopup a.wish-auth-popup__btn--primary:hover,
#wishAuthPopup .wish-auth-popup__btn--primary:hover,
#wishAuthPopup a.wish-auth-popup__btn--primary:visited {
	opacity: 0.9;
	background: #151515 !important;
	color: #ffffff !important;
}

#wishAuthPopup .wish-auth-popup__btn--ghost {
	background: transparent !important;
	border-color: #e8e8e8 !important;
	color: #7a7a7a !important;
}

#wishAuthPopup .wish-auth-popup__btn--ghost:hover {
	border-color: #151515 !important;
	color: #151515 !important;
}

@media (max-width: 576px) {
	.auth-page {
		padding: 0 16px;
		margin-bottom: 48px;
	}

	.auth-page__card {
		padding: 22px 18px 18px;
	}
}

/* ---- wish toasts / lists popups ---- */
@keyframes abrauWishToastIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

#addedToWishList.popup-window,
#removedFromWishList.popup-window {
	width: min(100vw - 32px, 320px) !important;
	padding: 18px 20px 16px !important;
	right: 24px !important;
	bottom: 24px !important;
	left: auto !important;
	top: auto !important;
	border: 1px solid #e8e8e8 !important;
	border-radius: 0 !important;
	box-shadow: 0 16px 40px rgba(21, 21, 21, 0.14) !important;
	background: #fff !important;
	overflow: hidden;
	animation: abrauWishToastIn .28s ease forwards !important;
}

#addedToWishList .popup-window-content,
#removedFromWishList .popup-window-content {
	margin-bottom: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

#addedToWishList .popup-window-close-icon,
#removedFromWishList .popup-window-close-icon {
	top: 10px !important;
	right: 10px !important;
	opacity: 0.5;
}

#addedToWishList .wish-popup-added-to-fav,
#removedFromWishList .wish-popup-added-to-fav {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	color: #151515;
}

#addedToWishList .wish-popup-added-to-fav svg,
#removedFromWishList .wish-popup-added-to-fav svg {
	width: 36px !important;
	height: 36px !important;
	margin-right: 0 !important;
	flex-shrink: 0;
	border-radius: 0;
}

#addedToWishList .wish-popup-added-to-fav p,
#removedFromWishList .wish-popup-added-to-fav p,
#addedToWishList .wish-popup-added-to-fav a {
	font-size: 14px;
	line-height: 1.35;
	font-weight: 400;
	text-align: left;
	color: #151515;
}

#addedToWishList .wish-popup-added-to-fav a {
	font-weight: 400;
	border-bottom: 1px solid rgba(21, 21, 21, 0.25);
	text-decoration: none;
	transition: border-color .2s ease;
}

#addedToWishList .wish-popup-added-to-fav a:hover {
	border-bottom-color: transparent;
}

#addedToWishList .popup-window-buttons {
	padding: 0 !important;
	margin-top: 14px;
}

#addedToWishList .btn_fill {
	margin: 0 !important;
	width: 100% !important;
	height: 42px !important;
	border-radius: 0 !important;
	text-transform: none !important;
	background: #151515 !important;
	border-color: #151515 !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: 0;
}

#addedToWishList .btn_fill:hover {
	opacity: 0.9;
}

/* большой попап «Добавить / изменить список» */
#addToWishList.popup-window {
	width: min(100vw - 32px, 440px) !important;
	padding: 28px 28px 24px !important;
	border: 1px solid #e8e8e8 !important;
	border-radius: 0 !important;
	box-shadow: 0 16px 48px rgba(21, 21, 21, 0.16) !important;
	background: #fff !important;
	overflow: hidden;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
}

#addToWishList .popup-window-close-icon {
	top: 14px !important;
	right: 14px !important;
	opacity: 0.55;
}

#addToWishList .popup-window-titlebar-text {
	margin: 0 0 22px !important;
	padding: 0 !important;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: 22px !important;
	font-weight: 400 !important;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-align: left;
	color: #151515;
}

#addToWishList .popup-window-content {
	margin-bottom: 16px !important;
	padding: 0 !important;
}

#addToWishList .wish-popup-product {
	display: flex !important;
	align-items: center;
	gap: 14px;
	padding: 0 0 18px;
	border-bottom: 1px solid #e8e8e8;
	margin-bottom: 4px;
}

#addToWishList .wish-popup-product img {
	width: 64px;
	height: 80px;
	margin-right: 0 !important;
	border-radius: 0;
	object-fit: cover;
	background: #f6f6f6;
}

#addToWishList .wish-popup-product-name {
	font-size: 14px;
	line-height: 1.35;
	font-weight: 400;
	color: #151515;
}

#addToWishList .wish-popup-product-price {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 400;
	color: #151515;
}

#addToWishList .wish-popup-move-hint {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.4;
	color: #7a7a7a;
	font-weight: 400;
	text-align: left;
}

#addToWishList .popup-window-buttons {
	max-height: 360px;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#addToWishList .wish-popup-btn {
	width: 100%;
	min-height: 48px;
	height: auto;
	margin: 0 !important;
	padding: 12px 16px;
	border-radius: 0;
	border: 1px solid #e8e8e8;
	background: #fff;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 400;
	color: #151515;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}

#addToWishList .wish-popup-btn:first-child::before {
	content: '+';
	display: inline-block;
	font-size: 20px;
	font-weight: 400;
	margin-right: 6px;
	line-height: 1;
}

#addToWishList .wish-popup-btn:hover {
	background: #f6f6f6;
	border-color: #d8d8d8;
}

#addToWishList .wish-popup-btn.active {
	border-color: #151515;
	background: #fff;
}

#addToWishList .btn_fill.popup-btn,
#addToWishList .btn_fill {
	width: 100%;
	min-height: 48px;
	margin: 8px 0 0 !important;
	border-radius: 0 !important;
	background: #151515 !important;
	border: 1px solid #151515 !important;
	color: #fff !important;
	text-transform: none !important;
	font-size: 14px !important;
	font-weight: 400 !important;
}

#addToWishList .btn_fill:hover {
	opacity: 0.9;
}

#addToWishList #createWishlist {
	width: 100%;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 400;
	padding: 14px 16px;
	margin: 0 0 4px;
	border: 1px solid #e8e8e8;
	border-radius: 0;
	background: #fff;
	transition: border-color .2s ease;
}

#addToWishList #createWishlist:focus {
	border-color: #151515;
	outline: none;
}

#addToWishList #createWishlist.error {
	border-color: #c44;
}

@media (max-width: 576px) {
	#addedToWishList.popup-window,
	#removedFromWishList.popup-window {
		right: 16px !important;
		bottom: 16px !important;
		left: 16px !important;
		width: auto !important;
	}

	#addToWishList.popup-window {
		padding: 22px 18px 18px !important;
	}

	#addToWishList .popup-window-titlebar-text {
		font-size: 20px !important;
	}
}


/* ===== auth / authc polish ===== */
.auth-page__brand {
	margin: 0 0 10px;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ap-ink);
}

/* только контент авторизации — не трогаем footer .wrapper-inner */
body:has(.auth-page) .main_content > .wrapper-inner.static_page,
body:has(.auth-page) .main_content > .wrapper-inner {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 560px;
	width: 100%;
}

body:has(.auth-page) .footer .wrapper-inner,
body:has(.auth-page) footer .wrapper-inner {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: none;
	width: auto;
}

.auth-page {
	padding-top: 20px;
}


.auth-page .abrau-auth-consent {
	margin-top: 14px;
	padding: 12px;
	border-radius: 0;
	background: var(--ap-bg);
	border: 1px solid var(--ap-line);
}

.auth-page .abrau-auth-consent__item,
.auth-page .abrau-auth-consent__item span,
.auth-page .abrau-auth-consent__item a {
	font-size: 11px !important;
	line-height: 1.35 !important;
}


@media (max-width: 576px) {
	.auth-page {
		padding: 8px 16px 48px;
	}
	.auth-page__card {
		padding: 22px 16px 18px;
		border-radius: 0;
	}
}
