/* === Shopify-style checkout (scoped) === */
:root {
	--glozin-checkout-primary: #2b6cf0;
	--glozin-checkout-express: #5a31f4;
	--glozin-checkout-border: #d1d1d1;
	--glozin-summary-bg: #f5f5f5;
	--glozin-checkout-column-divider: #e0e0e0;
}

/* Checkout: hide full theme header — only logo bar (in template) shows */
body.glozin-custom-checkout.woocommerce-checkout #site-header,
body.glozin-custom-checkout.woocommerce-checkout .site-breadcrumb,
body.glozin-custom-checkout.woocommerce-checkout .page-header,
body.glozin-custom-checkout.woocommerce-checkout .gz-page-header {
	display: none !important;
}

body.glozin-custom-checkout.woocommerce-checkout #page .site-content {
	padding-top: 0;
}

/* Remove stray boxes/borders from theme wrapper on checkout */
body.glozin-custom-checkout.woocommerce-checkout .glozin-checkout-page-shell,
body.glozin-custom-checkout.woocommerce-checkout .site-content,
body.glozin-custom-checkout.woocommerce-checkout .content-area,
body.glozin-custom-checkout.woocommerce-checkout article.hentry,
body.glozin-custom-checkout.woocommerce-checkout .entry-content,
body.glozin-custom-checkout.woocommerce-checkout .woocommerce {
	border: 0 !important;
	box-shadow: none !important;
	outline: 0;
}

/* Theme style.css: `.woocommerce-checkout-review-order { width: 42% }` breaks our 2-column flex */
body.glozin-custom-checkout.woocommerce-checkout .woocommerce-checkout-review-order,
body.glozin-custom-checkout.woocommerce-checkout aside.custom-checkout-summary.woocommerce-checkout-review-order {
	width: auto !important;
	max-width: none !important;
}

body.glozin-custom-checkout.woocommerce-checkout .woocommerce-checkout .col2-set {
	width: 100% !important;
	max-width: 100% !important;
	padding-right: 0 !important;
	float: none !important;
}

body.glozin-custom-checkout.woocommerce-checkout {
	min-height: 100vh;
}

/* Coupon banner (top) */
.custom-checkout-coupon-banner {
	background: #f5ede0;
	padding: 10px 20px;
	font-size: 14px;
	text-align: left;
	color: #1f2937;
	border: 0;
	outline: 0;
}

.custom-checkout-coupon-banner__link {
	color: #333;
	font-weight: 600;
	text-decoration: underline;
}

/* Centered logo only (no full header) */
body.glozin-custom-checkout.woocommerce-checkout .woocommerce-form-coupon-toggle {
	display: none !important;
}

/* Checkout header: logo (left) + cart bag (right) — ScentVibe / Shopify style */
body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-logo-only.checkout-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 14px 48px 14px 270px !important;
	border-bottom: 1.5px solid #e0e0e0 !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	text-align: left !important;
	background: #fff;
	box-sizing: border-box !important;
	border-top: 0;
	border-left: 0;
	border-right: 0;
	outline: 0;
	box-shadow: none;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-header-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #111827;
	text-decoration: none;
	padding: 8px;
	margin: -8px -8px -8px 0;
	border-radius: 8px;
	transition: background 0.15s ease;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-header-cart:hover {
	background: #f3f4f6;
	color: #111827;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-logo-only.checkout-header .custom-checkout-logo-only__link {
	display: inline-block;
	text-decoration: none;
	line-height: 0;
	border: 0;
	outline: 0;
	box-shadow: none;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-logo-only.checkout-header .custom-checkout-logo-only__img {
	display: block;
	max-height: 70px !important;
	width: auto !important;
	height: auto;
	margin: 0 !important;
	border: 0;
	outline: 0;
	box-shadow: none;
}

/* Content width */
body.woocommerce-page.glozin-custom-checkout .glozin-checkout-page-shell,
body.woocommerce-checkout.glozin-custom-checkout .glozin-checkout-page-shell {
	max-width: 1200px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

.glozin-custom-checkout .woocommerce-notices-wrapper {
	max-width: 1200px;
	margin: 0 auto 12px;
	padding: 0 24px;
}

.glozin-custom-checkout .showcoupon,
.glozin-custom-checkout .showlogin,
.glozin-custom-checkout.woocommerce-checkout form.woocommerce-form-login,
.glozin-custom-checkout.woocommerce-checkout form.checkout_coupon,
.glozin-custom-checkout.woocommerce-checkout .woocommerce-form-coupon-toggle {
	margin-bottom: 12px;
}

/*
 * Override theme style.css: `.woocommerce-checkout form.checkout { max-width: 1200px; padding-top: 24px; }`
 * so the custom 2-column layout is full width and top padding is controlled by header/logo, not the form.
 */
body.glozin-custom-checkout.woocommerce-checkout form.checkout.custom-shopify-checkout {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
}

/* Form — left column white */
.custom-shopify-checkout {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: #fff;
	padding: 0 0 32px;
}

/* Two-column: flex — use internal padding for column separation, not flex gap */
.checkout-wrapper,
.custom-checkout-layout,
.checkout-wrapper.custom-checkout-layout {
	gap: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

.checkout-wrapper.custom-checkout-layout {
	display: flex;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 0;
	margin: 0 auto;
	align-items: flex-start;
}

body.glozin-custom-checkout.woocommerce-checkout .checkout-form-left.custom-checkout-main,
body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-main.checkout-form-left {
	padding: 40px 48px 40px 270px !important;
	max-width: 780px !important;
	flex: 1 !important;
	min-width: 0;
	background: #fff;
	border-right: 1px solid #e5e5e5;
}

.custom-checkout-section {
	margin-bottom: 24px;
}

.custom-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.custom-section-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	letter-spacing: -0.01em;
}

.custom-signin-link {
	color: #2563eb;
	font-size: 14px;
	text-decoration: underline;
}

/* Express checkout — only real Stripe/WCPay buttons (no dummy boxes) */

.custom-top-stripe-express-slot {
	margin-top: 2px;
}

.custom-top-stripe-express-slot.is-empty {
	display: none;
}

.custom-top-stripe-express-slot #wc-stripe-express-checkout-element,
.custom-top-stripe-express-slot #wcpay-express-checkout-element {
	width: 100%;
}

#wc-stripe-express-checkout-element,
#wcpay-express-checkout-element {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 10px !important;
	align-items: center !important;
	min-height: 56px !important;
	overflow: visible !important;
}

.custom-top-stripe-express-slot #wc-stripe-express-checkout-element iframe,
.custom-top-stripe-express-slot #wcpay-express-checkout-element iframe {
	flex: 1 1 0 !important;
	max-width: 100% !important;
	min-width: 0 !important;
	min-height: 48px !important;
	height: 68px !important;
}

#wc-stripe-express-checkout-element .StripeElement,
#wcpay-express-checkout-element .StripeElement {
	flex: 1 !important;
	min-width: 0 !important;
	min-height: 48px !important;
}

#wc-stripe-express-checkout-element-googlePay,
#wc-stripe-express-checkout-element-link,
#wcpay-express-checkout-element-googlePay,
#wcpay-express-checkout-element-link {
	flex: 1 !important;
	width: 100% !important;
	min-height: 48px !important;
	 
	overflow: hidden !important;
}

#wc-stripe-express-checkout-element-googlePay iframe,
#wc-stripe-express-checkout-element-link iframe,
#wcpay-express-checkout-element-googlePay iframe,
#wcpay-express-checkout-element-link iframe {
	border-radius: inherit !important;
	display: block !important;
}

.custom-or-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	color: #9ca3af;
	font-size: 12px;
	font-weight: 500;
}

.custom-or-divider::before,
.custom-or-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e5e7eb;
}

/* Fields */
.custom-shopify-checkout .form-row {
	margin-bottom: 12px;
}

.custom-shopify-checkout .form-row .optional {
	color: #9ca3af;
}

.custom-delivery-section #billing_country_field label.custom-field-label,
.custom-delivery-section #billing_country_field > label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 6px;
}

.custom-shopify-checkout .form-row input.input-text,
.custom-shopify-checkout .form-row textarea,
.custom-shopify-checkout .form-row select,
.custom-shopify-checkout .custom-save-info-section input.input-text {
	border: 1.5px solid #d1d1d1;
	border-radius: 8px;
	padding: 12px 16px;
	background: #fff;
	color: #111827;
	font-size: 14px;
	min-height: 48px;
	width: 100%;
	box-sizing: border-box;
	outline: none;
}

.custom-shopify-checkout .form-row input.input-text:focus,
.custom-shopify-checkout .form-row textarea:focus,
.custom-shopify-checkout .form-row select:focus,
.custom-shopify-checkout .custom-save-info-section input.input-text:focus {
	border-color: #5a31f4;
	box-shadow: 0 0 0 3px rgba(90, 49, 244, 0.1);
}

.custom-shopify-checkout .select2-container--default .select2-selection--single {
	border: 1.5px solid #d1d1d1;
	border-radius: 8px;
	min-height: 48px;
	padding: 6px 12px;
}

.custom-shopify-checkout .select2-container--default.select2-container--open .select2-selection,
.custom-shopify-checkout .select2-container--default .select2-selection--single:focus {
	border-color: #5a31f4;
	box-shadow: 0 0 0 3px rgba(90, 49, 244, 0.1);
}

.custom-delivery-section .woocommerce-billing-fields {
	margin: 0;
}

.custom-delivery-section .woocommerce-billing-fields > h3,
.custom-delivery-section .woocommerce-billing-fields__field-wrapper > p > label {
	display: none;
}

.custom-delivery-section .woocommerce-billing-fields__field-wrapper > p#billing_country_field > label {
	display: block;
}

.custom-delivery-section .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 10px;
	row-gap: 0;
}

/*
 * Kill theme / WC float + half-width on city/state/postcode so the 6-col grid works.
 * Select2 must stay 100% of its grid cell or it spills over the next column.
 */
body.glozin-custom-checkout .custom-delivery-section .woocommerce-billing-fields__field-wrapper > p.form-row {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	min-width: 0;
}

body.glozin-custom-checkout .custom-delivery-section .woocommerce-billing-fields__field-wrapper .select2-container {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

body.glozin-custom-checkout .custom-delivery-section .woocommerce-billing-fields__field-wrapper .select2-selection--single {
	max-width: 100%;
}

/* Full-width row: city + state + ZIP (see form-billing.php .glozin-billing-csp-row) */
.custom-delivery-section .woocommerce-billing-fields__field-wrapper .glozin-billing-csp-row {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.custom-delivery-section .woocommerce-billing-fields__field-wrapper .glozin-billing-csp-row > .form-row {
	flex: 1 1 0;
	min-width: 0;
	max-width: none;
	float: none !important;
	clear: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.custom-delivery-section .glozin-billing-csp-row .select2-container {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/* Select2 open list — prevent hairline width / vertical letter stacking (body-appended dropdown) */
body.glozin-custom-checkout .select2-dropdown {
	min-width: 220px !important;
}
body.glozin-custom-checkout .select2-results__option {
	white-space: nowrap !important;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Client-style floating label: State + ZIP (City stays single-line placeholder) */
.glozin-billing-csp-row #billing_state_field,
.glozin-billing-csp-row #billing_postcode_field {
	position: relative;
}

/* Force ZIP block visible in custom checkout row */
body.glozin-custom-checkout .glozin-billing-csp-row #billing_postcode_field {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.glozin-billing-csp-row #billing_state_field > label,
.glozin-billing-csp-row #billing_postcode_field > label {
	position: absolute;
	left: 14px;
	top: 8px;
	margin: 0 !important;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: #6b7280;
	line-height: 1.2;
	z-index: 3;
	pointer-events: none;
}

.glozin-billing-csp-row #billing_postcode_field .input-text {
	padding-top: 24px !important;
	min-height: 56px !important;
}

.glozin-billing-csp-row #billing_state_field .select2-container--default .select2-selection--single {
	min-height: 56px !important;
	height: auto !important;
	padding-top: 20px !important;
	padding-bottom: 8px !important;
}

.glozin-billing-csp-row #billing_state_field .select2-container .select2-selection__rendered {
	padding-top: 2px !important;
	line-height: 1.3 !important;
}

.glozin-billing-csp-row #billing_state_field .select2-container .select2-selection__arrow {
	top: 20px !important;
}

.glozin-billing-csp-row #billing_city_field .input-text {
	min-height: 48px;
}

#billing_country_field,
#billing_address_1_field,
#billing_address_2_field,
#billing_phone_field {
	grid-column: span 6;
}

#billing_address_1_field,
#billing_phone_field,
#custom_mobile_optional_field {
	position: relative;
}

#billing_address_1_field input,
#billing_phone_field input {
	padding-right: 40px;
}

#custom_mobile_optional_field input {
	padding-left: 40px;
}

#billing_address_1_field::after {
	content: "🔍";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	line-height: 1;
	pointer-events: none;
	filter: grayscale(1);
	opacity: 0.55;
}

#billing_phone_field::after {
	content: "?";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 1px solid #d1d5db;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.custom-save-info-section.is-dial-pk #custom_mobile_optional_field::before {
	content: "+92";
}
.custom-save-info-section.is-dial-us #custom_mobile_optional_field::before {
	content: "+1";
}
#custom_mobile_optional_field::before {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	pointer-events: none;
}

#billing_first_name_field,
#billing_last_name_field {
	grid-column: span 3;
}

.custom-shipping-placeholder {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 14px 16px;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.5;
}

.custom-shipping-options ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
}

.custom-shipping-options ul#shipping_method li {
	margin: 0;
	padding: 12px 14px;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
}

.custom-shipping-options ul#shipping_method li:last-child {
	border-bottom: 0;
}

.custom-shipping-options .amount {
	font-weight: 600;
}

.custom-payment-subtitle {
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.4;
}

/* Payment — default WC markup; do not clip gateway iframes or hide .payment_box */
body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .payment_methods {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: visible;
	background: #fff;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .payment_methods > li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e5e7eb;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .payment_methods > li:last-child {
	border-bottom: 0;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .wc_payment_method {
	padding: 0;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .glozin-pm-line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .glozin-pm-line .input-radio {
	margin: 3px 0 0;
	flex-shrink: 0;
	vertical-align: middle;
	accent-color: #2563eb;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .glozin-pm-line label {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	width: 100%;
	flex: 1;
	margin: 0;
	font-size: 15px;
	color: #111827;
	cursor: pointer;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .glozin-pm-line label img {
	max-height: 24px;
	margin-left: auto;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .payment_methods > li:has( input.input-radio[name="payment_method"]:checked ) {
	background: #eff6ff;
	box-shadow: inset 0 0 0 2px #2b6cf0;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .payment_box {
	margin: 0;
	padding: 0 14px 14px 14px;
	background: transparent;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .payment_box::before {
	display: none;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .payment_method_stripe .wc-upe-form,
body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .payment_method_stripe .wc-stripe-upe-form {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Stripe — optional “same address” checkbox (hook output) */
body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .glozin-use-ship-for-bill-wrap {
	margin: 0;
	padding: 0;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .glozin-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	color: #374151;
	line-height: 1.4;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .glozin-use-ship-for-bill {
	margin-top: 2px;
	accent-color: #2563eb;
}

body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .woocommerce-SavedPaymentMethods-saveNew,
body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .woocommerce-SavedPaymentMethods-saveNew[style] {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Gateway fields (Stripe, PayPal, etc.) */
body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .wc_payment_method .form-row,
body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-payment .payment_box .form-row {
	margin-bottom: 10px;
}

.custom-place-order-meta {
	margin-top: 12px;
	font-size: 12px;
	color: #6b7280;
}

.custom-place-order-meta .button {
	display: none;
}

/* #place_order — PayPal HTML from JS */
button#place_order.glozin-place-order--paypal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

button#place_order.glozin-place-order--paypal .glozin-place-order-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #fff;
}

button#place_order.glozin-place-order--paypal .glozin-place-order__ppmark {
	height: 24px;
	width: auto;
	object-fit: contain;
}

/* Save */
.custom-save-info-heading {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
}

.custom-save-info-section {
	margin-top: 8px;
}

.custom-save-info-meta {
	margin: 10px 0 0;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.5;
}

.custom-save-info-meta a {
	color: #2563eb;
	text-decoration: none;
}

/* Pay now — bright blue (reference) */
.custom-pay-now-button,
.custom-shopify-checkout #place_order.custom-pay-now-button {
	width: 100% !important;
	border: 0;
	border-radius: 10px;
	padding: 16px 20px;
	background: var(--glozin-checkout-primary) !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	margin: 0 0 20px;
	line-height: 1.2;
}

.custom-pay-now-button:hover,
.custom-shopify-checkout #place_order.custom-pay-now-button:hover {
	background: #1d5fe6 !important;
}

.custom-checkout-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 12px;
	font-size: 12px;
}

.custom-checkout-footer-links a {
	color: #2563eb;
	text-decoration: none;
}

.custom-checkout-footer-links a:hover {
	text-decoration: underline;
}

/* Order summary — gray right column, sticky while the form column scrolls */
body.glozin-custom-checkout.woocommerce-checkout aside.custom-checkout-summary,
body.glozin-custom-checkout.woocommerce-checkout .checkout-order-right,
body.glozin-custom-checkout.woocommerce-checkout .order-summary,
body.glozin-custom-checkout.woocommerce-checkout #order_review,
body.glozin-custom-checkout.woocommerce-checkout .woocommerce-checkout-review-order {
	background-color: #f5f5f5 !important;
	align-self: flex-start !important;
	min-height: 100vh !important;
	max-height: 100vh !important;
	padding: 40px 270px 40px 40px !important;
	flex: 1 !important;
	min-width: 0 !important;
	max-width: none !important;
	width: 100% !important;
	position: sticky;
	top: 0;
	margin: 0;
	border-left: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

.custom-summary-inner {
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	background: transparent;
}

.custom-summary-item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	gap: 12px 14px;
	align-items: start;
	margin-bottom: 16px;
}

.custom-summary-thumb {
	position: relative;
	width: 48px;
}

.custom-summary-thumb-frame {
	display: block;
	width: 48px;
	height: 48px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
	box-sizing: border-box;
}

.custom-summary-thumb-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.custom-summary-qty {
	position: absolute;
	top: -7px;
	right: -7px;
	background: #111827;
	color: #fff;
	min-width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.custom-summary-name {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #111827;
}

.custom-summary-variant {
	margin: 4px 0 0;
	font-size: 12px;
	color: #6b7280;
}

.custom-summary-line-price {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	text-align: right;
	justify-self: end;
	align-self: start;
	color: #111827;
}

.custom-summary-totals {
	border-top: 1px solid #e0e0e0;
	padding-top: 16px;
	margin-top: 4px;
}

/* Subtotal + SAVE on one line (Shopify-style); avoids stacked duplicate look */
.custom-summary-subtotal-amount {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 10px;
	text-align: right;
}

.custom-summary-subtotal-value {
	font-weight: 500;
}

.save-badge {
	display: inline-block;
	background: #fff;
	border: 1.5px solid #e53935;
	color: #e53935;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	white-space: nowrap;
}

.custom-summary-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	margin-bottom: 0;
	color: #374151;
}

.custom-summary-totals .custom-summary-subtotal-row {
	margin-bottom: 8px;
}

.custom-summary-totals .custom-summary-shipping-row {
	margin-bottom: 8px;
}

.custom-summary-shipping-label {
	color: #374151;
}

.custom-summary-hint {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-left: 4px;
	border: 1px solid #d1d5db;
	border-radius: 50%;
	font-size: 10px;
	font-weight: 600;
	color: #9ca3af;
	vertical-align: middle;
}

.custom-summary-total {
	font-weight: 400;
	font-size: 14px;
	margin-top: 8px;
	padding-top: 12px;
	color: #111827;
	border-top: 1px solid #e0e0e0;
}

.custom-summary-total-label {
	font-weight: 400;
	color: #374151;
}

.custom-summary-total-amount-wrap {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 6px;
	flex-wrap: nowrap;
	text-align: right;
}

.custom-summary-total-currency {
	font-size: 12px;
	font-weight: 400;
	color: #9ca3af;
	line-height: 1.2;
}

.custom-summary-total-amount-value {
	font-size: 14px;
	font-weight: 400;
}

.custom-summary-total-amount-value .amount,
.custom-summary-total-amount-value .woocommerce-Price-amount {
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.02em;
}

.custom-summary-total-amount-value .woocommerce-Price-currencySymbol {
	display: none;
}

.custom-summary-shipping {
	text-align: right;
	font-size: 14px;
	color: #6b7280;
}

.custom-summary-shipping ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: right;
}

.custom-summary-shipping .amount,
.custom-summary-shipping label {
	color: #111827;
}

.is-hidden {
	display: none !important;
}

@media (max-width: 1024px) {
	body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-logo-only.checkout-header {
		padding: 16px 20px 16px 20px !important;
	}

	.checkout-wrapper.custom-checkout-layout {
		flex-direction: column;
		min-height: 0;
	}

	body.glozin-custom-checkout.woocommerce-checkout .checkout-form-left.custom-checkout-main,
	body.glozin-custom-checkout.woocommerce-checkout .custom-checkout-main.checkout-form-left {
		border-right: 0;
		padding: 24px 20px 32px !important;
		max-width: none !important;
		flex: none;
	}

	body.glozin-custom-checkout.woocommerce-checkout aside.custom-checkout-summary,
	body.glozin-custom-checkout.woocommerce-checkout .checkout-order-right.custom-checkout-summary,
	body.glozin-custom-checkout.woocommerce-checkout .order-summary.custom-checkout-summary,
	body.glozin-custom-checkout.woocommerce-checkout #order_review,
	body.glozin-custom-checkout.woocommerce-checkout .woocommerce-checkout-review-order {
		position: static;
		top: auto;
		flex: none;
		min-height: 0 !important;
		max-height: none !important;
		min-width: 0 !important;
		max-width: none !important;
		overflow: visible;
		padding: 24px 20px !important;
	}

	.checkout-order-right.custom-checkout-summary,
	.order-summary.custom-checkout-summary {
		order: -1;
		border-bottom: 1px solid var(--glozin-checkout-column-divider);
	}
}

@media (max-width: 767px) {
	.custom-delivery-section .woocommerce-billing-fields__field-wrapper .glozin-billing-csp-row {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.custom-delivery-section .woocommerce-billing-fields__field-wrapper .glozin-billing-csp-row > .form-row {
		flex: 1 1 auto;
		width: 100% !important;
	}

	.custom-delivery-section .woocommerce-billing-fields__field-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#billing_country_field,
	#billing_address_1_field,
	#billing_address_2_field,
	#billing_phone_field,
	#billing_city_field,
	#billing_state_field,
	#billing_postcode_field,
	#billing_first_name_field,
	#billing_last_name_field {
		grid-column: span 2;
	}
}
