/* Native Woodmart classic checkout. Payment, totals, notices and fields stay native. */
body.ga-native-checkout { --wd-form-brd-radius:4px; }
body.ga-native-checkout :is(.cp-coupon-item,.cp-copy-badge) { box-shadow:none !important; }
body.ga-native-checkout :is(form.checkout,.gemastro-checkout-heading),
body.ga-native-checkout form.checkout *,
body.ga-native-checkout form.checkout *::before,
body.ga-native-checkout form.checkout *::after {
    box-shadow:none !important;
    text-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
}
/* Only simplify the header when our classic checkout heading actually renders. */
body.ga-native-checkout:has(.gemastro-checkout-heading) :is(.whb-header,.page-title) { display:none; }
.gemastro-checkout-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px 24px; padding-block:20px; margin-bottom:28px; border-bottom:1px solid var(--brdcolor-gray-200,#e5e7eb); }
.gemastro-checkout-heading h1 { font-size:24px; margin:0; }
.gemastro-checkout-brand { font-family:var(--wd-title-font,inherit); font-size:24px; font-weight:600; }
.gemastro-checkout-brand .custom-logo { width:auto; max-width:180px; max-height:54px; object-fit:contain; }
.gemastro-back-to-cart { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; }
body.ga-native-checkout form.checkout { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); align-items:start; gap:24px 40px; }
body.ga-native-checkout form.checkout > .customer-details { grid-column:1; min-width:0; width:auto; max-width:none; margin:0; }
body.ga-native-checkout form.checkout > .checkout-order-review { grid-column:2; grid-row:1 / span 20; position:sticky; top:24px; min-width:0; width:auto; max-width:none; padding:24px; background:#fff; border:1px solid var(--brdcolor-gray-200,#e5e7eb); }
body.ga-native-checkout form.checkout > :not(.customer-details):not(.checkout-order-review):not(.blockUI) { grid-column:1; min-width:0; }
body.ga-native-checkout form.checkout > .woocommerce-NoticeGroup { grid-column:1 / -1 !important; grid-row:1; }
body.ga-native-checkout form.checkout:has(>.woocommerce-NoticeGroup) > .checkout-order-review { grid-row:2 / span 20; }
body.ga-native-checkout .checkout-order-review { background:#fff !important; }
body.ga-native-checkout .checkout-order-review::before,
body.ga-native-checkout .checkout-order-review::after { content:none !important; }
body.ga-native-checkout .checkout-order-review :is(.product-name,.variation,td,th) { overflow-wrap:anywhere; }
body.ga-native-checkout .woocommerce-checkout-review-order-table .product-total { flex:0 0 auto; min-width:90px; text-align:end; }
body.ga-native-checkout .woocommerce-checkout-review-order-table .variation { font-size:12px; line-height:1.6; }
body.ga-native-checkout .gemastro-order-help { font-size:13px; line-height:1.6; margin-bottom:16px; }
body.ga-native-checkout .form-row { min-width:0; }
body.ga-native-checkout input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body.ga-native-checkout select,
body.ga-native-checkout .select2-selection--single { min-height:46px; font-size:16px; }
body.ga-native-checkout .woocommerce-checkout-payment .wc_payment_method { padding-block:12px; border-bottom:1px solid var(--brdcolor-gray-200,#e5e7eb); }
body.ga-native-checkout .woocommerce-checkout-payment .wc_payment_method > label { display:inline-block; padding-block:6px; }
body.ga-native-checkout #place_order { width:100%; min-height:48px; white-space:normal; }
body.ga-native-checkout .woocommerce-privacy-policy-text { font-size:13px; line-height:1.65; }
body.ga-native-checkout :is(a,button,input,select,textarea):focus-visible { outline:2px solid var(--wd-primary-color,#0e2a47); outline-offset:2px; }
body.ga-native-checkout .woocommerce-error { scroll-margin-top:24px; }
@media (max-width:1024px) {
    body.ga-native-checkout form.checkout { grid-template-columns:minmax(0,1fr); gap:28px; }
    body.ga-native-checkout form.checkout > .checkout-order-review,
    body.ga-native-checkout form.checkout:has(>.woocommerce-NoticeGroup) > .checkout-order-review { grid-column:1; grid-row:auto; position:static; padding:20px; }
}
@media (max-width:480px) {
    .gemastro-checkout-heading h1 { font-size:21px; }
    .gemastro-checkout-brand .custom-logo { max-width:140px; }
    .gemastro-checkout-heading .gemastro-back-to-cart { flex-basis:100%; }
    body.ga-native-checkout form.checkout .form-row-first,
    body.ga-native-checkout form.checkout .form-row-last { float:none; width:100%; }
    body.ga-native-checkout form.checkout > .checkout-order-review { padding:16px; }
}
