/* BigDIAMOND WooCommerce layer: Cart, checkout and account.
 * Generated from the audited route split; keep selectors route-scoped in inc/assets.php.
 */

.bd-commerce .site.grid-container,
.bd-commerce .container.grid-container,
.bd-commerce.one-container .site.grid-container {
    width: 100%;
    max-width: none;
}

.bd-commerce table.shop_table {
    border-collapse: collapse;
    border-color: var(--bd-border);
    background: #fff;
}
.bd-commerce table.shop_table th,
.bd-commerce table.shop_table td {
    border-color: var(--bd-border);
    padding: 16px;
}

.bd-commerce .cart-collaterals .cart_totals,
.bd-commerce.woocommerce-page .cart-collaterals .cart_totals {
    float: none;
    width: min(460px, 100%);
    margin-left: auto;
}

.bd-commerce .woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: clamp(28px, 5vw, 64px);
}

.bd-commerce .woocommerce-checkout::before,
.bd-commerce .woocommerce-checkout::after {
    display: none;
}

.bd-commerce #customer_details,
.bd-commerce #order_review_heading,
.bd-commerce #order_review {
    float: none;
    width: auto;
}

.bd-commerce #order_review_heading,
.bd-commerce #order_review {
    grid-column: 2;
}

.bd-commerce #order_review {
    position: sticky;
    top: 104px;
    align-self: start;
}

.bd-commerce #customer_details {
    grid-row: 1 / span 2;
}

.bd-commerce .woocommerce-mini-cart {
    padding: 0;
}


@media (max-width: 980px) {
    .bd-commerce .woocommerce-checkout {
        grid-template-columns: 1fr;
    }

    .bd-commerce #order_review_heading,
    .bd-commerce #order_review,
    .bd-commerce #customer_details {
        position: static;
        grid-column: auto;
        grid-row: auto;
    }
}


@media (max-width: 680px) {
    .bd-commerce .site-content,
    .bd-global-header.bd-commerce.one-container .site-content {
        padding-top: 92px;
    }

    /* The mobile Stitch composition starts with the media. Keep the
     * breadcrumb navigation available to assistive technology without
     * inserting a visual block between the app bar and gallery. */
    .bd-commerce.single-product .woocommerce-breadcrumb {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .bd-commerce table.shop_table th,
    .bd-commerce table.shop_table td {
        padding: 12px;
    }
}

.bd-commerce :where(.woocommerce-cart-form, .cart-collaterals, .checkout, .woocommerce-checkout, .woocommerce-MyAccount-content, .woocommerce-MyAccount-navigation, .woocommerce-order, .woocommerce-customer-details, .woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields, .woocommerce-form, .woocommerce-Reviews, .woocommerce-tabs, .related, .upsells) {
    color: var(--bd-primary);
}

.bd-commerce :where(.woocommerce-cart-form, .cart-collaterals, .checkout, .woocommerce-checkout, .woocommerce-MyAccount-content, .woocommerce-order, .woocommerce-customer-details, .woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields, .woocommerce-form, .woocommerce-Reviews, .woocommerce-tabs, .related, .upsells) :where(p, li, td, label, address, small, span) {
    color: var(--bd-muted);
}

.bd-commerce :where(.woocommerce-cart-form, .cart-collaterals, .checkout, .woocommerce-checkout, .woocommerce-MyAccount-content, .woocommerce-order, .woocommerce-customer-details, .woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields, .woocommerce-form, .woocommerce-Reviews, .woocommerce-tabs, .related, .upsells) :where(h1, h2, h3, h4, th, strong, legend) {
    color: var(--bd-primary);
}

.bd-commerce :where(input, textarea, select, .select2-selection) {
    background: var(--bd-surface-lowest);
    color: var(--bd-primary);
}

.bd-commerce :where(input::placeholder, textarea::placeholder) {
    color: rgba(66, 72, 68, 0.72);
}

.bd-commerce :where(.quantity .qty, .coupon .input-text) {
    color: var(--bd-primary);
}

.bd-commerce :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) :where(a, .button) {
    color: var(--bd-primary);
}

/* Checkout notice action links */
.bd-commerce .woocommerce-form-coupon-toggle .showcoupon,
.bd-commerce .woocommerce-form-coupon-toggle .showcoupon:visited,
.bd-commerce .woocommerce-form-login-toggle .showlogin,
.bd-commerce .woocommerce-form-login-toggle .showlogin:visited {
    color: var(--bd-gold-ink) !important;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 0.16em;
}

.bd-commerce .woocommerce-form-coupon-toggle .showcoupon:hover,
.bd-commerce .woocommerce-form-coupon-toggle .showcoupon:focus-visible,
.bd-commerce .woocommerce-form-coupon-toggle .showcoupon:active,
.bd-commerce .woocommerce-form-login-toggle .showlogin:hover,
.bd-commerce .woocommerce-form-login-toggle .showlogin:focus-visible,
.bd-commerce .woocommerce-form-login-toggle .showlogin:active {
    color: var(--bd-gold) !important;
}

.bd-commerce table.shop_table {
    border: 1px solid var(--bd-border);
    border-radius: 0;
    background: var(--bd-surface-lowest);
}

.bd-commerce .cart_totals,
.bd-commerce #customer_details,
.bd-commerce #order_review {
    border: 1px solid var(--bd-border);
    background: var(--bd-surface-lowest);
    padding: clamp(18px, 3vw, 28px);
}

.bd-commerce .cart_totals h2,
.bd-commerce .woocommerce-billing-fields h3,
.bd-commerce .woocommerce-shipping-fields h3,
.bd-commerce #order_review_heading {
    color: var(--bd-primary);
    font-family: var(--bd-serif);
    font-weight: 600;
}

.bd-commerce .quantity .qty {
    width: 76px;
    text-align: center;
}

.bd-commerce .coupon {
    display: flex;
    gap: 10px;
}

.bd-commerce .coupon .input-text {
    min-width: min(260px, 100%);
}

/* WooCommerce Blocks: cart is intentionally block-based; these selectors also
 * keep a future checkout-block migration visually compatible. */
.bd-commerce :where(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
    --wp--preset--color--contrast: var(--bd-primary);
    --wp--preset--color--base: var(--bd-surface-lowest);
    color: var(--bd-primary);
}

.bd-commerce :where(.wc-block-cart, .wc-block-checkout) {
    margin: 0;
    font-family: var(--bd-sans);
}

.bd-commerce :where(.wc-block-cart__main, .wc-block-cart__sidebar, .wc-block-checkout__main, .wc-block-checkout__sidebar) {
    min-width: 0;
}

.bd-commerce :where(.wc-block-components-sidebar, .wc-block-components-main) {
    box-sizing: border-box;
}

.bd-commerce :where(.wc-block-components-sidebar, .wc-block-components-order-summary, .wc-block-cart__totals-title) {
    color: var(--bd-primary);
}

.bd-commerce :where(.wc-block-components-product-name, .wc-block-components-title, .wc-block-components-checkout-step__title) {
    color: var(--bd-primary);
    font-weight: 600;
}

.bd-commerce :where(.wc-block-components-text-input input, .wc-block-components-textarea, .wc-block-components-combobox-control input, .wc-block-components-form .wc-block-components-select__select) {
    min-height: 48px;
    border-radius: 0;
    border-color: var(--bd-border);
    background: var(--bd-surface-lowest);
    color: var(--bd-primary);
}

.bd-commerce :where(.wc-block-components-button, .wc-block-cart__submit-button) {
    min-height: 48px;
    border-radius: 0;
    border: 1px solid var(--bd-primary);
    background: var(--bd-primary);
    color: var(--bd-on-primary);
    font: 700 11px/1.2 var(--bd-sans);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* The Cart Block renders checkout as a dedicated link rather than the
 * legacy `.checkout-button`. Keep it unmistakable and full-width in the
 * summary column, even when WooCommerce's block stylesheet supplies inline
 * color variables. */
.bd-commerce .wc-block-cart__submit {
    margin-top: 24px;
}

.bd-commerce .wc-block-cart__submit-button,
.bd-commerce .wc-block-cart__submit-button:visited {
    box-sizing: border-box;
    display: flex !important;
    width: 100% !important;
    min-height: 56px;
    margin: 0;
    padding: 16px 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bd-primary) !important;
    border-radius: 0;
    background: var(--bd-primary) !important;
    color: var(--bd-on-primary) !important;
    font: 700 12px/1.25 var(--bd-sans);
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}

.bd-commerce .wc-block-cart__submit-button .wc-block-components-button__text {
    color: inherit !important;
}

.bd-commerce .wc-block-cart__submit-button:hover,
.bd-commerce .wc-block-cart__submit-button:focus-visible,
.bd-commerce .wc-block-cart__submit-button:active {
    border-color: var(--bd-primary-deep) !important;
    background: var(--bd-primary-deep) !important;
    color: var(--bd-on-primary) !important;
}

/* Cart and checkout transaction surfaces share the same quiet, editorial
 * treatment as the rest of the storefront. These rules style the public
 * WooCommerce block classes only; totals, shipping and payment behavior stay
 * fully native. */
.bd-commerce :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
    align-self: start;
    box-sizing: border-box;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--bd-border-strong);
    background: var(--bd-surface-low);
}

.bd-commerce :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) :where(
    .wc-block-components-sidebar,
    .wc-block-components-order-summary,
    .wc-block-components-totals-wrapper
) {
    max-width: none;
    margin: 0;
}

.bd-commerce :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) :where(
    .wc-block-cart__totals-title,
    .wc-block-components-order-summary__title,
    .wc-block-components-checkout-step__title
) {
    margin: 0 0 18px;
    color: var(--bd-primary);
    font-family: var(--bd-serif);
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.15;
}

.bd-commerce :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) :where(
    .wc-block-components-totals-item,
    .wc-block-components-totals-shipping,
    .wc-block-components-totals-fee,
    .wc-block-components-totals-discount
) {
    padding-block: 13px;
    border-top: 1px solid var(--bd-border-strong);
}

.bd-commerce :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) :where(
    .wc-block-components-totals-item__label,
    .wc-block-components-totals-item__value
) {
    color: var(--bd-primary);
}

.bd-commerce :where(.wc-block-cart-items, .wc-block-checkout__order-summary) {
    border-top: 1px solid var(--bd-border);
    border-bottom: 1px solid var(--bd-border);
}

.bd-commerce .wc-block-cart-item__image img,
.bd-commerce .wc-block-components-order-summary-item__image img {
    border-radius: 0;
    object-fit: contain;
}

.bd-commerce :where(.wc-block-cart-item__product, .wc-block-components-order-summary-item__description) :where(
    .wc-block-components-product-name,
    .wc-block-components-product-price,
    .wc-block-components-product-metadata
) {
    color: var(--bd-primary);
}

.bd-commerce :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) :where(
    .wc-block-components-totals-wrapper,
    .wc-block-components-order-summary
) {
    padding-block: 0;
    background: transparent;
}

.bd-commerce :where(.wc-block-components-panel__button, .wc-block-components-totals-coupon__button) {
    min-height: 44px;
    color: var(--bd-primary);
    text-decoration: none;
}

.bd-commerce .wc-block-components-totals-coupon__button,
.bd-commerce .wc-block-components-totals-coupon__button:visited {
    color: var(--bd-gold-ink) !important;
}

.bd-commerce .wc-block-components-totals-coupon__button:hover,
.bd-commerce .wc-block-components-totals-coupon__button:focus-visible,
.bd-commerce .wc-block-components-totals-coupon__button:active {
    color: var(--bd-gold) !important;
}

/* Final order/payment action: keep both the classic checkout button and the
 * WooCommerce Checkout Block action on the BigDIAMOND green palette. */
.bd-commerce :where(
    #place_order,
    button[name="woocommerce_checkout_place_order"],
    .wc-block-components-checkout-place-order-button
) {
    min-height: 56px;
    border: 1px solid var(--bd-primary) !important;
    border-radius: 0;
    background: var(--bd-primary) !important;
    color: var(--bd-on-primary) !important;
    font: 700 12px/1.25 var(--bd-sans);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bd-commerce :where(
    #place_order,
    button[name="woocommerce_checkout_place_order"],
    .wc-block-components-checkout-place-order-button
):hover,
.bd-commerce :where(
    #place_order,
    button[name="woocommerce_checkout_place_order"],
    .wc-block-components-checkout-place-order-button
):focus-visible,
.bd-commerce :where(
    #place_order,
    button[name="woocommerce_checkout_place_order"],
    .wc-block-components-checkout-place-order-button
):active {
    border-color: var(--bd-primary-deep) !important;
    background: var(--bd-primary-deep) !important;
    color: var(--bd-on-primary) !important;
}

.bd-commerce :where(
    #place_order,
    button[name="woocommerce_checkout_place_order"],
    .wc-block-components-checkout-place-order-button
):disabled,
.bd-commerce :where(
    #place_order,
    button[name="woocommerce_checkout_place_order"],
    .wc-block-components-checkout-place-order-button
).disabled {
    border-color: var(--bd-outline-variant) !important;
    background: var(--bd-outline-variant) !important;
    color: var(--bd-primary) !important;
    opacity: 0.72;
}

@media (min-width: 981px) {
    .bd-commerce :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
        position: sticky;
        top: 104px;
    }
}

@media (max-width: 980px) {
    .bd-commerce :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
        position: static;
    }
}

@media (max-width: 600px) {
    .bd-commerce .wc-block-cart__submit-button,
    .bd-commerce .wc-block-cart__submit-button:visited {
        min-height: 52px;
        padding-inline: 16px;
        font-size: 11px;
    }

    .bd-commerce .wc-block-components-sidebar-layout :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
        padding: 20px;
    }
}

/*
 * WooCommerce Blocks turns the checkout control into a fixed, z-index:9999
 * layer below 782px. On a long mobile cart it can sit above the native Remove
 * controls while the fixed site navigation covers the opposite scroll edge.
 * Keep the native checkout link and totals intact, but return its container to
 * normal document flow in the child theme's mobile commerce layout.
 */
@media (max-width: 782px) {
    .bd-commerce .wc-block-cart .wc-block-cart__submit-container--sticky {
        position: static;
        right: auto;
        bottom: auto;
        left: auto;
        width: auto;
        padding: 0;
        z-index: auto;
        background: transparent;
    }

    .bd-commerce .wc-block-cart .wc-block-cart__submit-container--sticky::before {
        display: none;
    }

    .bd-commerce .wc-block-cart-item__remove-link {
        scroll-margin-block: 88px 96px;
    }
}

.bd-commerce :where(.wc-block-components-button, .wc-block-cart__submit-button):hover,
.bd-commerce :where(.wc-block-components-button, .wc-block-cart__submit-button):focus-visible {
    border-color: var(--bd-primary-deep);
    background: var(--bd-primary-deep);
    color: var(--bd-on-primary);
}

.bd-commerce :where(.wc-block-cart-items, .wc-block-components-totals-wrapper, .wc-block-components-order-summary) {
    border-color: var(--bd-border);
}

.bd-commerce :where(.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img) {
    height: auto;
    background: var(--bd-surface-low);
}

.bd-commerce :where(.wc-block-components-validation-error, .wc-block-components-notice-banner) {
    color: var(--bd-primary);
}

.bd-cart-recommendations {
    margin: 32px 0 0;
    border-top: 1px solid var(--bd-border);
    padding-top: 24px;
}

.bd-cart-recommendations h2 {
    margin: 0 0 16px;
    font: 700 20px/1.25 var(--bd-serif);
}

.bd-cart-recommendations ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bd-cart-recommendations li { min-width: 0; }

.bd-cart-recommendations a {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--bd-primary);
    text-decoration: none;
}

.bd-cart-recommendations img { width: 72px; height: 72px; object-fit: contain; background: var(--bd-surface-low); }
.bd-cart-recommendations__name { font: 600 13px/1.35 var(--bd-sans); }
.bd-cart-recommendations__price { font: 700 13px/1.35 var(--bd-sans); }
/* Mini-cart recommendations are owned by bigdiamond-components.css: the panel
 * renders on every route, not only on the transaction views. */

@media (max-width: 640px) {
    .bd-cart-recommendations ul { grid-template-columns: 1fr; }
}

/* The empty-cart recommendations still use the legacy wc-block-grid markup.
 * Override transparent link/button colors inherited from the old customizer. */
.bd-global-header.bd-commerce .wp-block-woocommerce-empty-cart-block a:not(.wp-block-button__link),
.bd-global-header.bd-commerce .wc-block-grid__product-link,
.bd-global-header.bd-commerce .wc-block-grid__product-title {
    color: var(--bd-primary);
}

.bd-global-header.bd-commerce .wp-block-woocommerce-empty-cart-block > p a {
    color: var(--bd-gold-ink);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.bd-global-header.bd-commerce .wc-block-grid__product-add-to-cart .wp-block-button__link {
    min-height: 44px;
    border: 1px solid var(--bd-primary);
    background: var(--bd-primary);
    color: var(--bd-on-primary);
    align-items: center;
}

.bd-global-header.bd-commerce .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.bd-global-header.bd-commerce .wc-block-grid__product-add-to-cart .wp-block-button__link:focus-visible {
    border-color: var(--bd-primary-deep);
    background: var(--bd-primary-deep);
    color: var(--bd-on-primary);
}

@media (max-width: 640px) {
    .bd-commerce .site-content {
        width: calc(100% - 40px);
    }

    .bd-commerce .coupon {
        display: grid;
    }

    .bd-commerce table.shop_table_responsive tr td::before {
        color: var(--bd-gold-ink);
        font: 700 10px/1.2 var(--bd-sans);
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .bd-merchant-data dl div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .bd-commerce :where(.wc-block-cart__main, .wc-block-checkout__main) {
        width: 100%;
        padding-inline: 0;
    }

    .bd-commerce .wc-block-components-sidebar-layout :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
        width: 100%;
        padding: 20px;
    }
}

/* Final ownership layer: accessibility, visible commerce facts and overflow. */
.bd-global-header.bd-commerce {
    overflow-x: clip;
}

.bd-commerce ul.products li.product,
.bd-commerce .wc-product-image,
.bd-commerce .inside-wc-product-image,
.bd-commerce :where(.related, .upsells) {
    max-width: 100%;
    overflow: hidden;
}

.bd-commerce .wc-has-gallery .secondary-image,
.bd-commerce .wc-has-gallery picture.secondary-image {
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    transform: none;
}

.bd-commerce .wc-has-gallery .secondary-image img,
.bd-commerce .wc-has-gallery picture.secondary-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.bd-global-header.bd-commerce.single-product :where(.summary, .product_meta, .woocommerce-product-details__short-description) a:not(.button),
.bd-global-header.bd-commerce.woocommerce-account :where(.lost_password, .woocommerce-LostPassword, .woocommerce-form-login, .woocommerce-MyAccount-content) a:not(.button) {
    color: var(--bd-primary) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bd-global-header.bd-commerce.single-product .woocommerce-product-gallery,
.bd-global-header.bd-commerce.single-product .woocommerce-product-gallery__wrapper,
.bd-global-header.bd-commerce.single-product .woocommerce-product-gallery .flex-viewport {
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
}

.bd-commerce ul.products li.product .button,
.bd-commerce .single_add_to_cart_button,
.bd-commerce .checkout-button,
.bd-commerce button.button,
.bd-commerce button,
.bd-commerce a.button,
.bd-commerce input.button,
.bd-commerce input[type="submit"],
.bd-commerce input[type="button"],
.bd-commerce input[type="reset"],
.bd-commerce .show-password-input,
.bd-commerce .password-input .show-password-input {
    min-height: 44px;
}

.bd-commerce :where(.added_to_cart, .reset_variations, .woocommerce-Address-title .edit) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.bd-global-header.bd-commerce.woocommerce a.added_to_cart {
    display: inline-flex !important;
}

/* Woo 10.8 adds a live variation-reset alert next to the visible reset link.
 * Preserve it for assistive technology without its 100% width extending the
 * product summary beyond the viewport. */
.bd-commerce .reset_variations_alert.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.bd-commerce :where(
    .select2-container .select2-selection--single,
    .select2-container .select2-selection--multiple,
    .woocommerce-MyAccount-navigation a,
    .shipping-calculator-button
) {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.bd-commerce .select2-container .select2-selection--single {
    height: 44px;
}

.bd-commerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

.bd-commerce :where(
    a.remove,
    .wc-block-components-quantity-selector__button,
    .quantity .minus,
    .quantity .plus,
    .comment-form-rating .stars a
) {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
}

.bd-commerce :where(.wc-block-components-quantity-selector__input, .quantity .qty) {
    min-height: 44px;
}

.bd-commerce .password-input .show-password-input {
    min-width: 44px;
    display: grid;
    place-items: center;
}

.bd-commerce :where(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .wp-block-woocommerce-empty-cart-block, .wc-block-grid.alignwide) {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

.bd-global-header.bd-commerce .entry-content > :where(.wp-block-woocommerce-cart.alignwide, .wp-block-woocommerce-checkout.alignwide) {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
}

.bd-global-header.bd-commerce .wp-block-woocommerce-empty-cart-block,
.bd-global-header.bd-commerce .wp-block-woocommerce-empty-cart-block .wc-block-grid,
.bd-global-header.bd-commerce .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
}

.bd-global-header.bd-commerce .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
}

@media (max-width: 680px) {
    .bd-commerce ul.products,
    .bd-commerce :where(.related, .upsells) ul.products {
        width: 100%;
        max-width: 100%;
        overflow: clip;
    }
}

/* Storefront UX ownership: keep transaction controls native, accessible and
 * visually consistent without depending on WooCommerce's private DOM nesting. */
.bd-commerce :where(
    .woocommerce-cart-form,
    .woocommerce-checkout,
    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content,
    .wc-block-components-main,
    .wc-block-components-sidebar,
    .wc-block-components-order-summary,
    .wc-block-components-totals-wrapper
) {
    min-width: 0;
    max-width: 100%;
    box-shadow: none;
}

.bd-commerce .woocommerce-cart-form {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.bd-commerce :where(
    .wc-block-components-quantity-selector,
    .wc-block-components-text-input input,
    .wc-block-components-combobox-control input,
    .wc-block-components-form .wc-block-components-select__select
) {
    min-height: 44px;
    border-radius: 0;
}

.bd-commerce .wc-block-components-quantity-selector {
    border-color: var(--bd-border);
    background: var(--bd-surface-lowest);
}

.bd-commerce :where(
    .wc-block-components-product-name,
    .wc-block-components-totals-item__label,
    .wc-block-components-totals-item__value
) {
    color: var(--bd-primary);
}

.bd-commerce :where(
    .wc-block-components-notice-banner,
    .wc-block-components-validation-error
) {
    border-radius: 0;
    box-shadow: none;
}

.bd-commerce :where(
    .wc-block-components-product-image img,
    .wc-block-components-order-summary-item__image img,
    .wc-block-grid__product-image img
) {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bd-surface-low);
    object-fit: contain;
}

.bd-commerce.woocommerce-account .woocommerce > .u-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 64px);
}

.bd-commerce.woocommerce-account .woocommerce > .u-columns::before,
.bd-commerce.woocommerce-account .woocommerce > .u-columns::after {
    display: none;
}

.bd-commerce.woocommerce-account .woocommerce > .u-columns > :where(.u-column1, .u-column2) {
    float: none;
    width: auto;
    min-width: 0;
}

/* Account entry forms (login / register / reset).
 *
 * GP Premium's woocommerce.min.css loads after the child theme and zeroes the
 * card padding/border of `.woocommerce form.login|register`, which left the
 * panels as flush white slabs. These selectors carry the element + form class
 * so they win on specificity rather than on load order or !important. */
.bd-commerce.woocommerce-account .woocommerce form.woocommerce-form-login,
.bd-commerce.woocommerce-account .woocommerce form.woocommerce-form-register,
.bd-commerce.woocommerce-account .woocommerce form.woocommerce-ResetPassword {
    margin: 0;
    border: 1px solid var(--bd-border-strong);
    border-radius: 0;
    background: var(--bd-surface-low);
    padding: clamp(22px, 3vw, 34px);
    box-shadow: none;
}

/* Fields read as fields against the warm panel: lighter ground, brand hairline,
 * square corners and a touch-comfortable height. */
.bd-commerce.woocommerce-account .woocommerce form :where(
    .input-text,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea
) {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--bd-border-strong);
    border-radius: 0;
    background: var(--bd-surface-lowest);
    padding: 12px 14px;
    color: var(--bd-primary);
    box-shadow: none;
}

.bd-commerce.woocommerce-account .woocommerce form :where(.input-text, input, select, textarea):focus-visible {
    border-color: var(--bd-primary);
    outline: 1px solid var(--bd-primary);
    outline-offset: 0;
}

/* Password reveal control sits inside the field frame. */
.bd-commerce.woocommerce-account .woocommerce form .password-input {
    display: block;
    width: 100%;
}

.bd-commerce.woocommerce-account .woocommerce form .show-password-input {
    color: var(--bd-primary);
}

/* Quiet, consistent labels — no shouting red asterisk. */
.bd-commerce.woocommerce-account .woocommerce form .form-row label {
    display: block;
    margin: 0 0 6px;
    color: var(--bd-primary);
    font-size: 14px;
    line-height: 1.4;
}

.bd-commerce.woocommerce-account .woocommerce form .required {
    border: 0;
    color: var(--bd-gold-ink);
    text-decoration: none;
}

.bd-commerce.woocommerce-account .woocommerce form .form-row {
    margin: 0 0 18px;
    padding: 0;
}

.bd-commerce.woocommerce-account .woocommerce form .woocommerce-privacy-policy-text {
    margin: 0 0 18px;
}

.bd-commerce.woocommerce-account .woocommerce form .form-row label.woocommerce-form-login__rememberme {
    display: inline-flex;
    min-height: 44px;
    margin: 0 0 14px;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.bd-commerce.woocommerce-account .woocommerce form.woocommerce-form-login .form-row:last-of-type,
.bd-commerce.woocommerce-account .woocommerce form.woocommerce-form-register .form-row:last-of-type {
    margin-bottom: 0;
}

.bd-commerce.woocommerce-account .woocommerce .woocommerce-LostPassword {
    margin: 14px 0 0;
}

/* Column headings above each card share the page rhythm. */
.bd-commerce.woocommerce-account .woocommerce > .u-columns > :where(.u-column1, .u-column2) > h2 {
    margin: 0 0 18px;
}

.bd-commerce.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    border: 1px solid var(--bd-border);
    list-style: none;
}

.bd-commerce.woocommerce-account .woocommerce-MyAccount-navigation li + li {
    border-top: 1px solid var(--bd-border);
}

.bd-commerce.woocommerce-account .woocommerce-MyAccount-navigation a {
    width: 100%;
    padding: 11px 14px;
    color: var(--bd-primary);
    text-decoration: none;
}

.bd-commerce.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.bd-commerce.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.bd-commerce.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
    background: var(--bd-primary);
    color: var(--bd-on-primary);
}

.bd-commerce :where(
    .woocommerce-form__label-for-checkbox,
    .woocommerce-form-login__rememberme,
    label.checkbox
) {
    display: inline-flex;
    min-height: 44px;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.bd-commerce :where(input[type="checkbox"], input[type="radio"]) {
    width: 20px;
    min-width: 20px;
    height: 20px;
    accent-color: var(--bd-primary);
}

.bd-commerce :where(.form-row.woocommerce-invalid, .woocommerce-invalid-required-field) :where(input, select, textarea) {
    border-color: #ba1a1a;
}

.bd-commerce :where(input, select, textarea):focus-visible {
    border-color: var(--bd-primary);
}

@media (max-width: 767px) {
    .bd-commerce.woocommerce-account .woocommerce > .u-columns {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────────────
 * Cart line + order summary legibility
 *
 * The Cart/Checkout blocks ship a 64px thumbnail and a 13px type scale that
 * reads as a compact widget rather than a jewellery basket. These rules double
 * the thumbnail and lift the copy to the body scale used elsewhere.
 *
 * Selectors here deliberately avoid :where() — the block stylesheet loads after
 * this one, so a zero-specificity wrapper loses. .bd-commerce plus the block
 * class is the minimum that reliably wins.
 * ───────────────────────────────────────────────────────────── */

/*
 * cart.css scopes its own rules as
 * `table.wc-block-cart-items .wc-block-cart-items__row …` — (0,3,1) and up.
 * Matching that depth is what makes these win; a shorter `.bd-commerce .wc-…`
 * selector loses to it no matter how late this sheet loads.
 */
.bd-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    width: 152px;
}

.bd-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
    width: 128px;
    height: 128px;
    max-width: none;
}

.bd-commerce .wc-block-components-order-summary-item__image img {
    width: 128px;
    height: 128px;
    max-width: none;
}

.bd-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    font-size: 17px;
    line-height: 1.35;
}

.bd-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-price,
.bd-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-price__value {
    font-size: 17px;
    line-height: 1.4;
}

/*
 * The block truncates this text to 15 words in React and appends an ellipsis,
 * so the full copy is restored by bigdiamond-cart-description.js. These rules
 * only handle size and make sure nothing clips it back.
 */
.bd-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-metadata__description,
.bd-commerce table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-metadata__description p {
    display: block;
    overflow: visible;
    font-size: 15px;
    line-height: 1.6;
    -webkit-line-clamp: none;
}

/* ── Order summary sidebar ── */

.bd-commerce .wc-block-cart__sidebar .wc-block-cart__totals-title,
.bd-commerce .wc-block-checkout__sidebar .wc-block-cart__totals-title {
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.15;
}

.bd-commerce .wc-block-cart__sidebar .wc-block-components-totals-item__label,
.bd-commerce .wc-block-cart__sidebar .wc-block-components-totals-item__value,
.bd-commerce .wc-block-checkout__sidebar .wc-block-components-totals-item__label,
.bd-commerce .wc-block-checkout__sidebar .wc-block-components-totals-item__value {
    font-size: 16px;
    line-height: 1.5;
}

/* Shipping method line rendered at ~10px by the block — well below body scale. */
.bd-commerce .wc-block-components-totals-shipping__via,
.bd-commerce .wc-block-components-totals-shipping .wc-block-components-shipping-rates-control__package {
    font-size: 14px;
    line-height: 1.5;
}

.bd-commerce .wc-block-components-panel__button {
    font-size: 16px;
}

/*
 * Below 700px (and in the block's own `.is-small` layout) cart.css switches the
 * row to `grid-template-columns: 80px 132px`. The enlarged thumbnail overflows
 * that first track and runs under the product title, so the track has to grow
 * with it.
 */
@media (max-width: 699px) {
    .bd-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
        grid-template-columns: 152px minmax(0, 1fr);
    }
}

.bd-commerce .is-small table.wc-block-cart-items .wc-block-cart-items__row,
.bd-commerce .is-medium table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 152px minmax(0, 1fr);
}

/*
 * The larger theme-owned mobile thumbnail needs the product total on the
 * second grid row. Otherwise the block's implicit total cell covers the
 * quantity/Remove controls at 390px.
 */
@media (max-width: 699px) {
    .bd-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
    .bd-commerce .is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
    .bd-commerce .is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-self: end;
        align-self: end;
    }
}

/* ─────────────────────────────────────────────────────────────
 * Mobile Transactional UX Hardening (Cart, Checkout, Order Received)
 * ───────────────────────────────────────────────────────────── */

/* 1. Mobile Cart Item Layout & Coupon Field */
@media (max-width: 699px) {
    .bd-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
        grid-template-columns: 116px minmax(0, 1fr) !important;
        gap: 12px;
        padding: 16px 0;
    }

    .bd-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
        width: 116px !important;
    }

    .bd-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }

    .bd-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .bd-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: var(--bd-primary) !important;
    }
}

.bd-commerce .wc-block-components-totals-coupon {
    margin-top: 12px;
}

.bd-commerce .wc-block-components-totals-coupon input.wc-block-components-text-input__input {
    min-height: 48px !important;
    border: 1px solid var(--bd-border-strong) !important;
    border-radius: 0 !important;
    background: var(--bd-surface-lowest) !important;
    font-size: 15px !important;
    color: var(--bd-primary) !important;
}

.bd-commerce .wc-block-components-totals-coupon button.wc-block-components-totals-coupon__button {
    min-height: 48px !important;
    padding: 0 20px !important;
    border: 1px solid var(--bd-primary) !important;
    border-radius: 0 !important;
    background: var(--bd-primary) !important;
    color: var(--bd-on-primary) !important;
    font: 700 12px/1.2 var(--bd-sans) !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

.bd-commerce .wc-block-components-totals-coupon button.wc-block-components-totals-coupon__button:hover,
.bd-commerce .wc-block-components-totals-coupon button.wc-block-components-totals-coupon__button:focus-visible {
    border-color: var(--bd-primary-deep) !important;
    background: var(--bd-primary-deep) !important;
}

/* 2. Mobile Checkout Form Fields & Notices */
@media (max-width: 768px) {
    .bd-commerce .woocommerce-checkout .col-1,
    .bd-commerce .woocommerce-checkout .col-2,
    .bd-commerce .woocommerce-checkout .form-row-first,
    .bd-commerce .woocommerce-checkout .form-row-last,
    .bd-commerce .woocommerce-checkout .form-row-wide {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
    }

    .bd-commerce .woocommerce-checkout .form-row {
        margin-bottom: 16px !important;
        padding: 0 !important;
    }

    .bd-commerce .woocommerce-checkout .form-row label {
        display: block !important;
        margin-bottom: 6px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: var(--bd-primary) !important;
    }

    .bd-commerce .woocommerce-checkout .form-row :where(input.input-text, textarea, select) {
        width: 100% !important;
        min-height: 48px !important;
        padding: 12px 14px !important;
        border: 1px solid var(--bd-border-strong) !important;
        border-radius: 0 !important;
        background: var(--bd-surface-lowest) !important;
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
        color: var(--bd-primary) !important;
        box-shadow: none !important;
    }

    .bd-commerce .woocommerce-checkout .form-row :where(input.input-text, textarea, select):focus-visible {
        border-color: var(--bd-primary) !important;
        outline: 1px solid var(--bd-primary) !important;
        outline-offset: 0 !important;
    }
}

/* 3. Mobile Order Review Table & Shipping Methods */
@media (max-width: 768px) {
    .bd-commerce #order_review table.shop_table {
        display: block !important;
        width: 100% !important;
        border: 1px solid var(--bd-border) !important;
        background: var(--bd-surface-lowest) !important;
        margin-bottom: 24px !important;
    }

    .bd-commerce #order_review table.shop_table thead,
    .bd-commerce #order_review table.shop_table tbody,
    .bd-commerce #order_review table.shop_table tfoot {
        display: block !important;
        width: 100% !important;
    }

    .bd-commerce #order_review table.shop_table tr {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--bd-border) !important;
    }

    .bd-commerce #order_review table.shop_table thead tr {
        background: var(--bd-surface-low) !important;
    }

    .bd-commerce #order_review table.shop_table thead th {
        font: 700 11px/1.2 var(--bd-sans) !important;
        letter-spacing: 0.1em !important;
        text-transform: uppercase !important;
        color: var(--bd-primary) !important;
    }

    .bd-commerce #order_review table.shop_table th,
    .bd-commerce #order_review table.shop_table td {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .bd-commerce #order_review table.shop_table tr.shipping {
        display: block !important;
        padding: 16px !important;
    }

    .bd-commerce #order_review table.shop_table tr.shipping th {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px !important;
        font-family: var(--bd-serif) !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: var(--bd-primary) !important;
    }

    .bd-commerce #order_review table.shop_table tr.shipping td {
        display: block !important;
        width: 100% !important;
    }

    .bd-commerce #shipping_method {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .bd-commerce #shipping_method li {
        margin: 0 !important;
        padding: 14px 16px !important;
        border: 1px solid var(--bd-border) !important;
        background: var(--bd-surface-low) !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .bd-commerce #shipping_method li input[type="radio"] {
        margin: 0 !important;
        width: 20px !important;
        height: 20px !important;
        accent-color: var(--bd-primary) !important;
        flex-shrink: 0 !important;
    }

    .bd-commerce #shipping_method li label {
        margin: 0 !important;
        font-size: 14px !important;
        color: var(--bd-primary) !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        flex: 1 !important;
    }

    .bd-commerce #shipping_method li .inpost-shipping-method-wrapper,
    .bd-commerce #shipping_method li .inpost-geowidget-wrapper {
        width: 100% !important;
        margin-top: 8px !important;
    }

    .bd-commerce #order_review table.shop_table tr.order-total {
        padding: 16px !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        border-bottom: none !important;
    }

    .bd-commerce #order_review table.shop_table tr.order-total th {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: var(--bd-primary) !important;
    }

    .bd-commerce #order_review table.shop_table tr.order-total td strong {
        font-size: 18px !important;
        color: var(--bd-primary) !important;
    }
}

/* InPost Geowidget Button */
.bd-commerce .easypack_show_geowidget {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 14px 20px !important;
    border-radius: 0 !important;
    background: #ffcc00 !important;
    color: #111111 !important;
    font-family: var(--bd-sans) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    margin-top: 10px !important;
}

.bd-commerce .easypack_show_geowidget:hover,
.bd-commerce .easypack_show_geowidget:focus-visible {
    background: #e6b800 !important;
    color: #000000 !important;
}

/* 4. Payment Methods & Place Order */
.bd-commerce #payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.bd-commerce #payment ul.payment_methods {
    margin: 0 0 20px !important;
    padding: 0 !important;
    list-style: none !important;
    border: 1px solid var(--bd-border) !important;
    background: var(--bd-surface-lowest) !important;
}

.bd-commerce #payment ul.payment_methods li.wc_payment_method {
    margin: 0 !important;
    border-bottom: 1px solid var(--bd-border) !important;
    background: transparent !important;
}

.bd-commerce #payment ul.payment_methods li.wc_payment_method:last-child {
    border-bottom: none !important;
}

.bd-commerce #payment .payment_methods > .wc_payment_method > label {
    display: flex !important;
    align-items: center !important;
    min-height: 52px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--bd-primary) !important;
    background: transparent !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.bd-commerce #payment .payment_methods li.wc_payment_method > input[type="radio"]:first-child:checked + label {
    background: var(--bd-surface-low) !important;
    color: var(--bd-primary) !important;
}

.bd-commerce #payment .payment_methods li.wc_payment_method .payment_box {
    background: var(--bd-surface-low) !important;
    padding: 14px 18px 18px !important;
    border-top: 1px solid var(--bd-border) !important;
    margin: 0 !important;
    color: var(--bd-text) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.bd-commerce #payment .payment_methods li.wc_payment_method .payment_box::before {
    display: none !important;
}

.bd-commerce #payment .payment_methods li.wc_payment_method .payment_box p {
    margin: 0 !important;
    color: var(--bd-muted) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.bd-commerce #payment div.form-row.place-order {
    padding: 0 !important;
    margin: 20px 0 0 !important;
}

.bd-commerce #payment .woocommerce-privacy-policy-text p {
    margin-bottom: 14px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--bd-muted) !important;
}

.bd-commerce #payment .woocommerce-privacy-policy-link,
.bd-commerce #payment .woocommerce-terms-and-conditions-link {
    color: var(--bd-gold-ink) !important;
    text-decoration: underline !important;
    text-underline-offset: 0.16em !important;
}

.bd-commerce #payment .woocommerce-form__label-for-checkbox {
    display: block !important;
    position: relative !important;
    padding-left: 30px !important;
    min-height: 24px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: var(--bd-primary) !important;
    cursor: pointer !important;
    margin-bottom: 20px !important;
}

.bd-commerce #payment .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    margin: 0 !important;
}

.bd-commerce #payment .woocommerce-form__label-for-checkbox .woocommerce-terms-and-conditions-checkbox-text,
.bd-commerce #payment .woocommerce-form__label-for-checkbox abbr.required {
    display: inline !important;
}

/* 5. Order Received / Thank You Page */
.bd-commerce .woocommerce-order {
    margin: 0 auto;
}

.bd-commerce .woocommerce-thankyou-order-received {
    font-family: var(--bd-serif) !important;
    font-size: clamp(20px, 3vw, 26px) !important;
    color: var(--bd-primary) !important;
    margin: 0 0 24px !important;
    line-height: 1.3 !important;
}

.bd-commerce .woocommerce-order > p:not(.woocommerce-thankyou-order-received) {
    font-size: 15px !important;
    color: var(--bd-muted) !important;
    margin: 16px 0 !important;
    line-height: 1.6 !important;
}

.bd-commerce ul.woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 28px 0 40px !important;
    padding: 24px !important;
    border: 1px solid var(--bd-border-strong) !important;
    background: var(--bd-surface-low) !important;
    list-style: none !important;
}

@media (max-width: 480px) {
    .bd-commerce ul.woocommerce-order-overview {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 18px 20px !important;
    }
}

.bd-commerce ul.woocommerce-order-overview li {
    float: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--bd-border) !important;
    font: 400 12px/1.3 var(--bd-sans) !important;
    color: var(--bd-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.bd-commerce ul.woocommerce-order-overview li:last-child {
    border-bottom: none !important;
}

.bd-commerce ul.woocommerce-order-overview li strong {
    display: block !important;
    margin-top: 5px !important;
    font: 600 16px/1.35 var(--bd-sans) !important;
    color: var(--bd-primary) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.bd-commerce .woocommerce-order h2 {
    font-family: var(--bd-serif) !important;
    font-size: clamp(24px, 4vw, 36px) !important;
    font-weight: 600 !important;
    color: var(--bd-primary) !important;
    margin: 40px 0 20px !important;
}

.bd-commerce table.woocommerce-table--order-details {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid var(--bd-border) !important;
    background: var(--bd-surface-lowest) !important;
    margin-bottom: 36px !important;
}

.bd-commerce table.woocommerce-table--order-details th,
.bd-commerce table.woocommerce-table--order-details td {
    padding: 14px 18px !important;
    border: none !important;
    border-bottom: 1px solid var(--bd-border) !important;
    color: var(--bd-text) !important;
    font-size: 15px !important;
}

.bd-commerce table.woocommerce-table--order-details thead th {
    background: var(--bd-surface-low) !important;
    color: var(--bd-primary) !important;
    font: 700 12px/1.2 var(--bd-sans) !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.bd-commerce table.woocommerce-table--order-details tfoot th {
    color: var(--bd-primary) !important;
    font-weight: 600 !important;
    border-right: 1px solid var(--bd-border) !important;
}

.bd-commerce table.woocommerce-table--order-details tfoot tr:last-child th,
.bd-commerce table.woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--bd-primary) !important;
    border-bottom: none !important;
}

.bd-commerce section.woocommerce-customer-details {
    margin-top: 36px !important;
}

.bd-commerce section.woocommerce-customer-details address {
    padding: 22px 24px !important;
    border: 1px solid var(--bd-border-strong) !important;
    background: var(--bd-surface-low) !important;
    border-radius: 0 !important;
    font-style: normal !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: var(--bd-text) !important;
}
