/**
 * bSmarty checkout — mockup-aligned layout (v2 rebuild)
 */

:root {
	--bsmarty-primary: #5B16D8;
	--bsmarty-primary-dark: #4310A8;
	--bsmarty-primary-soft: #F5F0FF;
	--bsmarty-text: #151325;
	--bsmarty-muted: #676375;
	--bsmarty-border: #E9E5F0;
	--bsmarty-success: #16A34A;
	--bsmarty-danger: #DC2626;
	--bsmarty-surface: #FFFFFF;
	--bsmarty-page-bg: #F8F8FC;
}

/* ── Page shell ── */
body.bsmarty-checkout-page {
	background: var(--bsmarty-page-bg);
}

body.bsmarty-checkout-page .bsmarty-checkout-content-root,
body.bsmarty-checkout-page .bsmarty-checkout-article,
body.bsmarty-checkout-page .bsmarty-checkout-article__body,
body.bsmarty-checkout-page .woocommerce,
body.bsmarty-checkout-page .entry-content,
body.bsmarty-checkout-page article {
	width: 100%;
	max-width: none;
}

body.bsmarty-checkout-page .prose {
	font-size: 1rem;
	max-width: none;
}

body.bsmarty-checkout-page .bsmarty-checkout-shell {
	width: 100%;
	max-width: none;
	padding: 0;
}

body.bsmarty-checkout-page .bsmarty-checkout-page {
	width: 100%;
}

body.bsmarty-checkout-page .bsmarty-checkout-shell > .bsmarty-checkout-content-root {
	width: min(100% - 48px, 1520px);
	max-width: 1520px;
	margin-inline: auto;
	padding: 0 0 40px;
}

@media (max-width: 1366px) {
	body.bsmarty-checkout-page .bsmarty-checkout-shell > .bsmarty-checkout-content-root {
		width: min(100% - 32px, 1280px);
	}
}

@media (max-width: 767px) {
	body.bsmarty-checkout-page .bsmarty-checkout-shell > .bsmarty-checkout-content-root {
		width: min(100% - 24px, 100%);
	}
}

/* ── Header ── */
body.bsmarty-checkout-page .bsmarty-checkout-header {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 16px 0 0;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__inner {
	width: min(100% - 48px, 1520px);
	max-width: 1520px;
	margin-inline: auto;
	min-height: 88px;
	display: grid;
	grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
	align-items: center;
	gap: 24px;
	padding: 22px 32px;
	background: var(--bsmarty-surface);
	border: 1px solid var(--bsmarty-border);
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(21, 19, 37, 0.04);
}

body.bsmarty-checkout-page .bsmarty-checkout-header__logo img {
	max-width: 210px;
	max-height: 76px;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__logo img {
	display: block;
	width: auto;
	height: auto;
	object-fit: contain;
	flex: 0 0 auto;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__tagline {
	margin: 4px 0 0;
	font-size: 0.8125rem;
	color: var(--bsmarty-muted);
}

body.bsmarty-checkout-page .bsmarty-checkout-header__bt-pay-logo {
	display: block;
	width: auto;
	height: 36px;
	max-width: 140px;
	object-fit: contain;
	margin-left: auto;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__trust-copy {
	font-size: 0.8125rem;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__trust-copy strong {
	font-size: 0.9375rem;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__partner-placeholder {
	font-size: 1rem;
	font-weight: 700;
	color: var(--bsmarty-muted);
	opacity: 0.85;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__trust {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-self: center;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__shield {
	color: var(--bsmarty-success);
	display: inline-flex;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__trust-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.875rem;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__trust-copy strong {
	font-size: 0.9375rem;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__partner {
	justify-self: end;
	text-align: right;
}

body.bsmarty-checkout-page .bsmarty-checkout-header__partner-placeholder {
	color: var(--bsmarty-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

/* ── Coupon accordion ── */
body.bsmarty-checkout-page .bsmarty-checkout-coupon {
	width: min(100% - 48px, 1520px);
	max-width: 1520px;
	margin: 14px auto 0;
}

body.bsmarty-checkout-page .bsmarty-checkout-coupon__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--bsmarty-border);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	color: var(--bsmarty-primary);
}

body.bsmarty-checkout-page .bsmarty-checkout-coupon__label {
	font-size: 0.9375rem;
	font-weight: 600;
}

body.bsmarty-checkout-page .bsmarty-checkout-coupon__chevron {
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--bsmarty-primary);
	border-bottom: 2px solid var(--bsmarty-primary);
	transform: rotate(45deg);
	transition: transform 180ms ease;
}

body.bsmarty-checkout-page .bsmarty-checkout-coupon__toggle[aria-expanded="true"] .bsmarty-checkout-coupon__chevron {
	transform: rotate(-135deg);
}

body.bsmarty-checkout-page .bsmarty-checkout-coupon__panel {
	margin-top: 10px;
	padding: 16px 18px;
	border: 1px solid var(--bsmarty-border);
	border-radius: 12px;
	background: #fff;
}

body.bsmarty-checkout-page .bsmarty-checkout-coupon .checkout_coupon,
body.bsmarty-checkout-page .bsmarty-checkout-coupon form.checkout_coupon {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

body.bsmarty-checkout-page .bsmarty-checkout-coupon .woocommerce-info,
body.bsmarty-checkout-page .bsmarty-checkout-coupon .showcoupon,
body.bsmarty-checkout-page form.woocommerce-form-login,
body.bsmarty-checkout-page .woocommerce-form-login-toggle {
	display: none !important;
}

body.bsmarty-checkout-page .form-row .optional {
	display: none;
}

body.bsmarty-checkout-page #persoana_field {
	margin-bottom: 16px;
}

body.bsmarty-checkout-page #persoana_field label {
	font-size: 0.8125rem;
	font-weight: 600;
}

/* ── Grid ── */
.bsmarty-checkout-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
	margin-top: 16px;
}

@media (min-width: 1200px) {
	.bsmarty-checkout-grid {
		grid-template-columns: minmax(0, 1.75fr) minmax(360px, 0.95fr);
	}
}

/* ── Main card (left) ── */
.bsmarty-checkout-main-card {
	background: var(--bsmarty-surface);
	border: 1px solid var(--bsmarty-border);
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(21, 19, 37, 0.04);
	min-width: 0;
	padding: 22px 28px;
}

.bsmarty-checkout-intro {
	margin-bottom: 14px;
}

.bsmarty-checkout-intro--logged-in {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 18px;
}

.bsmarty-checkout-intro__title {
	margin: 0;
	font-size: clamp(1.625rem, 1.35rem + 0.5vw, 1.875rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--bsmarty-text);
}

.bsmarty-checkout-intro__sparkles {
	color: var(--bsmarty-primary);
	font-size: 0.72em;
	font-weight: 400;
	margin-left: 4px;
	letter-spacing: 0.12em;
	vertical-align: middle;
}

.bsmarty-checkout-intro-block {
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--bsmarty-border);
}

.bsmarty-checkout-intro__mascot img {
	width: 120px;
	height: 120px;
	object-fit: contain;
	display: block;
}

/* ── Account choice ── */
.bsmarty-account-choice {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.bsmarty-account-choice__actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px 16px;
	align-items: center;
}

.bsmarty-account-choice__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.bsmarty-account-choice__btn--guest {
	min-height: 52px;
	padding: 0 24px;
	font-size: 1rem;
	background: #fff;
	border: 2px solid var(--bsmarty-primary);
	color: var(--bsmarty-primary);
	grid-column: 1 / -1;
}

.bsmarty-account-choice__arrow {
	font-size: 1.125rem;
	line-height: 1;
}

.bsmarty-account-choice__login {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	color: var(--bsmarty-muted);
	font-size: 0.9375rem;
	grid-column: 1 / -1;
}

.bsmarty-account-choice__btn--login {
	min-height: 42px;
	padding: 0 18px;
	font-size: 0.9375rem;
	background: #fff;
	border: 1px solid #DDD7E8;
	color: var(--bsmarty-primary);
}

.bsmarty-account-choice__create-account {
	margin-top: 12px;
	font-size: 0.9375rem;
}

.bsmarty-account-choice__create-account label {
	font-weight: 500;
}

.bsmarty-account-choice__info {
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	background: #F5F0FF;
	color: var(--bsmarty-text);
	font-size: 0.9375rem;
	line-height: 1.45;
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.bsmarty-account-choice__info-star {
	color: var(--bsmarty-primary);
	font-size: 1rem;
	line-height: 1.2;
	flex: 0 0 auto;
}

.bsmarty-account-choice__info p {
	margin: 0;
}

/* ── Customer details ── */
.bsmarty-customer-details {
	display: grid;
	gap: 16px;
	margin-bottom: 18px;
}

.bsmarty-customer-details__section--contact {
	padding-top: 4px;
}

.bsmarty-customer-details__title {
	margin: 0 0 12px;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--bsmarty-text);
}

.bsmarty-customer-details__hint {
	margin: 0;
	font-size: 0.875rem;
	color: var(--bsmarty-muted);
}

.bsmarty-field-grid {
	display: grid;
	gap: 0;
}

@media (min-width: 768px) {
	.bsmarty-field-grid--contact,
	.bsmarty-field-grid--address,
	.bsmarty-field-grid--billing {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
	}

	.bsmarty-field-grid--contact #billing_email_field,
	.bsmarty-field-grid--contact #billing_phone_field,
	.bsmarty-field-grid--address #billing_country_field,
	.bsmarty-field-grid--address #billing_address_1_field,
	.bsmarty-field-grid--address #billing_address_2_field,
	.bsmarty-field-grid--billing #billing_company_field,
	.bsmarty-field-grid--notes,
	.bsmarty-field-grid .form-row-wide {
		grid-column: 1 / -1;
	}
}

.bsmarty-customer-details .form-row,
.bsmarty-customer-details #persoana_field {
	margin: 0 0 10px;
}

.bsmarty-customer-details label,
.bsmarty-customer-details .woocommerce-input-wrapper label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--bsmarty-text);
	margin-bottom: 6px;
}

.bsmarty-customer-details .input-text,
.bsmarty-customer-details select,
.bsmarty-customer-details textarea {
	width: 100%;
	min-height: 50px;
	height: 50px;
	padding: 0 14px;
	border-radius: 10px;
	border: 1px solid #DDD7E8;
	font-size: 0.9375rem;
	color: var(--bsmarty-text);
	background: #fff;
	box-shadow: none;
}

.bsmarty-customer-details textarea {
	min-height: 96px;
	height: auto;
	padding-top: 12px;
	padding-bottom: 12px;
}

.bsmarty-customer-details .input-text:focus,
.bsmarty-customer-details select:focus,
.bsmarty-customer-details textarea:focus {
	outline: none;
	border-color: var(--bsmarty-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsmarty-primary) 18%, white);
}

.bsmarty-customer-details .woocommerce-billing-fields > h3,
.bsmarty-customer-details .woocommerce-shipping-fields > h3,
.bsmarty-customer-details .woocommerce-additional-fields > h3 {
	display: none;
}

/* ── Payment section ── */
.bsmarty-payment-section__title {
	margin: 0 0 18px;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--bsmarty-text);
}

.bsmarty-payment-section .woocommerce-checkout-payment,
.bsmarty-payment-section #payment {
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
}

.bsmarty-checkout-form .wc_payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.bsmarty-checkout-form .wc_payment_methods > li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas:
		"radio title icon"
		"desc desc desc";
	align-items: center;
	column-gap: 12px;
	border: 1px solid #DDD7E8;
	border-radius: 12px;
	padding: 16px 18px;
	background: #fff;
	min-height: 68px;
	transition: border-color 180ms ease, background-color 180ms ease;
}

.bsmarty-checkout-form .wc_payment_methods > li > input[type="radio"] {
	grid-area: radio;
	width: 18px;
	height: 18px;
	accent-color: var(--bsmarty-primary);
	margin: 0;
	flex-shrink: 0;
}

.bsmarty-checkout-form .wc_payment_methods > li:has(input:checked) {
	border-color: var(--bsmarty-primary);
	background: #FBF8FF;
}

.bsmarty-checkout-form .wc_payment_methods label {
	grid-area: title;
	display: block;
	cursor: pointer;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	min-height: 0;
	padding: 0;
}

.bsmarty-checkout-form .wc_payment_methods .bsmarty-gateway-card__icon,
.bsmarty-checkout-form .wc_payment_methods .bsmarty-checkout-card-icons {
	grid-area: icon;
	justify-self: end;
	align-self: start;
}

.bsmarty-checkout-form .wc_payment_methods .bsmarty-gateway-card__icon-img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.bsmarty-checkout-form .wc_payment_methods .payment_box {
	grid-area: desc;
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 0.8125rem;
	color: var(--bsmarty-muted);
	line-height: 1.4;
}

.bsmarty-checkout-form .payment_method_cod .payment_box p {
	margin: 0;
}

.bsmarty-checkout-form .payment_method_bt-ipay .payment_box {
	margin-top: 10px;
	padding: 12px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--bsmarty-border);
	font-size: 0.875rem;
}

.bsmarty-checkout-badge--recommended {
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bsmarty-success) 15%, white);
	color: var(--bsmarty-success);
	font-size: 0.75rem;
	font-weight: 700;
}

.bsmarty-checkout-card-icons {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.bsmarty-checkout-form #place_order {
	width: 100%;
	min-height: 56px;
	margin-top: 18px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #6E3DF0 0%, #5B16D8 52%, #4310A8 100%);
	color: #fff;
	font-weight: 700;
	font-size: 1.0625rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 6px 18px rgba(91, 22, 216, 0.28);
}

.bsmarty-checkout-form #place_order::after {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-left: 4px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E");
}

.bsmarty-checkout-form #place_order:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.bsmarty-checkout-legal-note {
	margin-top: 14px;
	font-size: 0.8125rem;
	color: var(--bsmarty-muted);
	line-height: 1.5;
}

.bsmarty-checkout-legal-note a {
	color: var(--bsmarty-primary);
}

.bsmarty-checkout-legal-consent {
	margin: 0 0 14px;
	font-size: 0.875rem;
	line-height: 1.5;
}

.bsmarty-checkout-legal-consent .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	cursor: pointer;
}

.bsmarty-checkout-legal-consent .input-checkbox {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--bsmarty-primary);
}

.bsmarty-checkout-legal-consent__text {
	color: var(--bsmarty-muted);
}

.bsmarty-checkout-legal-consent__text a {
	color: var(--bsmarty-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bsmarty-checkout-required {
	color: var(--bsmarty-error, #b91c1c);
	font-weight: 700;
}

/* ── Order summary (right) ── */
.bsmarty-order-summary {
	background: var(--bsmarty-surface);
	border: 1px solid var(--bsmarty-border);
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(21, 19, 37, 0.04);
	padding: 24px 28px;
	min-width: 0;
	position: sticky;
	top: 24px;
}

.bsmarty-order-summary__title {
	margin: 0 0 20px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--bsmarty-text);
}

.bsmarty-order-summary__refresh {
	display: grid;
	gap: 0;
}

.bsmarty-order-summary__products {
	display: grid;
	gap: 16px;
	margin-bottom: 20px;
}

.bsmarty-order-summary__product {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: start;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--bsmarty-border);
}

.bsmarty-order-summary__product-thumb img {
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: 12px;
}

.bsmarty-order-summary__product-name {
	font-size: 0.9375rem;
	font-weight: 600;
}

.bsmarty-order-summary__row--total {
	font-size: 1rem;
}

.bsmarty-order-summary__row--total .amount,
.bsmarty-order-summary__row--total .woocommerce-Price-amount {
	font-size: clamp(1.625rem, 1.35rem + 0.45vw, 1.875rem);
}

.bsmarty-checkout-summary-trust {
	gap: 14px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--bsmarty-border);
}

.bsmarty-checkout-summary-trust__item {
	gap: 12px;
	align-items: flex-start;
}

.bsmarty-checkout-summary-trust__icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: #F5F0FF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
}

.bsmarty-checkout-summary-trust__icon--lock::before { content: "🔒"; }
.bsmarty-checkout-summary-trust__icon--card::before { content: "💳"; }
.bsmarty-checkout-summary-trust__icon--return::before { content: "↩"; }
.bsmarty-checkout-summary-trust__icon--support::before { content: "🎧"; }

.bsmarty-checkout-summary-trust__item strong {
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 2px;
}

.bsmarty-checkout-summary-trust__item span {
	font-size: 0.8125rem;
	color: var(--bsmarty-muted);
	line-height: 1.4;
}

.bsmarty-checkout-haio-card {
	margin-top: 14px;
	min-height: 128px;
	padding: 18px 20px;
	border-radius: 16px;
	background: #F5F0FF;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

.bsmarty-checkout-haio-card__content {
	flex: 1;
	max-width: 62%;
}

.bsmarty-checkout-haio-card__visual img {
	width: 100px;
	height: 100px;
	object-fit: contain;
}

.bsmarty-order-summary__product-meta {
	margin-top: 4px;
	font-size: 0.8125rem;
	color: var(--bsmarty-muted);
}

.bsmarty-order-summary__product-price {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--bsmarty-text);
	white-space: nowrap;
}

.bsmarty-order-summary__totals {
	display: grid;
	gap: 10px;
	margin-bottom: 16px;
}

.bsmarty-order-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	font-size: 0.9375rem;
	color: var(--bsmarty-text);
}

.bsmarty-order-summary__row--discount .amount {
	color: var(--bsmarty-danger);
}

.bsmarty-order-summary__shipping-free {
	color: var(--bsmarty-success);
	font-weight: 600;
}

.bsmarty-order-summary__row--total {
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--bsmarty-border);
	font-size: 1.125rem;
	font-weight: 700;
}

.bsmarty-order-summary__row--total .amount,
.bsmarty-order-summary__row--total .woocommerce-Price-amount {
	font-size: clamp(1.375rem, 1.1rem + 0.5vw, 1.75rem);
	font-weight: 700;
	color: var(--bsmarty-primary);
}

.bsmarty-checkout-free-shipping {
	margin: 8px 0 12px;
	padding: 14px 16px;
	border-radius: 16px;
	font-size: 0.875rem;
}

.bsmarty-checkout-free-shipping--qualified {
	background: var(--bsmarty-primary-soft);
	border: 1px dashed color-mix(in srgb, var(--bsmarty-primary) 35%, white);
}

.bsmarty-checkout-free-shipping--pending {
	background: #fff;
	border: 1px solid var(--bsmarty-border);
}

.bsmarty-checkout-free-shipping__title {
	font-weight: 700;
	margin: 0 0 4px;
}

.bsmarty-checkout-haio-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

/* ── Trust bar ── */
.bsmarty-checkout-trust-bar {
	margin-top: 24px;
	width: min(100% - 48px, 1520px);
	max-width: 1520px;
	margin-inline: auto;
}

.bsmarty-checkout-trust-bar__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.bsmarty-checkout-trust-bar__item {
	background: var(--bsmarty-surface);
	border: 1px solid var(--bsmarty-border);
	border-radius: 18px;
	padding: 16px;
	display: flex;
	gap: 12px;
	font-size: 0.8125rem;
}

.bsmarty-checkout-trust-bar__item strong {
	display: block;
	font-size: 0.9375rem;
	margin-bottom: 2px;
}

.bsmarty-checkout-trust-bar__icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #F5F0FF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
	line-height: 1;
}

.bsmarty-checkout-trust-bar__icon--shield::before { content: "🛡"; }
.bsmarty-checkout-trust-bar__icon--users::before { content: "🏅"; }
.bsmarty-checkout-trust-bar__icon--star::before { content: "⭐"; }

/* ── BT iPay benefits (outside payment_box) ── */
.bsmarty-bt-ipay-benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
	padding: 12px;
	border-radius: 14px;
	background: #F3F4F6;
}

.bsmarty-bt-ipay-benefits__label {
	display: block;
	font-size: 0.75rem;
	color: var(--bsmarty-muted);
}

.bsmarty-bt-ipay-benefits__value {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
	.bsmarty-order-summary {
		position: static;
	}
}

@media (max-width: 1023px) {
	body.bsmarty-checkout-page .bsmarty-checkout-header__inner {
		grid-template-columns: 1fr;
		justify-items: start;
		width: min(100% - 32px, 100%);
	}

	body.bsmarty-checkout-page .bsmarty-checkout-header__trust,
	body.bsmarty-checkout-page .bsmarty-checkout-header__partner {
		justify-self: start;
		text-align: left;
	}

	.bsmarty-checkout-main-card {
		padding: 22px 20px;
	}

	.bsmarty-order-summary {
		padding: 20px;
	}
}

@media (max-width: 767px) {
	body.bsmarty-checkout-page .bsmarty-checkout-header__logo img {
		max-width: 160px;
		max-height: 56px;
	}

	body.bsmarty-checkout-page .bsmarty-checkout-header__inner {
		width: min(100% - 24px, 100%);
	}

	body.bsmarty-checkout-page .bsmarty-checkout-coupon {
		width: min(100% - 24px, 100%);
	}

	.bsmarty-account-choice__btn--guest {
		flex: 1 1 100%;
	}

	.bsmarty-order-summary__product {
		grid-template-columns: 72px minmax(0, 1fr) auto;
	}

	.bsmarty-order-summary__product-thumb img {
		width: 72px;
		height: 72px;
	}

	.bsmarty-checkout-trust-bar__inner {
		grid-template-columns: 1fr;
	}

	.bsmarty-bt-ipay-benefits {
		grid-template-columns: 1fr;
	}
}

/* ── Desktop 1920 polish (shell unchanged; no mobile/tablet edits) ── */
@media (min-width: 1200px) {
	body.bsmarty-checkout-page .bsmarty-checkout-header {
		padding: 12px 0 0;
	}

	body.bsmarty-checkout-page .bsmarty-checkout-header__inner {
		min-height: 72px;
		padding: 14px 28px;
		border-radius: 16px;
		gap: 20px;
	}

	body.bsmarty-checkout-page .bsmarty-checkout-header__logo img {
		max-width: 168px;
		max-height: 52px;
	}

	body.bsmarty-checkout-page .bsmarty-checkout-header__tagline {
		font-size: 0.75rem;
		line-height: 1.3;
	}

	body.bsmarty-checkout-page .bsmarty-checkout-header__trust-copy strong {
		font-size: 0.9375rem;
		line-height: 1.25;
	}

	body.bsmarty-checkout-page .bsmarty-checkout-header__trust-copy span {
		font-size: 0.75rem;
		color: var(--bsmarty-muted);
	}

	body.bsmarty-checkout-page .bsmarty-checkout-header__shield svg {
		width: 22px;
		height: 22px;
	}

	body.bsmarty-checkout-page .bsmarty-checkout-header__bt-pay-logo {
		height: 40px;
		max-width: 148px;
	}

	body.bsmarty-checkout-page .bsmarty-checkout-coupon {
		margin-top: 12px;
	}

	body.bsmarty-checkout-page .bsmarty-checkout-coupon__toggle {
		padding: 12px 18px;
	}

	.bsmarty-checkout-grid {
		margin-top: 14px;
		gap: 22px;
	}

	.bsmarty-checkout-main-card {
		padding: 24px 28px;
		border-radius: 18px;
	}

	.bsmarty-checkout-intro__title {
		font-size: 1.75rem;
	}

	.bsmarty-checkout-intro-block {
		display: grid;
		grid-template-columns: 128px minmax(0, 1fr);
		gap: 18px 22px;
		align-items: start;
		margin-bottom: 16px;
		padding-bottom: 16px;
	}

	.bsmarty-checkout-intro__mascot img {
		width: 128px;
		height: 128px;
	}

	.bsmarty-account-choice__actions {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 10px 14px;
		align-items: center;
	}

	.bsmarty-account-choice__btn--guest {
		grid-column: 1;
		min-height: 48px;
		padding: 0 20px;
		justify-content: space-between;
		font-size: 0.9375rem;
		border-width: 1.5px;
	}

	.bsmarty-account-choice__login {
		grid-column: 2;
		flex-wrap: nowrap;
		white-space: nowrap;
		font-size: 0.875rem;
	}

	.bsmarty-account-choice__btn--login {
		min-height: 38px;
		padding: 0 16px;
		font-size: 0.875rem;
		border-radius: 999px;
	}

	.bsmarty-account-choice__create-account {
		margin-top: 10px;
		font-size: 0.875rem;
	}

	.bsmarty-account-choice__info {
		margin-top: 12px;
		padding: 13px 16px;
		border-radius: 12px;
		font-size: 0.875rem;
	}

	.bsmarty-customer-details {
		gap: 12px;
		margin-bottom: 14px;
	}

	.bsmarty-customer-details__title {
		margin-bottom: 8px;
		font-size: 1rem;
	}

	.bsmarty-customer-details .form-row,
	.bsmarty-customer-details #persoana_field {
		margin: 0 0 8px;
	}

	.bsmarty-customer-details label,
	.bsmarty-customer-details .woocommerce-input-wrapper label {
		margin-bottom: 4px;
		font-size: 0.8125rem;
	}

	.bsmarty-customer-details .input-text,
	.bsmarty-customer-details select,
	.bsmarty-customer-details textarea {
		min-height: 48px;
		height: 48px;
		font-size: 0.9375rem;
	}

	.bsmarty-customer-details textarea {
		min-height: 88px;
	}

	.bsmarty-field-grid--contact,
	.bsmarty-field-grid--address,
	.bsmarty-field-grid--billing {
		column-gap: 14px;
	}

	.bsmarty-payment-section__title {
		margin-bottom: 14px;
		font-size: 1.0625rem;
	}

	.bsmarty-checkout-form .wc_payment_methods {
		gap: 12px;
	}

	.bsmarty-checkout-form .wc_payment_methods > li {
		padding: 15px 17px;
		min-height: 68px;
	}

	.bsmarty-checkout-legal-note {
		text-align: center;
		font-size: 0.75rem;
		margin-top: 12px;
	}

	.bsmarty-order-summary {
		padding: 24px 26px;
		border-radius: 18px;
	}

	.bsmarty-order-summary__title {
		font-size: 1.125rem;
		margin-bottom: 16px;
	}

	.bsmarty-order-summary__product {
		grid-template-columns: 80px minmax(0, 1fr) auto;
		gap: 12px;
		padding-bottom: 14px;
	}

	.bsmarty-order-summary__product-thumb img {
		width: 80px;
		height: 80px;
	}

	.bsmarty-order-summary__product-name {
		font-size: 0.9375rem;
	}

	.bsmarty-order-summary__totals {
		gap: 8px;
		margin-bottom: 14px;
	}

	.bsmarty-order-summary__row--total .amount,
	.bsmarty-order-summary__row--total .woocommerce-Price-amount {
		font-size: 1.75rem;
	}

	.bsmarty-checkout-summary-trust__icon {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.bsmarty-checkout-summary-trust__item strong {
		font-size: 0.875rem;
	}

	.bsmarty-checkout-summary-trust__item span {
		font-size: 0.8125rem;
	}

	.bsmarty-checkout-haio-card {
		min-height: 132px;
		padding: 16px 18px;
		font-size: 0.9375rem;
	}

	.bsmarty-checkout-haio-card__visual img {
		width: 104px;
		height: 104px;
	}

	.bsmarty-checkout-trust-bar {
		margin-top: 20px;
	}

	.bsmarty-checkout-trust-bar__inner {
		gap: 14px;
	}

	.bsmarty-checkout-trust-bar__item {
		padding: 14px 16px;
		border-radius: 16px;
		font-size: 0.8125rem;
		align-items: flex-start;
	}

	.bsmarty-checkout-trust-bar__item strong {
		font-size: 0.875rem;
	}
}
