/*
 * Карточка каталога [samosale_product_bonus_badge] — базовая вёрстка;
 * цвета/кегли — инлайн из настроек (get_badge_inline_css).
 */
.samosale-product-bonus-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	box-sizing: border-box;
	padding: 4px 6px;
	border: 1px solid #7a924e;
	border-radius: 8px;
	background: #f7faf2;
	line-height: 1.25;
}
.samosale-product-bonus-badge-icon {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}
.samosale-product-bonus-badge-icon-custom {
	overflow: hidden;
	box-shadow: none;
}
.samosale-product-bonus-badge .samosale-product-bonus-badge-icon-custom img {
	width: 24px;
	height: 24px;
	margin-bottom: 0;
}
.samosale-product-bonus-badge-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	text-align: left;
}
.samosale-product-bonus-badge-desc,
.samosale-product-bonus-badge-title {
	display: block;
}

/*
 * Страница товара [samosale_product_cashback] — инлайн из get_product_detail_bonus_inline_css.
 */
.samosale-product-detail-bonus {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	box-sizing: border-box;
	padding: 10px 15px;
	margin: 16px 0;
	border: 1px solid #a8b89a;
	border-radius: 10px;
	background: #faf9f4;
}
.samosale-product-detail-bonus-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.samosale-product-detail-bonus-icon-img,
.samosale-product-detail-bonus-icon img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.samosale-product-detail-bonus-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 3px;
	min-width: 0;
	text-align: left;
}
.samosale-product-detail-bonus-title,
.samosale-product-detail-bonus-desc {
	display: block;
	line-height: 1.2;
}
.samosale-product-detail-bonus-title {
	font-weight: 700;
}
.samosale-checkout-guest-register,
.samosale-checkout-bonuses-panel,
.samosale-checkout-phone-confirm-wrap {
	flex-direction: column;
}
.samosale-no-phone-panel,
.samosale-account-no-phone-panel,
.samosale-checkout-no-phone-panel {
	margin: 0;
}
.samosale-no-phone-message,
.samosale-checkout-no-phone-message {
	font-size: 14px;
	color: #333;
	margin: 0 0 12px;
}
.samosale-no-phone-row,
.samosale-checkout-no-phone-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
}
.samosale-no-phone-input,
.samosale-checkout-no-phone-input {
	flex: 1 1 200px;
	max-width: 320px;
	padding: 7px 16px;
	border-radius: 10px;
	border: 1px solid #e0dcd4;
	font-size: 16px;
	background: #fff;
	box-sizing: border-box;
}
.samosale-no-phone-status {
	margin: 10px 0 0;
	font-size: 14px;
	min-height: 20px;
	color: #333;
}
.samosale-account .samosale-register-link {
	display: inline-flex;
	margin-top: 16px;
}
.samosale-account-no-phone-panel .samosale-no-phone-input {
	display: block;
	width: 100%;
	min-width: 0;
	padding: 8px 16px;
}
.samosale-checkout-phone-confirm {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.samosale-checkout-phone-confirm-text {
	margin: 0;
	font-size: 15px;
	color: #333;
}
.samosale-checkout-phone-confirm-status {
	margin: 0;
	font-size: 14px;
	min-height: 20px;
	color: #333;
}
.samosale-checkout-phone-confirm-btn--loading {
	position: relative;
	pointer-events: none;
	opacity: 0.9;
	padding-left: 40px !important;
}
.samosale-checkout-phone-confirm-btn--loading::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	margin-top: -8px;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border: 2px solid rgba(0, 0, 0, 0.12);
	border-top-color: #7a924e;
	border-radius: 50%;
	animation: samosale-spin 0.65s linear infinite;
}
.samosale-co-bonus-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	margin: 0 0 16px;
	border-radius: 12px;
	background: #fff9e6;
}
.samosale-co-bonus-banner-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
	text-align: left;
}
.samosale-co-bonus-banner-title,
.samosale-co-bonus-banner-desc {
	display: block;
}
.samosale-co-bonus-banner-title,
.samosale-co-bonus-banner-points {
	font-weight: 700;
}
.samosale-co-bonus-banner-icon {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.samosale-co-bonus-banner-icon-img,
.samosale-co-bonus-banner-icon img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

/*
 * Прочее
 */
.samosale-block {
	margin: 16px 0;
	padding: 16px;
	border: 1px solid #e0e0e0;
	background: #fafafa;
	border-radius: 4px;
}
.samosale-cart.samosale-block {
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}
.samosale-checkout-summary.samosale-block {
	display: flex;
	flex-direction: column;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

/* Оформление заказа: списание бонусов */
.samosale-checkout-redeem {
	display: flex;
	flex-direction: column;
	margin-top: 0;
}
.samosale-checkout-redeem-heading {
	display: block !important;
	font-size: 20px;
	font-weight: 700;
	margin-block: 16px;
	color: #1a1a1a;
}
.samosale-checkout-no-phone {
	font-size: 14px;
	color: #b32d2e;
	margin: 0 0 14px;
}
.samosale-checkout-redeem-row {
	display: flex;
	align-items: center;
	gap: 14px 16px;
}
.samosale-checkout-redeem-fields {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.samosale-checkout-spend-label {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
}
.samosale-checkout-spend-note {
	margin: 0;
	font-size: 14px;
	color: #555;
}
.samosale-checkout-bonus-toggle {
	display: inline-flex ;
	align-items: center;
	margin-bottom: 0;
	cursor: pointer;
	user-select: none;
}
.samosale-checkout-bonus-switch {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	margin: 0;
	padding: 0;
	border: 0;
	clip: rect(0 0 0 0);
	-webkit-appearance: none;
	appearance: none;
}
.samosale-checkout-bonus-switch-ui {
	position: relative;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: #ccc;
	transition: background 0.2s ease;
	box-sizing: border-box;
}
.samosale-checkout-bonus-switch-ui::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}
.samosale-checkout-bonus-switch:checked + .samosale-checkout-bonus-switch-ui {
	background: #7a924e;
}
.samosale-checkout-bonus-switch:checked + .samosale-checkout-bonus-switch-ui::after {
	transform: translateX(20px);
}
.samosale-checkout-bonus-switch:focus-visible + .samosale-checkout-bonus-switch-ui {
	outline: 2px solid #7a924e;
	outline-offset: 2px;
}
.samosale-checkout-btn--loading {
	position: relative;
	pointer-events: none;
	opacity: 0.9;
}
@keyframes samosale-spin {
	to {
		transform: rotate(360deg);
	}
}
.samosale-checkout-request-confirm--loading {
	position: relative;
	pointer-events: none;
	opacity: 0.9;
	padding-left: 40px !important;
}
.samosale-checkout-request-confirm--loading::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	margin-top: -8px;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border: 2px solid rgba(0, 0, 0, 0.12);
	border-top-color: #7a924e;
	border-radius: 50%;
	animation: samosale-spin 0.65s linear infinite;
}
.samosale-checkout-status {
	margin: 10px 0 0;
	font-size: 14px;
	min-height: 20px;
	color: #333;
}
.samosale-checkout-status:empty {
	display: none;
}
.samosale-account-dash {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 16px 0 24px;
	align-items: stretch;
}
.samosale-account-phone-confirm-card {
	box-sizing: border-box;
	padding: 16px 18px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e8e8e8;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	margin: 0 0 16px;
}
.samosale-account-phone-value {
	margin: 8px 0;
	font-weight: 700;
}
.samosale-account-phone-confirm-status {
	margin: 8px 0 0;
	font-size: 14px;
	min-height: 20px;
	color: #333;
}
.samosale-account-phone-confirm-btn--loading {
	position: relative;
	pointer-events: none;
	opacity: 0.9;
	padding-left: 40px !important;
}
.samosale-account-phone-confirm-btn--loading::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	margin-top: -8px;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border: 2px solid rgba(0, 0, 0, 0.12);
	border-top-color: #7a924e;
	border-radius: 50%;
	animation: samosale-spin 0.65s linear infinite;
}
.samosale-account-balance-card,
.samosale-account-level-card {
	box-sizing: border-box;
	padding: 20px 22px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e8e8e8;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.samosale-account-label,
.samosale-account-hero {
	margin: 0 0 8px;
}
.samosale-account-text {
	margin: 8px 0;
}
.samosale-account-text:last-child {
	margin-bottom: 0;
}
.samosale-account-howto {
	margin-top: 12px;
}
.samosale-account-howto-summary {
	cursor: pointer;
	list-style: none;
	display: inline-flex;
	align-items: center;
	padding: 7px 15px;
	border: 1px solid #cfd4c8;
	border-radius: 999px;
	background: #fff;
	font: inherit;
}
.samosale-account-howto-summary img {
	margin-right: 8px !important;
}
.samosale-account-howto-summary::-webkit-details-marker {
	display: none;
}
.samosale-account-howto-body {
	padding: 10px 0 0;
}
.samosale-account-level-main {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 4px;
}
.samosale-account-level-copy {
	flex: 1;
	min-width: 0;
}
.samosale-account-level-icon {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #f0f2eb;
	display: flex;
	align-items: center;
	justify-content: center;
}
.samosale-account-level-icon-img {
	display: block;
	width: 28px;
	height: auto;
	max-height: 30px;
	object-fit: contain;
}
.samosale-account-next-level .samosale-account-amount {
	display: inline-block;
	margin-left: 4px;
	font-weight: 700;
}
.samosale-account-progress-summary {
	text-align: right;
	margin-top: 6px;
}
.samosale-account-progress-summary .samosale-account-amount {
	font-weight: 700;
}
.samosale-account-progress {
	height: 10px;
	border-radius: 6px;
	background: #e8e8e8;
	overflow: hidden;
	margin-top: 10px;
}
.samosale-account-progress-fill {
	height: 100%;
	border-radius: 6px;
	background: #7a924e;
	transition: width 0.35s ease;
}
.samosale-account-progress-unknown .samosale-account-progress-fill {
	background: #9e9e9e;
	animation: samosale-loyalty-pulse 1.2s ease-in-out infinite;
}
.samosale-loyalty-program .samosale-account-label {
	margin-bottom: 12px;
}
.samosale-account-history .samosale-account-label {
	margin-bottom: 12px;
}
.samosale-account-ops-empty {
	margin: 0;
	color: #666;
}
.samosale-account-ops-wrap {
	overflow-x: auto;
	margin-top: 4px;
	-webkit-overflow-scrolling: touch;
}

.samosale-account-ops-order-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.samosale-account-ops-order-link:hover,
.samosale-account-ops-order-link:focus {
	text-decoration-thickness: 1px;
}
.samosale-account-ops-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.45;
	background: #fff;
	min-width: 520px;
}
.samosale-account-ops-table thead th {
	text-align: left;
	font-weight: 700;
	font-size: 13px;
	color: #888;
	padding: 10px 12px 8px;
	border-bottom: 1px solid #e8e8e8;
}
.samosale-account-ops-table tbody td {
	padding: 12px 12px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}
.samosale-account-ops-table tbody tr:last-child td {
	border-bottom: none;
}
.samosale-account-ops-col-amount,
.samosale-account-ops-col-balance {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.samosale-account-ops-type {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}
.samosale-account-ops-type-accrual {
	background: #e8f5e9;
	color: #1b5e20;
}
.samosale-account-ops-type-deduct {
	background: #ffebee;
	color: #c62828;
}
.samosale-account-ops-amount-positive {
	color: #2e7d32;
	font-weight: 700;
}
.samosale-account-ops-amount-negative {
	color: #c62828;
	font-weight: 700;
}
.samosale-account-ops-balance {
	font-weight: 700;
	color: #222;
}
@keyframes samosale-loyalty-pulse {
	0%,
	100% {
		opacity: 0.35;
	}
	50% {
		opacity: 0.7;
	}
}
.samosale-loyalty-program-content {
	margin-top: 8px;
}
.samosale-checkout-guest-register {
	padding: 24px  16px;
	border: 1px solid #e4e4e4;
	border-radius: 6px;
	background: #fafafa;
}
.samosale-checkout-guest-register-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	color: #222;
}
.samosale-checkout-guest-register-desc {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.45;
	color: #555;
}
.samosale-checkout-guest-register-status {
	margin: 10px 0 0;
	font-size: 14px;
	min-height: 0;
	color: #333;
}
.samosale-checkout-guest-register-status[hidden] {
	display: none;
}
.samosale-checkout-guest-register-actions {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}
.samosale-checkout-guest-register-actions .button,
.samosale-account .samosale-register-link {
	height: auto;
	padding: 8px 15px;
	border-radius: 6px;
}
.samosale-fixed-guest-register {
	position: fixed;
	bottom: 20px;
	z-index: 9999;
	width: min(300px, calc(100vw - 24px));
	text-align: center;
}
.samosale-fixed-guest-register--left {
	left: 12px;
}
.samosale-fixed-guest-register--center {
	left: 50%;
	transform: translateX(-50%);
}
.samosale-fixed-guest-register--right {
	right: 12px;
}
.samosale-fixed-guest-register .samosale-checkout-guest-register {
	position: relative;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}
.samosale-fixed-guest-register-actions {
	grid-template-columns: 1fr;
	margin: 0;
}
.samosale-fixed-guest-register-close {
	position: absolute;
	top: 2px;
	right: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #000;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.samosale-fixed-guest-register-close:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #222;
}
.samosale-fixed-guest-register-close:focus-visible {
	outline: 2px solid #7a924e;
	outline-offset: 1px;
}
.samosale-checkout-bonuses-panel {
	margin-top: 0;
}

@keyframes samosale-checkout-shimmer {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

.samosale-checkout-summary--loading .samosale-checkout-guest-register,
.samosale-checkout-summary--loading .samosale-checkout-bonuses-panel,
.samosale-checkout-summary--loading .samosale-checkout-phone-confirm-wrap {
	position: relative;
	overflow: hidden;
}

.samosale-checkout-summary--loading .samosale-checkout-guest-register > *,
.samosale-checkout-summary--loading .samosale-checkout-bonuses-panel > *,
.samosale-checkout-summary--loading .samosale-checkout-phone-confirm-wrap > * {
	opacity: 0.25;
	transition: opacity 0.2s ease;
}

.samosale-checkout-summary--loading .samosale-checkout-bonus-switch-ui,
.samosale-checkout-summary--loading .samosale-checkout-bonus-switch-ui::after {
	transition: none !important;
}

.samosale-checkout-summary--loading .samosale-checkout-guest-register::after,
.samosale-checkout-summary--loading .samosale-checkout-bonuses-panel::after,
.samosale-checkout-summary--loading .samosale-checkout-phone-confirm-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 255, 255, 0) 100%);
	animation: samosale-checkout-shimmer 1.1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	.samosale-checkout-summary--loading .samosale-checkout-guest-register::after,
	.samosale-checkout-summary--loading .samosale-checkout-bonuses-panel::after,
	.samosale-checkout-summary--loading .samosale-checkout-phone-confirm-wrap::after {
		animation: none;
	}
}

@media screen and (max-width: 1100px) {
	.samosale-checkout-bonus-toggle {
		width: 100%;
	}
}

@media screen and (max-width: 760px) {
	.samosale-account-dash {
		grid-template-columns: 1fr;
	}
	.samosale-fixed-guest-register,
	.samosale-fixed-guest-register--left,
	.samosale-fixed-guest-register--center,
	.samosale-fixed-guest-register--right {
		left: 12px;
		right: 12px;
		transform: none;
		width: auto;
	}
}

@keyframes samosaleOnAutoFillStart {
	from {
	}
	to {
	}
}

#billing_phone:-webkit-autofill,
input[name="billing_phone"]:-webkit-autofill {
	animation-name: samosaleOnAutoFillStart;
	animation-duration: 0.001s;
}