/* GLEAMRIFT cart and checkout: the approved product-card layout, over native WooCommerce forms. */
body.gr-commerce {
    --ink: #18151b;
    --muted: #68606c;
    --line: #e5dfe8;
    --surface: #f8f5fa;
    --gr-control-border: #b7aabe;
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: 0;
}
.gr-commerce .content-page.wrap,
.gr-commerce .woocommerce-main.wrap,
.gr-commerce-header .header-inner {
    max-width: 1180px;
    padding-inline: 36px;
}
.gr-commerce .content-page,
.gr-commerce .woocommerce-main { padding-block: 38px 56px; }
.gr-commerce .prose,
.gr-commerce.woocommerce-checkout .woocommerce { max-width: none; }
.gr-commerce h1,
.gr-commerce h2,
.gr-commerce h3 { letter-spacing: 0; text-wrap: pretty; }
.gr-commerce .prose h1 { margin: 0 0 26px; font-size: 32px; line-height: 1.3; }
.gr-commerce .prose h2,
.gr-commerce .prose h3 { margin: 0 0 18px; font-size: 19px; line-height: 1.4; }
.gr-commerce .prose p { color: var(--muted); font-size: 13px; }
.gr-commerce a { text-underline-offset: 4px; }
.gr-commerce :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gr-commerce [aria-invalid="true"] { border-color: #a23118 !important; }
.gr-commerce [aria-disabled="true"] { cursor: not-allowed; }
.gr-commerce button:disabled { cursor: not-allowed; opacity: .55; }
.gr-commerce [hidden] { display: none !important; }
.gr-commerce-header { position: relative; top: auto; border-bottom: 1px solid var(--line); }
.gr-commerce-header .header-inner { min-height: 84px; padding-block: 12px; grid-template-columns: 1fr auto 1fr; gap: 14px; }
.gr-commerce-header .brand { grid-column: 2; }
.gr-commerce-header .brand img { width: 164px; }
.gr-commerce-back { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; gap: 9px; justify-self: start; min-height: 44px; font-size: 12px; text-decoration: none; }
.gr-commerce-back .gr-icon { width: 21px; height: 21px; flex-basis: 21px; }
.gr-commerce-back .gr-icon { transform: rotate(180deg); }
.gr-commerce-header .cart-link { grid-column: 3; justify-self: end; display: flex; align-items: center; justify-content: center; position: relative; width: 44px; height: 44px; }
.gr-commerce-header .cart-link .gr-icon { width: 24px; height: 24px; }
.gr-commerce-header .cart-count { right: 0; bottom: 1px; }
.gr-commerce-footer { padding: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; color: var(--muted); font-size: 12px; }
.gr-commerce-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.gr-commerce-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }

/* Cart cards stay readable without turning each product into a mobile table. */
.gr-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .72fr); gap: 42px; align-items: start; }
.gr-cart-items-column,
.gr-checkout-fields,
.gr-checkout-aside { min-width: 0; }
.gr-commerce .gr-cart-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.gr-cart-item-count { font: 500 13px/1.5 Manrope, sans-serif; color: var(--muted); }
.gr-commerce .prose .gr-cart-savings-note { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 13px 15px; border-radius: 6px; background: var(--surface); color: #653480; line-height: 1.6; }
.gr-cart-savings-note .gr-icon { width: 18px; height: 18px; flex-basis: 18px; }
.gr-cart-item { display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; gap: 13px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.gr-cart-item .product-thumbnail { display: block !important; grid-column: 1; grid-row: 1 / span 2; }
.gr-cart-item .product-thumbnail img { width: 94px; height: 104px; object-fit: cover; border-radius: 6px; background: var(--surface); }
.gr-cart-item-copy { min-width: 0; grid-column: 2; }
.gr-commerce .gr-cart-item h2.product-name { margin: 0 0 8px; font: 800 15px/1.45 Manrope, sans-serif; overflow-wrap: anywhere; }
.gr-cart-item .product-name a { text-decoration: none; }
.gr-cart-item .product-name a:hover { text-decoration: underline; }
.gr-commerce .gr-cart-item dl.variation,
.gr-commerce .gr-checkout-item dl.variation { display: flex; flex-wrap: wrap; gap: 0 5px; margin: 5px 0; padding: 0; border: 0; color: var(--muted); font-size: 12px; }
.gr-commerce .gr-cart-item dl.variation dt,
.gr-commerce .gr-cart-item dl.variation dd,
.gr-commerce .gr-checkout-item dl.variation dt,
.gr-commerce .gr-checkout-item dl.variation dd { float: none; margin: 0; padding: 0; font-weight: 400; }
.gr-commerce dl.variation p { margin: 0; font-size: inherit; }
.gr-cart-item .product-price { margin-top: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.gr-cart-item .product-price del { margin-right: 5px; }
.gr-cart-item .product-subtotal { grid-column: 3; grid-row: 1 / span 2; align-self: center; text-align: right; white-space: nowrap; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gr-cart-item-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; grid-column: 2; min-width: 0; }
.gr-quantity-stepper { display: flex; flex: 0 0 auto; align-items: center; width: 136px; border: 1px solid var(--gr-control-border); border-radius: 6px; background: #fff; }
.gr-quantity-stepper:focus-within { border-color: var(--accent); }
.gr-quantity-stepper button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--ink); border-radius: 5px; }
.gr-quantity-stepper button .gr-icon { width: 15px; height: 15px; }
.gr-quantity-stepper button:hover:not(:disabled) { background: var(--surface); }
.gr-commerce .woocommerce .gr-quantity-stepper .quantity { flex: 1 1 auto; float: none; width: 46px; margin: 0; }
.gr-commerce .woocommerce .gr-quantity-stepper .quantity .qty { display: block; width: 100%; min-width: 0; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; font-size: 16px; font-weight: 700; line-height: 44px; appearance: textfield; -moz-appearance: textfield; }
.gr-quantity-stepper input::-webkit-inner-spin-button,
.gr-quantity-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.gr-quantity-stepper .quantity input:focus-visible { outline-offset: -3px; }
.gr-quantity-stepper:has([aria-invalid="true"]) { border-color: #a23118; }
.gr-commerce .woocommerce .product-remove a.remove { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; width: auto; min-height: 44px; height: auto; padding: 0 2px; border-radius: 4px; background: transparent; color: var(--muted) !important; font-size: 12px; font-weight: 500; line-height: 1.5; text-decoration: underline; }
.gr-commerce .woocommerce .product-remove a.remove:hover { background: transparent; color: var(--accent) !important; }
.gr-cart-update { margin-top: 18px; }
.gr-commerce .gr-cart-update .button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--gr-control-border); border-radius: 6px; background: #fff; color: var(--accent); font-size: 13px; }
.gr-cart-update .coupon { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gr-cart-update .coupon input { min-width: 0; max-width: 100%; }
.gr-commerce .prose #gr-cart-status { min-height: 28px; margin: 10px 0 0; font-size: 12px; line-height: 1.6; }
.gr-commerce .prose #gr-cart-status:empty { min-height: 0; }
.gr-commerce #gr-cart-status.is-error,
.gr-commerce #gr-cart-status[data-state="error"] { color: #a23118; }
.gr-continue-shopping { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-size: 12px; color: var(--accent) !important; }
.gr-commerce.woocommerce .cart-collaterals,
.gr-commerce .woocommerce .cart-collaterals { width: auto; margin: 0; }
.gr-commerce .cart-collaterals::before,
.gr-commerce .cart-collaterals::after { display: none; }
.gr-commerce .woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; }
.gr-order-summary { align-self: start; background: var(--surface); padding: 24px; border-radius: 10px; }
.gr-commerce .gr-order-summary h2 { margin: 0 0 19px; font-size: 19px; }
.gr-commerce .gr-order-summary table.shop_table { display: table; width: 100%; margin: 0; border: 0; border-collapse: collapse; background: transparent; table-layout: auto; }
.gr-commerce .gr-order-summary table.shop_table tbody { display: table-row-group; }
.gr-commerce .gr-order-summary table.shop_table tfoot { display: table-footer-group; }
.gr-commerce .gr-order-summary table.shop_table tr { display: table-row; border: 0; }
.gr-commerce .gr-order-summary table.shop_table th,
.gr-commerce .gr-order-summary table.shop_table td { display: table-cell; min-width: 0; border: 0; padding: 7px 0; vertical-align: top; background: transparent !important; font-size: 13px; line-height: 1.65; }
.gr-commerce .gr-order-summary table.shop_table th { text-align: left; padding-right: 14px; color: var(--muted); font-weight: 500; }
.gr-commerce .gr-order-summary table.shop_table td { text-align: right !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.gr-commerce .gr-order-summary table.shop_table td::before { display: none !important; }
.gr-commerce .gr-order-summary table.shop_table .gr-stick-savings > *,
.gr-commerce .gr-order-summary table.shop_table .cart-discount > * { color: var(--accent); }
.gr-commerce .gr-order-summary table.shop_table .order-total > * { padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink); }
.gr-commerce .gr-order-summary table.shop_table .order-total th { font-size: 14px; font-weight: 800; }
.gr-commerce .gr-order-summary table.shop_table .order-total td { font-size: 23px; line-height: 1.3; }
.gr-commerce .gr-order-summary table.shop_table .order-total small { display: block; margin-top: 6px; font-size: 11px; line-height: 1.6; font-weight: 400; }
.gr-commerce .woocommerce .wc-proceed-to-checkout { padding: 20px 0 0; }
.gr-commerce .woocommerce .checkout-button,
.gr-commerce .woocommerce #place_order,
.gr-commerce .return-to-shop .button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 14px 16px; margin: 0; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font-size: 14px !important; font-weight: 800; line-height: 1.6; text-align: center; }
.gr-commerce .woocommerce .checkout-button:hover,
.gr-commerce .woocommerce #place_order:hover:not(:disabled),
.gr-commerce .return-to-shop .button:hover { background: var(--accent-hover); }
.gr-commerce .checkout-button[aria-disabled="true"],
.gr-commerce #place_order:disabled { background: #ddd4e3 !important; color: #51435a !important; opacity: 1; }
.gr-commerce .gr-order-summary .gr-checkout-help { margin: 12px 0 0; text-align: center; font-size: 11px; line-height: 1.65; }
.gr-cart-updating .gr-cart-layout { cursor: progress; }
.gr-cart-updating .gr-quantity-stepper { opacity: .6; }
.gr-commerce [aria-busy="true"] { cursor: progress; }

/* Shipping options use the native radio inputs and address calculator. */
.gr-cart-delivery { margin-top: 26px; }
.gr-commerce .gr-cart-delivery h2 { margin-bottom: 15px; }
.gr-commerce .gr-cart-delivery > table,
.gr-commerce .gr-checkout-shipping-table { display: table !important; width: 100%; max-width: 100%; margin: 0; border: 0; border-collapse: collapse; overflow: visible; font-size: 13px; }
.gr-commerce .gr-cart-delivery > table > tbody,
.gr-commerce .gr-checkout-shipping-table > tbody { display: table-row-group; }
.gr-commerce .gr-cart-delivery tr,
.gr-commerce .gr-checkout-shipping-table tr { display: table-row; border: 0; }
.gr-commerce .gr-cart-delivery td,
.gr-commerce .gr-checkout-shipping-table td { display: table-cell; min-width: 0; padding: 0; border: 0; text-align: left !important; font-size: 13px; }
.gr-cart-delivery tr.shipping > th,
.gr-checkout-shipping-table tr.shipping > th { display: none; }
.gr-commerce .gr-cart-delivery td::before,
.gr-commerce .gr-checkout-shipping-table td::before { display: none; }
.gr-commerce .woocommerce ul#shipping_method { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.gr-commerce .woocommerce ul#shipping_method li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0; align-items: center; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.gr-commerce .woocommerce ul#shipping_method li:has(input:checked),
.gr-commerce .woocommerce ul#shipping_method li:has(input[type="hidden"]) { border-color: var(--accent); background: #faf7fc; }
.gr-commerce .woocommerce ul#shipping_method input[type="radio"] { width: 17px; height: 17px; margin: 0 0 0 13px; accent-color: var(--accent); }
.gr-commerce .woocommerce ul#shipping_method label { display: block; min-height: 62px; margin: 0; padding: 17px 12px 17px 2px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.9; cursor: pointer; overflow-wrap: anywhere; }
.gr-commerce .woocommerce ul#shipping_method input[type="hidden"] + label { grid-column: 1 / -1; padding-left: 14px; }
.gr-commerce .woocommerce ul#shipping_method .amount { font-weight: 800; white-space: nowrap; }
.gr-commerce .woocommerce-shipping-destination { margin: 13px 0 0; font-size: 12px; }
.gr-commerce .shipping-calculator-button { display: inline-flex; align-items: center; min-height: 44px; margin: 0; font-size: 12px; color: var(--accent); }
.gr-commerce .shipping-calculator-form { margin: 8px 0 0; }
.gr-commerce .shipping-calculator-form p { margin: 0 0 10px; }
.gr-commerce .shipping-calculator-form .button { min-height: 44px; font-size: 13px; }
.gr-commerce .gr-cart-delivery tr:not(.shipping) td,
.gr-commerce .gr-checkout-shipping-table tr:not(.shipping) td { padding-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.gr-commerce .gr-order-summary tr.shipping td { text-align: left !important; }

/* Checkout fields keep WooCommerce validation, autocomplete and payment ownership. */
.gr-checkout-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 48px; align-items: start; }
.gr-commerce #customer_details { margin: 0; }
.gr-commerce .gr-checkout-section { border-bottom: 1px solid var(--line); margin: 0 0 27px; padding: 0 0 26px; }
.gr-commerce .gr-checkout-section .gr-section-heading { margin: 0 0 18px; font-size: 19px; }
.gr-commerce .gr-checkout-help { margin: 8px 0 16px; font-size: 12px; line-height: 1.65; }
.gr-checkout-address-fields,
.gr-commerce .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
.gr-commerce .woocommerce form .form-row { float: none; width: auto; padding: 0; margin: 0 0 15px; min-width: 0; }
.gr-checkout-address-fields > .form-row,
.gr-commerce .woocommerce-shipping-fields__field-wrapper > .form-row { grid-column: 1 / -1; }
.gr-checkout-address-fields > .form-row-first,
.gr-commerce .woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: 1; }
.gr-checkout-address-fields > .form-row-last,
.gr-commerce .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 2; }
.gr-commerce .woocommerce form .form-row label { display: block; font: 700 12px/1.6 Manrope, sans-serif; margin: 0 0 7px; }
.gr-commerce .woocommerce form .form-row input.input-text,
.gr-commerce .woocommerce form .form-row select,
.gr-commerce .woocommerce form .form-row textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid var(--gr-control-border); border-radius: 6px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; }
.gr-commerce .woocommerce form .form-row textarea { min-height: 88px; height: auto; resize: vertical; }
.gr-commerce .woocommerce form .form-row input.input-text::placeholder,
.gr-commerce .woocommerce form .form-row textarea::placeholder { color: #746a7a; opacity: 1; }
.gr-commerce .woocommerce form .form-row.woocommerce-invalid input.input-text,
.gr-commerce .woocommerce form .form-row.woocommerce-invalid select,
.gr-commerce .woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: #a23118 !important; }
.gr-commerce .woocommerce form .form-row.woocommerce-invalid label { color: #a23118; }
.gr-commerce .woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--gr-control-border); }
.gr-commerce .select2-container { max-width: 100%; min-width: 0; }
.gr-commerce .select2-container .select2-selection--single { height: 48px !important; border-color: var(--gr-control-border) !important; border-radius: 6px !important; background: #fff !important; }
.gr-commerce .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px !important; padding-right: 30px; font-size: 16px; }
.gr-commerce .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px !important; }
.gr-commerce .select2-container--focus .select2-selection { outline: 2px solid var(--accent); outline-offset: 2px; }
.gr-commerce .select2-results__option { min-height: 44px; }
.gr-commerce .woocommerce #ship-to-different-address { margin: 0 0 18px; font: 600 13px/1.65 Manrope, sans-serif; }
.gr-commerce #ship-to-different-address label,
.gr-commerce .woocommerce form .form-row label.checkbox { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-block: 8px; cursor: pointer; font-size: 12px; }
.gr-commerce input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: var(--accent); }
.gr-commerce .woocommerce-additional-fields { margin: 0 0 27px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.gr-commerce .woocommerce-additional-fields:empty { display: none; }
.gr-checkout-summary summary { display: flex; align-items: center; gap: 12px; min-height: 28px; list-style: none; }
.gr-checkout-summary summary::-webkit-details-marker { display: none; }
.gr-checkout-summary summary .gr-section-heading { flex: 1; font: 700 19px/1.4 Poppins, Manrope, sans-serif; }
.gr-checkout-summary-chevron { flex: 0 0 18px; width: 18px; height: 18px; color: var(--accent); transition: transform .18s ease-out; }
.gr-checkout-summary[open] .gr-checkout-summary-chevron { transform: rotate(180deg); }
.gr-checkout-summary-content { padding-top: 10px; }
.gr-commerce .gr-checkout-edit-bag { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 4px; color: var(--accent); font-size: 12px; }
.gr-commerce .gr-checkout-review-table thead { position: absolute; clip: rect(0, 0, 0, 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.gr-commerce .gr-order-summary .gr-checkout-review-table tbody td { padding: 0 0 20px; }
.gr-commerce .gr-order-summary .gr-checkout-review-table tbody td.product-name { text-align: left !important; padding-right: 12px; }
.gr-commerce .gr-order-summary .gr-checkout-review-table tbody td.product-total { padding-top: 4px; white-space: nowrap; }
.gr-checkout-item { display: flex; align-items: flex-start; gap: 11px; }
.gr-checkout-item-image { flex: 0 0 56px; width: 56px; }
.gr-checkout-item-image img { width: 56px; height: 62px; object-fit: cover; border-radius: 5px; background: #fff; }
.gr-checkout-item-copy { min-width: 0; }
.gr-checkout-item-name { display: block; font-size: 12px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.gr-checkout-item .product-quantity { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); font-weight: 500; }
.gr-commerce .gr-checkout-item dl.variation { font-size: 11px; }
.gr-commerce .gr-checkout-currency { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.gr-commerce .gr-checkout-payment { padding-bottom: 0; border: 0; }
.gr-commerce.woocommerce-checkout #payment { background: transparent; border: 0; border-radius: 0; }
.gr-commerce.woocommerce-checkout #payment ul.payment_methods { margin: 0; padding: 0; border: 0; }
.gr-commerce.woocommerce-checkout #payment ul.payment_methods > li { list-style: none; font-size: 13px; }
.gr-commerce.woocommerce-checkout #payment ul.payment_methods > li > label { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.gr-commerce.woocommerce-checkout #payment ul.payment_methods > li > input[type="radio"] { width: 17px; height: 17px; accent-color: var(--accent); }
.gr-commerce.woocommerce-checkout #payment div.payment_box { padding: 16px; background: var(--surface); border-radius: 6px; font-size: 13px; }
.gr-commerce.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--surface); }
.gr-commerce.woocommerce-checkout #payment .woocommerce-info { padding: 18px; margin: 0 0 18px; border: 1px dashed #c9bbd1; border-radius: 6px; background: #fff; color: var(--muted); font-size: 12px; line-height: 1.7; }
.gr-commerce.woocommerce-checkout #payment .woocommerce-info::before { display: none; }
.gr-commerce.woocommerce-checkout #payment .place-order { padding: 18px 0 0; margin: 0; }
.gr-commerce .woocommerce-privacy-policy-text p,
.gr-commerce .woocommerce-terms-and-conditions-checkbox-text { font-size: 11px; line-height: 1.7; }
.gr-commerce .woocommerce-privacy-policy-text a { font-weight: 500; }
.gr-commerce .woocommerce #place_order { float: none; margin-top: 18px; }
.gr-commerce .woocommerce-error,
.gr-commerce .woocommerce-info,
.gr-commerce .woocommerce-message { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.gr-commerce .woocommerce-error li { color: #8b2919; font-size: 13px; }
.gr-commerce .wc-empty-cart-message { padding-top: 16px; }
.gr-commerce .cart-empty { margin: 0 auto 24px; max-width: 540px; }
.gr-commerce .return-to-shop { max-width: 300px; margin: 0 auto 40px; text-align: center; }

@media (min-width: 900px) {
    .gr-cart-layout > .cart-collaterals,
    .gr-checkout-aside { position: sticky; top: 28px; }
    .gr-checkout-summary > summary { cursor: default; }
    .gr-checkout-summary > .gr-checkout-summary-content { display: block; }
    .gr-checkout-summary .gr-checkout-compact-total,
    .gr-checkout-summary-chevron { display: none; }
}
@media (max-width: 899px) {
    .gr-commerce .content-page.wrap,
    .gr-commerce .woocommerce-main.wrap,
    .gr-commerce-header .header-inner { padding-inline: 22px; }
    .gr-commerce .content-page,
    .gr-commerce .woocommerce-main { padding-block: 30px 36px; }
    .gr-commerce-header .header-inner { min-height: 76px; }
    .gr-commerce-back { width: 44px; justify-content: center; }
    .gr-commerce-back span:not(.gr-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .gr-cart-layout,
    .gr-checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .gr-commerce .prose h1 { font-size: 30px; margin-bottom: 23px; }
    .gr-cart-item { grid-template-columns: 86px minmax(0, 1fr); gap: 15px; padding-block: 23px; }
    .gr-cart-item .product-thumbnail { grid-row: 1; }
    .gr-cart-item .product-thumbnail img { width: 86px; height: 94px; }
    .gr-cart-item-controls { grid-column: 1 / -1; grid-row: 2; gap: 6px 10px; padding-right: 90px; }
    .gr-cart-item .product-subtotal { grid-column: 2; grid-row: 2; align-self: start; justify-self: end; margin-top: 10px; font-size: 17px; }
    .gr-order-summary { padding: 22px; }
    .gr-checkout-aside { order: -1; }
    .gr-checkout-layout { gap: 26px; }
    .gr-checkout-summary { padding: 0; border-radius: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
    .gr-checkout-summary > summary { min-height: 64px; padding: 14px 0; color: var(--accent); }
    .gr-checkout-summary > summary .gr-section-heading { font: 700 13px/1.5 Manrope, sans-serif; }
    .gr-checkout-summary .gr-checkout-compact-total { color: var(--ink); font-size: 16px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .gr-checkout-summary-content { padding: 0 0 20px; }
    .gr-commerce .gr-checkout-edit-bag { margin-top: 0; }
    .gr-commerce .gr-checkout-section { margin-bottom: 25px; padding-bottom: 24px; }
    .gr-commerce-footer { gap: 4px 18px; padding: 15px 20px; font-size: 11px; }
}
@media (max-width: 359px) {
    .gr-commerce .content-page.wrap,
    .gr-commerce .woocommerce-main.wrap,
    .gr-commerce-header .header-inner { padding-inline: 16px; }
    .gr-commerce .content-page,
    .gr-commerce .woocommerce-main { padding-top: 24px; }
    .gr-commerce-header .brand img { width: 140px; }
    .gr-cart-item { grid-template-columns: 78px minmax(0, 1fr); column-gap: 12px; }
    .gr-cart-item .product-thumbnail img { width: 78px; height: 86px; }
    .gr-commerce .gr-cart-item h2.product-name { font-size: 14px; }
    .gr-cart-item-controls { gap: 4px 8px; padding-right: 86px; }
    .gr-cart-item .product-subtotal { font-size: 16px; }
    .gr-order-summary { padding: 20px 16px; }
    .gr-checkout-summary { padding: 0; }
    .gr-checkout-address-fields,
    .gr-commerce .woocommerce-shipping-fields__field-wrapper { column-gap: 10px; }
    .gr-checkout-item { gap: 8px; }
    .gr-checkout-item-image { flex-basis: 46px; width: 46px; }
    .gr-checkout-item-image img { width: 46px; height: 52px; }
    .gr-commerce .gr-order-summary .gr-checkout-review-table tbody td.product-name { padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .gr-commerce *, .gr-commerce *::before, .gr-commerce *::after { scroll-behavior: auto; transition: none; }
}
/* Final integration: compact paired address rows and automatic-update fallback. */
.gr-commerce.gr-cart-enhanced:not(.gr-cart-error) .gr-cart-update:not(:has(.coupon)) { display: none; }
.gr-commerce .cart_totals.gr-order-summary table.shop_table th { width: 60%; }
.gr-commerce .cart_totals.gr-order-summary table.shop_table td { width: 40%; }
.gr-commerce .gr-checkout-address-fields > #billing_city_field,
.gr-commerce .gr-checkout-address-fields > #billing_postcode_field,
.gr-commerce .woocommerce-shipping-fields__field-wrapper > #shipping_city_field { grid-column: 1; }
.gr-commerce .gr-checkout-address-fields > #billing_state_field,
.gr-commerce .gr-checkout-address-fields > #billing_phone_field,
.gr-commerce .woocommerce-shipping-fields__field-wrapper > #shipping_state_field { grid-column: 2; }
.gr-commerce .gr-cart-empty { text-align: center; padding-block: 35px; }
.gr-commerce .gr-cart-empty h1 { margin-bottom: 22px; }
