/* ═══════════════════════════════════════════════════════════════
 * CART-CHECKOUT.CSS — Brillo de Amalia
 * Side cart + checkout styles — CSS-only (cero GSAP aquí)
 * Se carga en todas las páginas (side cart) + cart/checkout
 * ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
 * 1. SIDE CART — PANEL
 * ───────────────────────────────────────────── */
.bda-side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bda-bg-light, #fcfcfc);
    transform: translateX(100%);
    transition: transform var(--bda-duration-base, 0.6s) var(--bda-ease-out, cubic-bezier(0.22, 1, 0.36, 1));
    z-index: var(--bda-z-modal, 999);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.bda-side-cart.is-open {
    transform: translateX(0);
}

/* Overlay detrás del side cart */
.bda-side-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background var(--bda-duration-fast, 0.3s) ease;
    z-index: calc(var(--bda-z-modal, 999) - 1);
}
.bda-side-cart-overlay.is-open {
    background: rgba(0, 0, 0, 0.35);
    pointer-events: all;
    cursor: pointer;
}

/* Blur premium (solo si el navegador lo soporta) */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .bda-side-cart-overlay.is-open {
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
}

/* Lock body scroll cuando side cart abierto */
body.bda-cart-open {
    overflow: hidden;
}

/* ─────────────────────────────────────────────
 * 2. SIDE CART — HEADER
 * ───────────────────────────────────────────── */
.bda-side-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.bda-side-cart-title {
    font-family: var(--bda-font-display, serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.bda-cart-count {
    font-family: var(--bda-font-sans, sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bda-primary, #2c3e50);
    color: white;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--bda-radius-full, 9999px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bda-side-cart-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color var(--bda-duration-fast, 0.3s) ease;
    border-radius: var(--bda-radius-full, 9999px);
}
.bda-side-cart-close:hover {
    color: #111827;
    background: #f3f4f6;
}

/* ─────────────────────────────────────────────
 * 3. BARRA ENVÍO GRATIS
 * ───────────────────────────────────────────── */
.bda-shipping-progress {
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.bda-shipping-text {
    font-size: 0.75rem;
    color: var(--bda-text-light, #6b7280);
    margin-bottom: 0.5rem;
    text-align: center;
}
.bda-shipping-text strong {
    color: var(--bda-primary, #2c3e50);
    font-weight: 600;
}
.bda-shipping-bar {
    height: 3px;
    background: var(--bda-accent, #bdc3c7);
    border-radius: 2px;
    overflow: hidden;
}
.bda-shipping-bar-fill {
    height: 100%;
    background: var(--bda-primary, #2c3e50);
    border-radius: 2px;
    transition: width 0.5s var(--bda-ease-out, cubic-bezier(0.22, 1, 0.36, 1));
    min-width: 0;
}
.bda-shipping-bar-fill.is-complete {
    background: var(--bda-success, #27ae60);
}

/* ─────────────────────────────────────────────
 * 4. SIDE CART — ITEMS
 * ───────────────────────────────────────────── */
.bda-side-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bda-accent, #bdc3c7) transparent;
}

.bda-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    /* Animación entrada secuencial */
    opacity: 0;
    animation: bdaCartItemIn var(--bda-duration-fast, 0.3s) var(--bda-ease-out, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}
.bda-cart-item:nth-child(1) { animation-delay: 0.05s; }
.bda-cart-item:nth-child(2) { animation-delay: 0.1s; }
.bda-cart-item:nth-child(3) { animation-delay: 0.15s; }
.bda-cart-item:nth-child(4) { animation-delay: 0.2s; }
.bda-cart-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes bdaCartItemIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Animación de salida */
.bda-cart-item.is-removing {
    animation: bdaCartItemOut 0.3s var(--bda-ease, cubic-bezier(0.25, 0.46, 0.45, 0.94)) forwards;
}
@keyframes bdaCartItemOut {
    to {
        opacity: 0;
        transform: translateX(30px);
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

/* Feedback: abrir / añadido (sutil, sin bloquear) */
.bda-side-cart.is-bounce {
    animation: bdaCartBounce 0.45s var(--bda-ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1));
}
@keyframes bdaCartBounce {
    0%   { transform: translateX(0) scale(1); }
    35%  { transform: translateX(0) scale(1.01); }
    100% { transform: translateX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .bda-cart-item {
        animation: none !important;
        opacity: 1 !important;
    }
    .bda-side-cart.is-bounce {
        animation: none !important;
    }
    .bda-side-cart,
    .bda-side-cart-overlay {
        transition: none !important;
    }
}

/* Item image */
.bda-cart-item-img {
    width: 72px;
    height: 90px;
    border-radius: var(--bda-radius, 0.25rem);
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}
.bda-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Item info */
.bda-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.bda-cart-item-name {
    font-family: var(--bda-font-display, serif);
    font-size: 0.9375rem;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bda-cart-item-name a {
    color: inherit;
    text-decoration: none;
}
.bda-cart-item-name a:hover {
    color: var(--bda-primary, #2c3e50);
}
.bda-cart-item-variant {
    font-size: 0.75rem;
    color: var(--bda-text-light, #6b7280);
    margin-top: 0.125rem;
}
.bda-cart-item-variant dl,
.bda-cart-item-variant p {
    margin: 0;
}
.bda-cart-item-variant dt,
.bda-cart-item-variant dd {
    display: inline;
    margin: 0;
}
.bda-cart-item-variant dd + dt::before {
    content: " · ";
}
.bda-cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.bda-cart-item-price {
    font-weight: 500;
    font-size: 0.875rem;
    color: #111827;
}

/* Cantidad inline */
.bda-cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: var(--bda-radius, 0.25rem);
    overflow: hidden;
}
.bda-cart-item-qty button {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--bda-text, #374151);
    transition: background 0.15s ease;
}
.bda-cart-item-qty button:hover {
    background: #f3f4f6;
}
.bda-cart-item-qty span {
    width: 1.75rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Remove button */
.bda-cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.15s ease;
    align-self: flex-start;
    flex-shrink: 0;
}
.bda-cart-item-remove:hover {
    color: var(--bda-error, #e74c3c);
}

/* ─────────────────────────────────────────────
 * 5. SIDE CART — EMPTY STATE
 * ───────────────────────────────────────────── */
.bda-side-cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--bda-text-light, #6b7280);
}
.bda-side-cart-empty-icon {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}
.bda-side-cart-empty p {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}
.bda-side-cart-empty a {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bda-primary, #2c3e50);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}
.bda-side-cart-empty a:hover { opacity: 0.7; }

/* ─────────────────────────────────────────────
 * 6. SIDE CART — FOOTER (Total + CTA)
 * ───────────────────────────────────────────── */
.bda-side-cart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: white;
    flex-shrink: 0;
}
.bda-side-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.bda-side-cart-subtotal-label {
    font-size: 0.875rem;
    color: var(--bda-text-light, #6b7280);
}
.bda-cart-total {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}
.bda-side-cart-note {
    font-size: 0.6875rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 0.75rem;
}

.bda-side-cart-checkout {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: var(--bda-primary, #2c3e50);
    color: white;
    border: none;
    border-radius: var(--bda-radius, 0.25rem);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.bda-side-cart-checkout:hover {
    background: #1e293b;
    transform: translateY(-1px);
}
.bda-side-cart-checkout:active {
    transform: translateY(0);
}

.bda-side-cart-continue {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--bda-text-light, #6b7280);
    text-decoration: none;
    transition: color 0.2s ease;
}
.bda-side-cart-continue:hover {
    color: var(--bda-primary, #2c3e50);
}

/* ─────────────────────────────────────────────
 * 7. CHECKOUT — VALIDACIÓN INLINE
 * ───────────────────────────────────────────── */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
    border-color: var(--bda-error, #e74c3c) !important;
    animation: bdaShake 0.4s ease;
}

@keyframes bdaShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

/* Mensajes de error inline */
.woocommerce form .form-row.woocommerce-invalid .woocommerce-error-message {
    color: var(--bda-error, #e74c3c);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

/* ─────────────────────────────────────────────
 * 8. CHECKOUT — RESUMEN STICKY
 * ───────────────────────────────────────────── */
@media (min-width: 768px) {
    .bda-checkout-summary {
        position: sticky;
        top: 6rem;
    }
}

.bda-checkout-summary {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--bda-radius, 0.25rem);
    padding: 1.5rem;
}

/* Shadow on scroll (toggle via JS class) */
.bda-checkout-summary.is-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ─────────────────────────────────────────────
 * 9. CHECKOUT — BOTÓN PAGAR
 * ───────────────────────────────────────────── */
#place_order,
.bda-place-order {
    position: relative;
    transition: background 0.2s ease, opacity 0.2s ease;
}

/* Estado loading */
.bda-btn-loading {
    pointer-events: none !important;
    opacity: 0.7;
}
.bda-btn-loading .bda-btn-text {
    visibility: hidden;
}
.bda-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-right-color: currentColor;
    border-radius: 50%;
    animation: bdaSpin 0.6s linear infinite;
}

@keyframes bdaSpin {
    to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────
 * 10. CHECKOUT — PASOS (multi-step si aplica)
 * ───────────────────────────────────────────── */
.bda-checkout-step {
    animation: bdaStepIn 0.4s var(--bda-ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
}
@keyframes bdaStepIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Progress indicator */
.bda-checkout-progress {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.bda-checkout-progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--bda-accent, #bdc3c7);
    transition: color 0.3s ease;
}
.bda-checkout-progress-step.is-active {
    color: var(--bda-primary, #2c3e50);
    font-weight: 600;
}
.bda-checkout-progress-step.is-completed {
    color: var(--bda-success, #27ae60);
}
.bda-checkout-progress-step::before {
    content: attr(data-step);
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 0.6875rem;
    font-weight: 700;
}
.bda-checkout-progress-step.is-completed::before {
    content: '✓';
    background: var(--bda-success, #27ae60);
    color: white;
    border-color: var(--bda-success, #27ae60);
}

/* ─────────────────────────────────────────────
 * 11. REDUCED MOTION — desactivar todo
 * ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .bda-side-cart { transition: none; }
    .bda-side-cart-overlay { transition: none; }
    .bda-cart-item {
        opacity: 1;
        animation: none;
    }
    .bda-cart-item.is-removing { animation: none; opacity: 0; }
    .bda-shipping-bar-fill { transition: none; }
    .woocommerce form .form-row.woocommerce-invalid input.input-text,
    .woocommerce form .form-row.woocommerce-invalid select {
        animation: none;
    }
    .bda-checkout-step { animation: none; opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────
 * 12. CART PAGE — editorial storefront surface
 * ───────────────────────────────────────────── */
body.bda-storefront.woocommerce-cart .entry-header,
body.bda-storefront.woocommerce-cart .page-header {
    display: none !important;
}

body.bda-storefront.woocommerce-cart .bda-cart-page {
    max-width: min(1280px, calc(100vw - 3rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 5.5rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-hero {
    display: grid;
    gap: 0.85rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #5b6472;
}

body.bda-storefront.woocommerce-cart .bda-cart-title {
    margin: 0;
    font-family: var(--bda-font-display);
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: #111827;
}

body.bda-storefront.woocommerce-cart .bda-cart-copy {
    max-width: 42rem;
    margin: 0;
    color: #566372;
    font-size: 1rem;
    line-height: 1.75;
}

body.bda-storefront.woocommerce-cart .bda-cart-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1100px) {
    body.bda-storefront.woocommerce-cart .bda-cart-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(21rem, 0.8fr);
        gap: clamp(2rem, 4vw, 3rem);
    }
}

body.bda-storefront.woocommerce-cart .bda-cart-form {
    margin: 0;
}

body.bda-storefront.woocommerce-cart .bda-cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-table thead th {
    padding: 0 1.15rem 0.3rem;
    border: none;
    color: #5b6472;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-cart .bda-cart-table thead th.product-name {
    padding-left: 1.5rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-table td {
    padding: 1.2rem 1.15rem;
    border-top: 1px solid rgba(189, 195, 199, 0.28);
    border-bottom: 1px solid rgba(189, 195, 199, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    vertical-align: middle;
}

body.bda-storefront.woocommerce-cart .bda-cart-table td:first-child {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(189, 195, 199, 0.28);
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-table td:last-child {
    padding-right: 1.25rem;
    border-right: 1px solid rgba(189, 195, 199, 0.28);
    border-top-right-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-product {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-media {
    overflow: hidden;
    border-radius: 1.15rem;
    background: rgba(243, 244, 246, 0.9);
    aspect-ratio: 4 / 5;
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08);
}

body.bda-storefront.woocommerce-cart .bda-cart-product-media a,
body.bda-storefront.woocommerce-cart .bda-cart-product-media img {
    display: block;
    width: 100%;
    height: 100%;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-media img {
    object-fit: cover;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-copy {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7b8794;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-name,
body.bda-storefront.woocommerce-cart .bda-cart-product-name a {
    font-family: var(--bda-font-display);
    font-size: 1.15rem;
    line-height: 1.12;
    color: #111827;
    text-decoration: none;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-price,
body.bda-storefront.woocommerce-cart .bda-cart-table .product-subtotal {
    color: #16202b;
    font-size: 0.96rem;
    font-weight: 600;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-copy .variation,
body.bda-storefront.woocommerce-cart .bda-cart-product-copy .wc-item-meta {
    margin: 0.15rem 0 0;
    color: #6b7280;
    font-size: 0.82rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-table .product-quantity,
body.bda-storefront.woocommerce-cart .bda-cart-table .product-subtotal,
body.bda-storefront.woocommerce-cart .bda-cart-table .product-remove {
    white-space: nowrap;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.25rem;
    border: 1px solid rgba(189, 195, 199, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
    width: 3rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #111827;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

body.bda-storefront.woocommerce-cart .bda-cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    color: #7b8794 !important;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background var(--bda-duration-fast) var(--bda-ease), color var(--bda-duration-fast) var(--bda-ease);
}

body.bda-storefront.woocommerce-cart .bda-cart-remove:hover {
    background: rgba(44, 62, 80, 0.08);
    color: #111827 !important;
}

body.bda-storefront.woocommerce-cart .bda-cart-actions-row td {
    background: transparent;
    border: none;
    padding: 0.35rem 0 0;
}

body.bda-storefront.woocommerce-cart .bda-cart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

body.bda-storefront.woocommerce-cart .bda-cart-coupon .input-text {
    min-width: min(320px, 100%);
    min-height: 3.25rem;
    padding: 0.9rem 1.15rem;
    border: 1px solid rgba(189, 195, 199, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #16202b;
}

body.bda-storefront.woocommerce-cart .bda-cart-actions-main {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-left: auto;
}

body.bda-storefront.woocommerce-cart .bda-cart-collaterals {
    display: grid;
    gap: 1rem;
    align-self: start;
}

body.bda-storefront.woocommerce-cart .bda-cart-collaterals .cross-sells {
    display: none;
}

body.bda-storefront.woocommerce-cart .cart_totals {
    padding: 1.5rem;
    border: 1px solid rgba(189, 195, 199, 0.32);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    box-shadow: 0 24px 48px rgba(17, 24, 39, 0.08);
}

@media (min-width: 1100px) {
    body.bda-storefront.woocommerce-cart .bda-cart-collaterals {
        align-self: stretch;
    }

    body.bda-storefront.woocommerce-cart .cart_totals {
        position: sticky;
        top: calc(var(--bda-nav-offset, 5.5rem) + var(--bda-admin-bar-offset, 0px) + 1rem);
    }
}

body.bda-storefront.woocommerce-cart .cart_totals > h2 {
    margin: 0 0 1rem;
    font-family: var(--bda-font-display);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: #111827;
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table {
    margin-bottom: 1rem;
    border: none;
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table th,
body.bda-storefront.woocommerce-cart .cart_totals table.shop_table td {
    padding: 0.95rem 0;
    border-color: rgba(189, 195, 199, 0.22);
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table th {
    color: #5b6472;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-cart .wc-proceed-to-checkout {
    margin-bottom: 0;
}

body.bda-storefront.woocommerce-cart .checkout-button {
    width: 100%;
}

@media (max-width: 1099px) {
    body.bda-storefront.woocommerce-cart .bda-cart-page {
        max-width: min(100vw - 1.5rem, 100%);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table thead {
        display: none;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table,
    body.bda-storefront.woocommerce-cart .bda-cart-table tbody,
    body.bda-storefront.woocommerce-cart .bda-cart-table tr,
    body.bda-storefront.woocommerce-cart .bda-cart-table td {
        display: block;
        width: 100%;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table tr.woocommerce-cart-form__cart-item {
        margin-bottom: 1rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table td {
        border-right: 1px solid rgba(189, 195, 199, 0.28);
        border-left: 1px solid rgba(189, 195, 199, 0.28);
        border-radius: 0;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table td:first-child {
        border-top-right-radius: 1.5rem;
        border-bottom-left-radius: 0;
        padding-right: 1.5rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table td:last-child {
        border-bottom-left-radius: 1.5rem;
        border-top-right-radius: 0;
        border-bottom-right-radius: 1.5rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table td.product-quantity::before,
    body.bda-storefront.woocommerce-cart .bda-cart-table td.product-subtotal::before {
        content: attr(data-title);
        display: block;
        margin-bottom: 0.5rem;
        color: #5b6472;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-actions,
    body.bda-storefront.woocommerce-cart .bda-cart-actions-main,
    body.bda-storefront.woocommerce-cart .bda-cart-coupon {
        flex-direction: column;
        align-items: stretch;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-coupon .input-text,
    body.bda-storefront.woocommerce-cart .bda-cart-actions-main .button,
    body.bda-storefront.woocommerce-cart .bda-cart-coupon .button {
        width: 100%;
    }
}

/* ─────────────────────────────────────────────
 * 13. CART OPTION 01 - editorial split
 * ───────────────────────────────────────────── */
body.bda-storefront.woocommerce-cart {
    background:
        radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.82), transparent 34%),
        radial-gradient(circle at 88% 28%, rgba(222, 226, 230, 0.34), transparent 30%),
        linear-gradient(180deg, #faf8f5 0%, #f4f0ea 48%, #f9f7f4 100%);
}

body.bda-storefront.woocommerce-cart .site-main,
body.bda-storefront.woocommerce-cart .ct-container-full,
body.bda-storefront.woocommerce-cart .entry-content {
    overflow: visible;
}

body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper {
    width: min(100% - clamp(1.25rem, 4vw, 4rem), 1380px);
    margin: clamp(1rem, 2vw, 1.5rem) auto clamp(1rem, 2.5vw, 1.75rem);
    position: relative;
    z-index: 4;
    overflow: visible;
}

body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper:empty {
    display: none;
}

body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error,
body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    width: 100%;
    min-height: auto;
    height: auto;
    margin: 0;
    padding: clamp(1rem, 1.7vw, 1.22rem) clamp(1.05rem, 2vw, 1.35rem);
    border: 0 !important;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 249, 249, 0.98), rgba(253, 246, 245, 0.94)),
        rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 0 0 1px rgba(216, 74, 92, 0.22),
        0 18px 42px rgba(47, 58, 72, 0.085);
    color: #253241;
    font-size: clamp(0.86rem, 1vw, 0.96rem);
    font-weight: 700;
    line-height: 1.45;
    list-style: none;
    outline: 0 !important;
    overflow: visible;
    text-align: left;
    transform: none;
}

body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error::before,
body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message::before,
body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info::before {
    content: '!';
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    height: 2.05rem;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 0 0 1px currentColor;
    color: currentColor;
    font-family: var(--bda-font-sans, sans-serif);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
}

body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error {
    background:
        linear-gradient(135deg, rgba(255, 247, 247, 0.98), rgba(254, 241, 242, 0.92)),
        rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 0 0 1px rgba(216, 74, 92, 0.24),
        inset 5px 0 0 rgba(216, 74, 92, 0.56),
        0 18px 42px rgba(47, 58, 72, 0.085);
    color: #8b1e2d;
}

body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message {
    background: #f4fbf6;
    box-shadow:
        inset 0 0 0 1px rgba(53, 129, 91, 0.2),
        inset 5px 0 0 rgba(53, 129, 91, 0.44),
        0 18px 42px rgba(47, 58, 72, 0.075);
    color: #166534;
}

body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info {
    background: #f8fafc;
    box-shadow:
        inset 0 0 0 1px rgba(63, 75, 89, 0.16),
        inset 5px 0 0 rgba(63, 75, 89, 0.34),
        0 18px 42px rgba(47, 58, 72, 0.07);
    color: #344255;
}

body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper li {
    grid-column: 2;
    margin: 0;
    padding: 0;
    color: inherit;
}

body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper li + li {
    margin-top: 0.35rem;
}

body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper a,
body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper button {
    color: inherit;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

body.bda-storefront.woocommerce-cart .bda-cart-page {
    width: min(100% - clamp(1.25rem, 4vw, 4rem), 1380px);
    max-width: none;
    padding: clamp(2.5rem, 5vw, 4.75rem) 0 clamp(4.5rem, 8vw, 6.5rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
    gap: clamp(1.25rem, 4vw, 4rem);
    align-items: end;
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-hero-copy {
    display: grid;
    gap: 0.9rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-eyebrow,
body.bda-storefront.woocommerce-cart .bda-cart-list-kicker,
body.bda-storefront.woocommerce-cart .bda-cart-summary-note > span,
body.bda-storefront.woocommerce-cart .bda-cart-coupon-label {
    color: #526172;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-cart .bda-cart-title {
    max-width: 12ch;
    font-size: clamp(3.4rem, 8vw, 7.8rem);
    line-height: 0.86;
    letter-spacing: -0.065em;
}

body.bda-storefront.woocommerce-cart .bda-cart-copy {
    max-width: 36rem;
    color: #667386;
    font-size: clamp(0.98rem, 1.3vw, 1.12rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-hero-panel {
    display: grid;
    gap: 0.75rem;
    padding: clamp(1rem, 2vw, 1.3rem);
    border: 1px solid rgba(149, 165, 166, 0.22);
    border-radius: 28px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.84), rgba(246, 243, 238, 0.74)),
        rgba(255, 255, 255, 0.78);
    box-shadow:
        0 24px 54px rgba(17, 24, 39, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.bda-storefront.woocommerce-cart .bda-cart-hero-panel > span {
    color: #7a8594;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-cart .bda-cart-hero-panel strong {
    color: #111827;
    font-family: var(--bda-font-display);
    font-size: clamp(1.85rem, 3vw, 2.75rem);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.045em;
}

body.bda-storefront.woocommerce-cart .bda-cart-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(22rem, 0.55fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-list-shell {
    padding: clamp(0.85rem, 1.6vw, 1.2rem);
    border: 1px solid rgba(149, 165, 166, 0.18);
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(246, 243, 238, 0.52)),
        rgba(255, 255, 255, 0.7);
    box-shadow:
        0 28px 72px rgba(17, 24, 39, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.bda-storefront.woocommerce-cart .bda-cart-list-head {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
    padding: clamp(0.65rem, 1.6vw, 1rem) clamp(0.7rem, 1.6vw, 1.1rem) clamp(1rem, 2vw, 1.35rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-list-head h2 {
    margin: 0.38rem 0 0;
    color: #111827;
    font-family: var(--bda-font-display);
    font-size: clamp(1.9rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

body.bda-storefront.woocommerce-cart .bda-cart-list-head p {
    max-width: 18rem;
    margin: 0;
    color: #758294;
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: right;
}

body.bda-storefront.woocommerce-cart .bda-cart-table,
body.bda-storefront.woocommerce-cart .bda-cart-table tbody {
    display: grid;
    width: 100%;
}

body.bda-storefront.woocommerce-cart .bda-cart-table {
    border-spacing: 0;
}

body.bda-storefront.woocommerce-cart .bda-cart-table thead {
    display: none;
}

body.bda-storefront.woocommerce-cart .bda-cart-table tbody {
    gap: 0.9rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-table tr.woocommerce-cart-form__cart-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, auto) minmax(7.75rem, auto) minmax(5rem, auto);
    gap: clamp(0.75rem, 1.4vw, 1.15rem);
    align-items: center;
    min-width: 0;
    padding: clamp(0.72rem, 1.4vw, 1rem);
    border: 1px solid rgba(149, 165, 166, 0.2);
    border-radius: 28px;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 250, 0.9)),
        rgba(255, 255, 255, 0.82);
    box-shadow:
        0 18px 42px rgba(17, 24, 39, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.bda-storefront.woocommerce-cart .bda-cart-table tr.bda-cart-item--attention {
    border-color: rgba(216, 74, 92, 0.34);
    background:
        linear-gradient(155deg, rgba(255, 250, 250, 0.98), rgba(253, 246, 245, 0.92)),
        rgba(255, 255, 255, 0.9);
    box-shadow:
        inset 0 0 0 1px rgba(216, 74, 92, 0.12),
        0 20px 44px rgba(139, 30, 45, 0.085);
}

body.bda-storefront.woocommerce-cart .bda-cart-table tr.bda-cart-item--attention::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 28px 0 0 28px;
    background: linear-gradient(180deg, rgba(216, 74, 92, 0.82), rgba(139, 30, 45, 0.5));
}

body.bda-storefront.woocommerce-cart .bda-cart-table tr.bda-cart-item--attention .bda-cart-product-media {
    border-color: rgba(216, 74, 92, 0.3);
    background: #fff7f7;
}

body.bda-storefront.woocommerce-cart .bda-cart-table tr.bda-cart-item--attention .bda-cart-product-index {
    color: #8b1e2d;
}

body.bda-storefront.woocommerce-cart .bda-cart-table td,
body.bda-storefront.woocommerce-cart .bda-cart-table td:first-child,
body.bda-storefront.woocommerce-cart .bda-cart-table td:last-child {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.bda-storefront.woocommerce-cart .bda-cart-product {
    grid-template-columns: clamp(7.2rem, 11vw, 9.8rem) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.35rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-product-media {
    position: relative;
    border: 1px solid rgba(149, 165, 166, 0.18);
    border-radius: 24px;
    background: #f3f5f6;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

body.bda-storefront.woocommerce-cart .bda-cart-product-index {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-media img {
    object-fit: cover;
    transition: transform 0.55s var(--bda-ease-out), filter 0.55s var(--bda-ease);
}

body.bda-storefront.woocommerce-cart .bda-cart-product:hover .bda-cart-product-media img {
    filter: contrast(1.04);
    transform: scale(1.035);
}

body.bda-storefront.woocommerce-cart .bda-cart-product-name,
body.bda-storefront.woocommerce-cart .bda-cart-product-name a {
    max-width: 18ch;
    font-size: clamp(1.45rem, 2.2vw, 2.35rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-price {
    font-size: 0.9rem;
    font-weight: 800;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    color: #7a8594;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-meta span + span::before {
    content: '•';
    margin-right: 0.55rem;
    color: #c9d2dc;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-alert {
    display: grid;
    gap: 0.28rem;
    max-width: min(100%, 27rem);
    margin-top: 0.7rem;
    padding: 0.7rem 0.82rem;
    border-radius: 16px;
    background: rgba(255, 241, 242, 0.76);
    box-shadow: inset 0 0 0 1px rgba(216, 74, 92, 0.2);
    color: #8b1e2d;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-alert span {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-alert p {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.38;
}

body.bda-storefront.woocommerce-cart .bda-cart-quantity-field,
body.bda-storefront.woocommerce-cart .bda-cart-line-total {
    display: grid;
    gap: 0.5rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-quantity-field > span,
body.bda-storefront.woocommerce-cart .bda-cart-line-total > span {
    color: #7a8594;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity {
    display: inline-grid;
    grid-template-columns: 2.25rem 3rem 2.25rem;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.22rem;
    border-color: rgba(149, 165, 166, 0.28);
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 14px 26px rgba(17, 24, 39, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity label {
    display: none;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-decrease,
body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-increase {
    position: static !important;
    inset: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.08);
    color: #263445;
    cursor: pointer;
    font-family: inherit !important;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 !important;
    transform: none;
    z-index: auto;
    transition: background 0.22s var(--bda-ease), transform 0.22s var(--bda-ease-out);
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-decrease {
    order: 1;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
    position: static !important;
    order: 2;
    min-height: 2.25rem;
    margin: 0 !important;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-increase {
    order: 3;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-decrease::before,
body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-increase::before {
    font-family: inherit !important;
    line-height: 1;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-decrease::before {
    content: '-' !important;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-increase::before {
    content: '+' !important;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-decrease:hover,
body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-increase:hover {
    background: rgba(44, 62, 80, 0.15);
    transform: scale(1.04);
}

body.bda-storefront.woocommerce-cart .bda-cart-line-total strong {
    color: #172231;
    font-size: 0.96rem;
    font-weight: 800;
}

body.bda-storefront.woocommerce-cart .bda-cart-remove {
    width: auto;
    min-width: 4.9rem;
    height: 2.8rem;
    padding: 0 0.95rem;
    border: 1px solid rgba(149, 165, 166, 0.24);
    background: rgba(255, 255, 255, 0.7);
    color: #5f6b7a !important;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-cart .bda-cart-remove:hover {
    background: #3f4b59;
    color: #fff !important;
}

body.bda-storefront.woocommerce-cart .bda-cart-actions-row {
    display: block;
}

body.bda-storefront.woocommerce-cart .bda-cart-actions-row td.actions {
    display: block;
    padding: 0.25rem 0 0;
}

body.bda-storefront.woocommerce-cart .bda-cart-actions {
    align-items: stretch;
    padding: clamp(0.8rem, 1.6vw, 1rem);
    border: 1px solid rgba(149, 165, 166, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.58);
}

body.bda-storefront.woocommerce-cart .bda-cart-coupon {
    align-items: center;
    gap: 0.65rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-coupon .input-text {
    min-height: 3.15rem;
    border-color: rgba(149, 165, 166, 0.26);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.bda-storefront.woocommerce-cart .bda-cart-shop-link,
body.bda-storefront.woocommerce-cart .bda-cart-actions .button,
body.bda-storefront.woocommerce-cart .bda-cart-coupon .button,
body.bda-storefront.woocommerce-cart .checkout-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.35rem 1.15rem !important;
    border: 1px solid rgba(63, 75, 89, 0.32) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: #253241 !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    font-size: 0.66rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background 0.32s var(--bda-ease), color 0.32s var(--bda-ease), transform 0.32s var(--bda-ease-out), box-shadow 0.32s var(--bda-ease);
}

body.bda-storefront.woocommerce-cart .bda-cart-shop-link:hover,
body.bda-storefront.woocommerce-cart .bda-cart-actions .button:hover,
body.bda-storefront.woocommerce-cart .bda-cart-coupon .button:hover {
    background: #3f4b59 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

body.bda-storefront.woocommerce-cart .bda-cart-collaterals {
    gap: 0.85rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-summary-note,
body.bda-storefront.woocommerce-cart .cart_totals,
body.bda-storefront.woocommerce-cart .bda-cart-assurance {
    border: 1px solid rgba(149, 165, 166, 0.22);
    border-radius: 32px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 243, 0.8)),
        rgba(255, 255, 255, 0.82);
    box-shadow:
        0 24px 56px rgba(17, 24, 39, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.bda-storefront.woocommerce-cart .bda-cart-summary-note {
    display: grid;
    gap: 0.6rem;
    padding: 1.1rem 1.25rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-summary-note p {
    margin: 0;
    color: #667386;
    font-size: 0.9rem;
    line-height: 1.55;
}

body.bda-storefront.woocommerce-cart .cart_totals {
    padding: clamp(1.2rem, 2.4vw, 1.65rem);
}

body.bda-storefront.woocommerce-cart .cart_totals > h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.94;
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table {
    display: grid;
    gap: 0.1rem;
    margin: 0 0 1.15rem;
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table tbody,
body.bda-storefront.woocommerce-cart .cart_totals table.shop_table tr {
    display: grid;
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table tr {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    align-items: start;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(149, 165, 166, 0.18);
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table th,
body.bda-storefront.woocommerce-cart .cart_totals table.shop_table td {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table td {
    color: #172231;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: right;
}

body.bda-storefront.woocommerce-cart .cart_totals .order-total td,
body.bda-storefront.woocommerce-cart .cart_totals .order-total td strong {
    font-size: 1.18rem;
    font-weight: 900;
}

body.bda-storefront.woocommerce-cart .checkout-button {
    position: relative;
    justify-content: space-between;
    width: 100%;
    min-height: 3.75rem;
    padding: 0.35rem 0.42rem 0.35rem 1.3rem !important;
    background: #3f4b59 !important;
    color: #fff !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18) !important;
    overflow: hidden;
}

body.bda-storefront.woocommerce-cart .checkout-button::after {
    content: '->';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.65rem;
    width: 2.65rem;
    height: 2.65rem;
    margin-left: 1rem;
    border-radius: 999px;
    background: #fff;
    color: #3f4b59;
    transition: transform 0.32s var(--bda-ease-out);
}

body.bda-storefront.woocommerce-cart .checkout-button:hover {
    transform: translateY(-1px);
}

body.bda-storefront.woocommerce-cart .checkout-button:hover::after {
    transform: translateX(2px);
}

body.bda-storefront.woocommerce-cart .bda-cart-assurance {
    display: grid;
    gap: 0.75rem;
    padding: 1.05rem 1.2rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-assurance div {
    display: grid;
    gap: 0.28rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(149, 165, 166, 0.16);
}

body.bda-storefront.woocommerce-cart .bda-cart-assurance div:first-child {
    padding-top: 0;
    border-top: 0;
}

body.bda-storefront.woocommerce-cart .bda-cart-assurance span {
    color: #263445;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-cart .bda-cart-assurance p {
    margin: 0;
    color: #758294;
    font-size: 0.82rem;
    line-height: 1.5;
}

@media (min-width: 1100px) {
    body.bda-storefront.woocommerce-cart .bda-cart-collaterals {
        position: sticky;
        top: calc(var(--bda-nav-offset, 5.5rem) + var(--bda-admin-bar-offset, 0px) + 1rem);
    }

    body.bda-storefront.woocommerce-cart .cart_totals {
        position: static;
        top: auto;
    }
}

@media (max-width: 1099px) {
    body.bda-storefront.woocommerce-cart .bda-cart-layout,
    body.bda-storefront.woocommerce-cart .bda-cart-hero {
        grid-template-columns: 1fr;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-head {
        align-items: start;
        flex-direction: column;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-head p {
        max-width: none;
        text-align: left;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table tr.woocommerce-cart-form__cart-item {
        grid-template-columns: minmax(0, 1fr);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-quantity-field,
    body.bda-storefront.woocommerce-cart .bda-cart-line-total {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-actions,
    body.bda-storefront.woocommerce-cart .bda-cart-actions-main,
    body.bda-storefront.woocommerce-cart .bda-cart-coupon {
        display: grid;
        width: 100%;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-coupon .input-text,
    body.bda-storefront.woocommerce-cart .bda-cart-actions-main .button,
    body.bda-storefront.woocommerce-cart .bda-cart-coupon .button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    body.bda-storefront.woocommerce-cart .bda-cart-page {
        width: min(100% - 1rem, 100%);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-title {
        font-size: clamp(3rem, 18vw, 4.6rem);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-shell,
    body.bda-storefront.woocommerce-cart .bda-cart-summary-note,
    body.bda-storefront.woocommerce-cart .cart_totals,
    body.bda-storefront.woocommerce-cart .bda-cart-assurance {
        border-radius: 26px;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product {
        grid-template-columns: 6.2rem minmax(0, 1fr);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product-name,
    body.bda-storefront.woocommerce-cart .bda-cart-product-name a {
        font-size: clamp(1.25rem, 7vw, 1.75rem);
    }
}

/* ─────────────────────────────────────────────
 * 14. CHECKOUT OPTION 02 - atelier form
 * ───────────────────────────────────────────── */
body.bda-storefront.woocommerce-checkout {
    background:
        radial-gradient(circle at 22% 10%, rgba(255, 255, 255, 0.82), transparent 34%),
        radial-gradient(circle at 86% 28%, rgba(222, 226, 230, 0.32), transparent 31%),
        linear-gradient(180deg, #faf8f5 0%, #f4f0ea 52%, #f9f7f4 100%);
}

body.bda-storefront.woocommerce-checkout .entry-header,
body.bda-storefront.woocommerce-checkout .page-header,
body.bda-storefront.woocommerce-checkout .woocommerce-breadcrumb {
    display: none !important;
}

body.bda-storefront.woocommerce-checkout .site-main,
body.bda-storefront.woocommerce-checkout .ct-container-full,
body.bda-storefront.woocommerce-checkout .entry-content {
    overflow: visible;
}

body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce,
body.bda-storefront.woocommerce-checkout .woocommerce {
    width: min(100% - clamp(1.25rem, 4vw, 4rem), 1360px);
    max-width: none;
    margin: 0 auto;
}

body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce {
    padding: clamp(2.4rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce::before {
    content: 'Checkout atelier';
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: #526172;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce::after {
    content: 'Datos claros para cerrar tu compra sin ruido.';
    display: block;
    max-width: 12ch;
    margin-bottom: clamp(1.7rem, 4vw, 3rem);
    color: #111827;
    font-family: var(--bda-font-display);
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.065em;
}

body.bda-storefront.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.62fr);
    gap: clamp(1.6rem, 3vw, 2.75rem);
    align-items: start;
}

body.bda-storefront.woocommerce-checkout form.checkout::before,
body.bda-storefront.woocommerce-checkout form.checkout::after {
    display: none !important;
}

body.bda-storefront.woocommerce-checkout form.checkout > .ct-customer-details,
body.bda-storefront.woocommerce-checkout form.checkout > .ct-order-review {
    min-width: 0;
}

body.bda-storefront.woocommerce-checkout form.checkout > .ct-order-review {
    position: static !important;
    top: auto !important;
    align-self: start;
    padding: 0 !important;
    border: 0 !important;
}

body.bda-storefront.woocommerce-checkout #customer_details {
    display: grid;
    gap: clamp(1rem, 2vw, 1.35rem);
    min-width: 0;
}

body.bda-storefront.woocommerce-checkout #customer_details .col-1,
body.bda-storefront.woocommerce-checkout #customer_details .col-2,
body.bda-storefront.woocommerce-checkout #order_review {
    width: auto;
    float: none;
    min-width: 0;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    border: 1px solid rgba(149, 165, 166, 0.22);
    border-radius: 32px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 243, 0.78)),
        rgba(255, 255, 255, 0.82);
    box-shadow:
        0 24px 56px rgba(17, 24, 39, 0.072),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.bda-storefront.woocommerce-checkout #customer_details .col-1 {
    position: relative;
}

body.bda-storefront.woocommerce-checkout #customer_details .col-1::before,
body.bda-storefront.woocommerce-checkout #customer_details .col-2::before {
    display: block;
    margin-bottom: 0.75rem;
    color: #526172;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-checkout #customer_details .col-1::before {
    content: '01 contacto y despacho';
}

body.bda-storefront.woocommerce-checkout #customer_details .col-2::before {
    content: '02 notas de entrega';
}

body.bda-storefront.woocommerce-checkout .woocommerce-billing-fields > h3,
body.bda-storefront.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.bda-storefront.woocommerce-checkout .woocommerce-additional-fields > h3,
body.bda-storefront.woocommerce-checkout #order_review_heading {
    margin: 0 0 1.25rem;
    color: #111827;
    font-family: var(--bda-font-display);
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.05em;
}

body.bda-storefront.woocommerce-checkout #order_review_heading {
    display: none;
}

body.bda-storefront.woocommerce-checkout #order_review {
    position: sticky;
    top: calc(var(--bda-admin-bar-offset, 0px) + 1rem);
    align-self: start;
}

body.bda-storefront.woocommerce-checkout #order_review::before {
    content: 'Tu pedido';
    display: block;
    margin-bottom: 1.3rem;
    color: #111827;
    font-family: var(--bda-font-display);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.05em;
}

body.bda-storefront.woocommerce-checkout .form-row {
    margin-bottom: 1.05rem;
}

body.bda-storefront.woocommerce-checkout .form-row label {
    margin-bottom: 0.42rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

body.bda-storefront.woocommerce-checkout .form-row input.input-text,
body.bda-storefront.woocommerce-checkout .form-row textarea,
body.bda-storefront.woocommerce-checkout .form-row select,
body.bda-storefront.woocommerce-checkout .select2-container--default .select2-selection--single {
    min-height: 3.25rem;
    border: 1px solid rgba(149, 165, 166, 0.28);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: #172231;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.bda-storefront.woocommerce-checkout .form-row textarea {
    min-height: 8.5rem;
    padding-top: 1rem;
}

body.bda-storefront.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 3.25rem;
}

body.bda-storefront.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 3.25rem;
}

body.bda-storefront.woocommerce-checkout table.shop_table {
    border: 0;
    margin: 0 0 1.3rem;
}

body.bda-storefront.woocommerce-checkout table.shop_table th,
body.bda-storefront.woocommerce-checkout table.shop_table td {
    padding: 0.95rem 0;
    border-color: rgba(149, 165, 166, 0.18);
    background: transparent;
    color: #263445;
}

body.bda-storefront.woocommerce-checkout table.shop_table th {
    color: #526172;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-checkout table.shop_table td {
    text-align: right;
}

body.bda-storefront.woocommerce-checkout table.shop_table .product-name {
    text-align: left;
}

body.bda-storefront.woocommerce-checkout table.shop_table .order-total td,
body.bda-storefront.woocommerce-checkout table.shop_table .order-total td strong {
    color: #111827;
    font-size: 1.12rem;
    font-weight: 900;
}

body.bda-storefront.woocommerce-checkout #payment {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.68);
}

body.bda-storefront.woocommerce-checkout #payment ul.payment_methods {
    padding: 1rem;
    border-bottom-color: rgba(149, 165, 166, 0.18);
}

body.bda-storefront.woocommerce-checkout #payment div.form-row {
    padding: 1rem;
}

body.bda-storefront.woocommerce-checkout .woocommerce-privacy-policy-text {
    color: #667386;
    font-size: 0.78rem;
    line-height: 1.55;
}

body.bda-storefront.woocommerce-checkout #place_order {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3.75rem;
    padding: 0.35rem 0.42rem 0.35rem 1.25rem !important;
    border: 1px solid rgba(63, 75, 89, 0.32) !important;
    border-radius: 999px !important;
    background: #3f4b59 !important;
    color: #fff !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18) !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-checkout #place_order::after {
    content: '->';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.65rem;
    width: 2.65rem;
    height: 2.65rem;
    margin-left: 1rem;
    border-radius: 999px;
    background: #fff;
    color: #3f4b59;
    transition: transform 0.32s var(--bda-ease-out);
}

body.bda-storefront.woocommerce-checkout #place_order:hover::after {
    transform: translateX(2px);
}

body.bda-storefront.woocommerce-checkout .bda-checkout-launch-note {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(149, 165, 166, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: #273445;
}

body.bda-storefront.woocommerce-checkout .bda-checkout-launch-note span {
    color: #526172;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.bda-storefront.woocommerce-checkout .bda-checkout-launch-note p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
}

body.bda-storefront.woocommerce-checkout table.shop_table .bda-checkout-shipping-guidance th,
body.bda-storefront.woocommerce-checkout table.shop_table .bda-checkout-shipping-guidance td {
    padding-block: 0.82rem;
    vertical-align: top;
}

body.bda-storefront.woocommerce-checkout table.shop_table .bda-checkout-shipping-guidance td {
    display: grid;
    gap: 0.25rem;
    text-align: right;
}

body.bda-storefront.woocommerce-checkout table.shop_table .bda-checkout-shipping-guidance strong {
    color: #263445;
    font-size: 0.86rem;
    line-height: 1.35;
}

body.bda-storefront.woocommerce-checkout table.shop_table .bda-checkout-shipping-guidance span {
    color: #6b7786;
    font-size: 0.74rem;
    line-height: 1.45;
}

body.bda-storefront.woocommerce-cart .bda-cart-page--empty {
    display: grid;
    place-items: center;
    min-height: calc(100svh - var(--bda-nav-offset, 7.5rem) - var(--bda-admin-bar-offset, 0px));
    padding-block: clamp(2rem, 5vw, 4rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-empty-state {
    display: grid;
    gap: clamp(1rem, 2vw, 1.35rem);
    width: min(100%, 760px);
    margin-inline: auto;
    text-align: center;
}

body.bda-storefront.woocommerce-cart .bda-cart-empty-state .bda-cart-title {
    max-width: 13ch;
    margin-inline: auto;
}

body.bda-storefront.woocommerce-cart .bda-cart-empty-state .bda-cart-copy {
    max-width: 42rem;
    margin-inline: auto;
}

body.bda-storefront.woocommerce-cart .bda-cart-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-empty-primary,
body.bda-storefront.woocommerce-cart .bda-cart-empty-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
}

body.bda-storefront.woocommerce-cart .bda-cart-empty-primary {
    background: #3f4b59;
    color: #fff;
}

body.bda-storefront.woocommerce-cart .bda-cart-empty-secondary {
    border: 1px solid rgba(63, 75, 89, 0.24);
    background: rgba(255, 255, 255, 0.72);
    color: #263445;
}

body.bda-storefront.woocommerce-cart .bda-cart-empty-assurance {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.85rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    body.bda-storefront.woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }

    body.bda-storefront.woocommerce-checkout #order_review {
        position: static;
    }
}

@media (max-width: 560px) {
    body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce {
        width: min(100% - 1rem, 100%);
    }

    body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce::after {
        font-size: clamp(2.9rem, 17vw, 4.4rem);
    }

    body.bda-storefront.woocommerce-checkout #customer_details .col-1,
    body.bda-storefront.woocommerce-checkout #customer_details .col-2,
    body.bda-storefront.woocommerce-checkout #order_review {
        border-radius: 26px;
    }
}

/* ─────────────────────────────────────────────
 * 15. CART COMMERCE DENSITY PASS
 * Reduce el gesto editorial para que carrito + resumen funcionen como
 * una pantalla de decision, no como dos secciones largas.
 * ───────────────────────────────────────────── */
body.bda-storefront.woocommerce-cart .bda-cart-page {
    width: min(100% - clamp(1rem, 3vw, 3rem), 1180px);
    padding: clamp(1rem, 2.4vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-hero {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    gap: clamp(0.9rem, 2.4vw, 1.8rem);
    align-items: end;
    margin-bottom: clamp(0.9rem, 2.2vw, 1.55rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-hero-copy {
    gap: 0.55rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-title {
    max-width: 16ch;
    font-size: clamp(2.2rem, 4.9vw, 4.5rem);
    line-height: 0.92;
    letter-spacing: -0.052em;
}

body.bda-storefront.woocommerce-cart .bda-cart-copy {
    max-width: 32rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

body.bda-storefront.woocommerce-cart .bda-cart-hero-panel {
    gap: 0.5rem;
    padding: clamp(0.82rem, 1.5vw, 1rem);
    border-radius: 22px;
}

body.bda-storefront.woocommerce-cart .bda-cart-hero-panel strong {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.45fr);
    gap: clamp(1rem, 2.1vw, 1.65rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-list-shell {
    padding: clamp(0.62rem, 1.2vw, 0.9rem);
    border-radius: 28px;
}

body.bda-storefront.woocommerce-cart .bda-cart-list-head {
    padding: 0.6rem 0.75rem 0.85rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-list-head h2 {
    margin-top: 0.25rem;
    font-size: clamp(1.45rem, 2.2vw, 2.25rem);
    line-height: 1;
}

body.bda-storefront.woocommerce-cart .bda-cart-list-head p {
    max-width: 15rem;
    font-size: 0.8rem;
    line-height: 1.45;
}

body.bda-storefront.woocommerce-cart .bda-cart-table tbody {
    gap: 0.62rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-table tr.woocommerce-cart-form__cart-item {
    grid-template-columns: minmax(0, 1fr) minmax(6.7rem, auto) minmax(6.9rem, auto) minmax(4.4rem, auto);
    gap: clamp(0.55rem, 1.1vw, 0.85rem);
    padding: clamp(0.55rem, 1vw, 0.72rem);
    border-radius: 22px;
}

body.bda-storefront.woocommerce-cart .bda-cart-product {
    grid-template-columns: clamp(5.8rem, 8vw, 7.2rem) minmax(0, 1fr);
    gap: clamp(0.7rem, 1.4vw, 1rem);
}

body.bda-storefront.woocommerce-cart .bda-cart-product-media {
    border-radius: 18px;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-index {
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.58rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-copy {
    gap: 0.22rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-name,
body.bda-storefront.woocommerce-cart .bda-cart-product-name a {
    max-width: 22ch;
    font-size: clamp(1.05rem, 1.55vw, 1.55rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-price,
body.bda-storefront.woocommerce-cart .bda-cart-line-total strong {
    font-size: 0.84rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-product-meta,
body.bda-storefront.woocommerce-cart .bda-cart-product-eyebrow,
body.bda-storefront.woocommerce-cart .bda-cart-quantity-field > span,
body.bda-storefront.woocommerce-cart .bda-cart-line-total > span {
    font-size: 0.56rem;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity {
    grid-template-columns: 1.95rem 2.45rem 1.95rem;
    min-height: 2.55rem;
    padding: 0.16rem;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-decrease,
body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-increase {
    width: 1.95rem;
    height: 1.95rem;
}

body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
    min-height: 1.95rem;
    width: 2.45rem;
    font-size: 0.86rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-remove {
    min-width: 4.25rem;
    height: 2.35rem;
    padding-inline: 0.75rem;
    font-size: 0.55rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-actions {
    padding: 0.65rem;
    border-radius: 22px;
}

body.bda-storefront.woocommerce-cart .bda-cart-coupon .input-text,
body.bda-storefront.woocommerce-cart .bda-cart-shop-link,
body.bda-storefront.woocommerce-cart .bda-cart-actions .button,
body.bda-storefront.woocommerce-cart .bda-cart-coupon .button {
    min-height: 2.75rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-collaterals {
    gap: 0.65rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-summary-note,
body.bda-storefront.woocommerce-cart .cart_totals,
body.bda-storefront.woocommerce-cart .bda-cart-assurance {
    border-radius: 24px;
    box-shadow:
        0 18px 42px rgba(17, 24, 39, 0.065),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.bda-storefront.woocommerce-cart .bda-cart-summary-note,
body.bda-storefront.woocommerce-cart .bda-cart-assurance {
    padding: 0.82rem 0.95rem;
}

body.bda-storefront.woocommerce-cart .bda-cart-summary-note p,
body.bda-storefront.woocommerce-cart .bda-cart-assurance p {
    font-size: 0.76rem;
    line-height: 1.42;
}

body.bda-storefront.woocommerce-cart .cart_totals {
    padding: 1rem;
}

body.bda-storefront.woocommerce-cart .cart_totals > h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table {
    margin-bottom: 0.8rem;
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table tr {
    gap: 0.7rem;
    padding: 0.62rem 0;
}

body.bda-storefront.woocommerce-cart .cart_totals table.shop_table th,
body.bda-storefront.woocommerce-cart .cart_totals table.shop_table td {
    font-size: 0.78rem;
}

body.bda-storefront.woocommerce-cart .cart_totals .order-total td,
body.bda-storefront.woocommerce-cart .cart_totals .order-total td strong {
    font-size: 0.98rem;
}

body.bda-storefront.woocommerce-cart .checkout-button {
    min-height: 3.15rem;
    padding: 0.3rem 0.36rem 0.3rem 1.05rem !important;
    font-size: 0.62rem !important;
}

body.bda-storefront.woocommerce-cart .checkout-button::after {
    flex-basis: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
}

@media (min-width: 1100px) and (max-height: 820px) {
    body.bda-storefront.woocommerce-cart .bda-cart-page {
        padding-top: 0.8rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-title {
        font-size: clamp(2rem, 4.2vw, 3.8rem);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-copy {
        display: none;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-hero-panel {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 1099px) {
    body.bda-storefront.woocommerce-cart .bda-cart-layout,
    body.bda-storefront.woocommerce-cart .bda-cart-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body.bda-storefront.woocommerce-cart .bda-cart-title {
        font-size: clamp(2.4rem, 13vw, 3.5rem);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product {
        grid-template-columns: 5.4rem minmax(0, 1fr);
    }
}

/* ─────────────────────────────────────────────
 * 16. VISUAL VALIDATION DENSITY PASS
 * Captura real 1440x900: el carrito aun pedia scroll para leer la compra.
 * Esta pasada baja hero/listado/resumen sin perder tono editorial.
 * ───────────────────────────────────────────── */
@media (min-width: 1100px) {
    body.bda-storefront.woocommerce-cart .bda-cart-page {
        width: min(100% - clamp(1rem, 4vw, 5rem), 1080px);
        padding: 0.65rem 0 1.5rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-hero {
        grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
        gap: clamp(0.6rem, 1.6vw, 1rem);
        align-items: end;
        margin-bottom: 0.85rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-hero-copy {
        gap: 0.38rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-title {
        max-width: 13ch;
        font-size: clamp(2.15rem, 4.15vw, 3.9rem);
        line-height: 0.9;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-copy {
        max-width: 28rem;
        font-size: 0.82rem;
        line-height: 1.42;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-hero-panel {
        gap: 0.32rem;
        padding: 0.72rem 0.82rem;
        border-radius: 18px;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-hero-panel strong {
        font-size: clamp(1.2rem, 1.6vw, 1.55rem);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-hero-panel .bda-cart-shop-link {
        min-height: 2.35rem;
        font-size: 0.58rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(17.5rem, 0.45fr);
        gap: clamp(0.75rem, 1.4vw, 1rem);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-shell {
        padding: 0.55rem;
        border-radius: 22px;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-head {
        padding: 0.42rem 0.55rem 0.58rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-head h2 {
        margin-top: 0.16rem;
        font-size: clamp(1.28rem, 1.8vw, 1.72rem);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-head p {
        max-width: 13rem;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table tbody {
        gap: 0.48rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table tr.woocommerce-cart-form__cart-item {
        grid-template-columns: minmax(0, 1fr) minmax(6rem, auto) minmax(6rem, auto) minmax(4rem, auto);
        gap: 0.48rem;
        padding: 0.48rem;
        border-radius: 18px;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product {
        grid-template-columns: 5.3rem minmax(0, 1fr);
        gap: 0.62rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product-media {
        border-radius: 16px;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product-name,
    body.bda-storefront.woocommerce-cart .bda-cart-product-name a {
        max-width: 22ch;
        font-size: clamp(0.98rem, 1.25vw, 1.28rem);
        line-height: 1.02;
    }

    body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity {
        grid-template-columns: 1.72rem 2.1rem 1.72rem;
        min-height: 2.2rem;
        padding: 0.12rem;
    }

    body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-decrease,
    body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity .ct-increase {
        width: 1.72rem;
        height: 1.72rem;
    }

    body.bda-storefront.woocommerce-cart .woocommerce-cart-form .quantity input.qty {
        width: 2.1rem;
        min-height: 1.72rem;
        font-size: 0.8rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-remove {
        min-width: 3.85rem;
        height: 2.12rem;
        padding-inline: 0.58rem;
        font-size: 0.5rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-actions {
        padding: 0.5rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-coupon .input-text,
    body.bda-storefront.woocommerce-cart .bda-cart-shop-link,
    body.bda-storefront.woocommerce-cart .bda-cart-actions .button,
    body.bda-storefront.woocommerce-cart .bda-cart-coupon .button {
        min-height: 2.35rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-collaterals {
        gap: 0.5rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-summary-note,
    body.bda-storefront.woocommerce-cart .bda-cart-assurance {
        padding: 0.62rem 0.72rem;
        border-radius: 18px;
    }

    body.bda-storefront.woocommerce-cart .cart_totals {
        padding: 0.78rem;
        border-radius: 20px;
    }

    body.bda-storefront.woocommerce-cart .cart_totals > h2 {
        margin-bottom: 0.48rem;
        font-size: clamp(1.25rem, 1.7vw, 1.65rem);
    }

    body.bda-storefront.woocommerce-cart .cart_totals table.shop_table {
        margin-bottom: 0.52rem;
    }

    body.bda-storefront.woocommerce-cart .cart_totals table.shop_table tr {
        gap: 0.48rem;
        padding: 0.45rem 0;
    }

    body.bda-storefront.woocommerce-cart .cart_totals table.shop_table th,
    body.bda-storefront.woocommerce-cart .cart_totals table.shop_table td,
    body.bda-storefront.woocommerce-cart .bda-cart-summary-note p,
    body.bda-storefront.woocommerce-cart .bda-cart-assurance p {
        font-size: 0.7rem;
        line-height: 1.32;
    }

    body.bda-storefront.woocommerce-cart .cart_totals .order-total td,
    body.bda-storefront.woocommerce-cart .cart_totals .order-total td strong {
        font-size: 0.86rem;
    }

    body.bda-storefront.woocommerce-cart .checkout-button {
        min-height: 2.72rem;
        padding: 0.24rem 0.3rem 0.24rem 0.82rem !important;
        font-size: 0.56rem !important;
    }

    body.bda-storefront.woocommerce-cart .checkout-button::after {
        flex-basis: 1.95rem;
        width: 1.95rem;
        height: 1.95rem;
    }
}

@media (max-width: 560px) {
    body.bda-storefront.woocommerce-cart .bda-cart-page {
        padding-top: 0.65rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-hero {
        gap: 0.7rem;
        margin-bottom: 0.9rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-title {
        font-size: clamp(2.2rem, 12vw, 3rem);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-copy {
        font-size: 0.82rem;
        line-height: 1.42;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-shell,
    body.bda-storefront.woocommerce-cart .cart_totals,
    body.bda-storefront.woocommerce-cart .bda-cart-hero-panel {
        border-radius: 20px;
    }
}

/* ─────────────────────────────────────────────
 * 17. CART DESKTOP RESILIENT FLOW
 * La seleccion crece con la pagina; el resumen acompana sin encerrar
 * productos, cupones ni notices en scrolls internos fragiles.
 * ───────────────────────────────────────────── */
@media (min-width: 1100px) and (min-height: 760px) {
    body.bda-storefront.woocommerce-cart .site-main {
        padding-top: 0 !important;
    }

    body.bda-storefront.woocommerce-cart .woocommerce-notices-wrapper {
        margin-top: calc(var(--bda-nav-offset, 7.5rem) + clamp(1.2rem, 2.4vw, 2rem));
    }

    body.bda-storefront.admin-bar.woocommerce-cart {
        --bda-cart-bottom-safe: 3.6rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-page {
        --bda-cart-sticky-top: calc(var(--bda-nav-offset, 7.5rem) + var(--bda-admin-bar-offset, 0px) + 0.75rem);

        min-height: calc(100svh - var(--bda-nav-offset, 7.5rem) - var(--bda-admin-bar-offset, 0px));
        height: auto;
        max-height: none;
        padding-top: 0.65rem;
        padding-bottom: max(2.5rem, var(--bda-cart-bottom-safe, 0px));
        overflow: visible;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-hero {
        flex: 0 0 auto;
        margin-bottom: clamp(0.8rem, 1.4vw, 1.2rem);
    }

    body.bda-storefront.woocommerce-cart .bda-cart-layout {
        align-items: start;
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-form,
    body.bda-storefront.woocommerce-cart .bda-cart-list-shell,
    body.bda-storefront.woocommerce-cart .bda-cart-collaterals {
        min-height: 0;
        height: auto;
        max-height: none;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-form {
        overflow: visible;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-shell {
        display: block;
        overflow: visible;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-head {
        min-height: 0;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table {
        display: grid;
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table tbody {
        min-height: 0;
        height: auto;
        max-height: none;
        padding-right: 0;
        overflow: visible;
        align-content: start;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-actions-row {
        position: relative;
        bottom: auto;
        z-index: 1;
        padding-top: 0.6rem;
        background: transparent;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-actions {
        backdrop-filter: none;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-collaterals {
        position: sticky;
        top: var(--bda-cart-sticky-top);
        align-self: start;
        max-height: calc(100svh - var(--bda-cart-sticky-top) - 1rem);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 0.18rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(63, 75, 89, 0.3) rgba(255, 255, 255, 0.08);
    }

    body.bda-storefront.woocommerce-cart .cart_totals {
        position: relative;
        top: auto;
        display: grid;
        grid-template-rows: auto auto auto;
    }

    body.bda-storefront.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
        position: sticky;
        bottom: 0;
        z-index: 4;
        margin: 0.1rem -0.12rem -0.2rem;
        padding-top: 0.36rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(250, 249, 247, 0.94) 30%, rgba(250, 249, 247, 0.98));
        border-radius: 0 0 18px 18px;
    }
}

/* Final visual audit pass: mobile cart rows were inheriting Woo responsive
 * table labels and desktop column geometry, causing product/qty/subtotal
 * overlap. Treat each row as a compact commerce card. */
@media (max-width: 560px) {
    body.bda-storefront.woocommerce-cart .site-main {
        padding-top: calc(var(--bda-nav-offset, 6.45rem) + var(--bda-admin-bar-offset, 0px) + 0.25rem) !important;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-page {
        width: min(100% - 0.85rem, 100%);
        padding-top: 0.45rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-list-shell {
        padding: 0.55rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table td::before,
    body.bda-storefront.woocommerce-cart .bda-cart-table td::after {
        content: none !important;
        display: none !important;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table tr.woocommerce-cart-form__cart-item {
        grid-template-columns: 1fr !important;
        gap: 0.64rem;
        align-items: stretch;
        padding: 0.72rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-table td,
    body.bda-storefront.woocommerce-cart .bda-cart-table td:first-child,
    body.bda-storefront.woocommerce-cart .bda-cart-table td:last-child {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product {
        grid-template-columns: 4.65rem minmax(0, 1fr);
        align-items: start;
        gap: 0.72rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product-media {
        width: 4.65rem;
        min-width: 4.65rem;
        aspect-ratio: 1;
        border-radius: 16px;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product-copy {
        gap: 0.2rem;
        min-width: 0;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product-name,
    body.bda-storefront.woocommerce-cart .bda-cart-product-name a {
        max-width: none;
        font-size: clamp(1rem, 5vw, 1.22rem);
        line-height: 1.08;
        letter-spacing: -0.025em;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product-price {
        font-size: 0.82rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product-meta {
        gap: 0.25rem 0.42rem;
        font-size: 0.52rem;
        line-height: 1.25;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-product-meta span + span::before {
        margin-right: 0.42rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-quantity-field,
    body.bda-storefront.woocommerce-cart .bda-cart-line-total {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.55rem;
        padding-top: 0.2rem;
        border-top: 1px solid rgba(149, 165, 166, 0.16);
    }

    body.bda-storefront.woocommerce-cart .product-remove {
        display: flex !important;
        justify-content: flex-end;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-remove {
        min-width: 4.2rem;
    }

    body.bda-storefront.woocommerce-cart .bda-cart-coupon {
        gap: 0.52rem;
    }
}

/* Final visual audit pass: checkout should begin as a working checkout,
 * not as a blank editorial band. Remove the misplaced closing headline. */
body.bda-storefront.woocommerce-checkout .site-main {
    padding-top: calc(var(--bda-nav-offset, 7.5rem) + var(--bda-admin-bar-offset, 0px) - 1.75rem) !important;
}

body.bda-storefront.woocommerce-checkout .ct-container-full {
    padding-top: clamp(1.25rem, 2.25vw, 2rem) !important;
    padding-bottom: clamp(2rem, 4vw, 3.25rem) !important;
}

body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce {
    padding-top: clamp(0.75rem, 1.4vw, 1.4rem);
}

body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce::after {
    display: none;
}

@media (max-width: 560px) {
    body.bda-storefront.woocommerce-checkout .site-main {
        padding-top: calc(var(--bda-nav-offset, 6.45rem) + var(--bda-admin-bar-offset, 0px) - 1.65rem) !important;
    }

    body.bda-storefront.woocommerce-checkout .ct-container-full {
        padding-top: 0.75rem !important;
        padding-bottom: 1.75rem !important;
    }

    body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce {
        width: min(100% - 0.85rem, 100%);
        padding-top: 0.35rem;
        padding-bottom: 2.5rem;
    }

    body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce::before {
        margin-bottom: 0.65rem;
    }

    body.bda-storefront.woocommerce-checkout #customer_details .col-1,
    body.bda-storefront.woocommerce-checkout #customer_details .col-2,
    body.bda-storefront.woocommerce-checkout #order_review {
        padding: 1rem;
    }

    body.bda-storefront.woocommerce-checkout .woocommerce-billing-fields > h3,
    body.bda-storefront.woocommerce-checkout .woocommerce-shipping-fields > h3,
    body.bda-storefront.woocommerce-checkout .woocommerce-additional-fields > h3 {
        font-size: clamp(1.85rem, 10vw, 2.45rem);
    }

    body.bda-storefront.woocommerce-checkout table.shop_table th,
    body.bda-storefront.woocommerce-checkout table.shop_table td {
        font-size: 0.75rem;
        line-height: 1.35;
    }
}

/* Second visual pass: checkout follows the cart density rules and keeps the
 * first interactive fields in view on narrow browser panes. */
body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce,
body.bda-storefront.woocommerce-checkout .woocommerce {
    width: min(100% - clamp(1rem, 3vw, 2.75rem), 1120px);
}

body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce {
    padding-top: clamp(0.45rem, 1vw, 0.9rem);
    padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce::before {
    margin-bottom: 0.75rem;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
}

body.bda-storefront.woocommerce-checkout form.checkout {
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.66fr);
    gap: clamp(0.9rem, 2vw, 1.45rem);
}

body.bda-storefront.woocommerce-checkout #customer_details {
    gap: clamp(0.72rem, 1.4vw, 1rem);
}

body.bda-storefront.woocommerce-checkout #customer_details .col-1,
body.bda-storefront.woocommerce-checkout #customer_details .col-2,
body.bda-storefront.woocommerce-checkout #order_review {
    padding: clamp(0.95rem, 1.8vw, 1.35rem);
    border-radius: 22px;
}

body.bda-storefront.woocommerce-checkout #customer_details .col-1::before,
body.bda-storefront.woocommerce-checkout #customer_details .col-2::before {
    margin-bottom: 0.55rem;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

body.bda-storefront.woocommerce-checkout .woocommerce-billing-fields > h3,
body.bda-storefront.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.bda-storefront.woocommerce-checkout .woocommerce-additional-fields > h3,
body.bda-storefront.woocommerce-checkout #order_review::before {
    margin-bottom: 0.9rem;
    font-size: clamp(1.65rem, 2.4vw, 2.35rem);
    line-height: 1;
    letter-spacing: 0;
}

body.bda-storefront.woocommerce-checkout .form-row {
    margin-bottom: 0.72rem;
}

body.bda-storefront.woocommerce-checkout .form-row label {
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
}

body.bda-storefront.woocommerce-checkout .form-row input.input-text,
body.bda-storefront.woocommerce-checkout .form-row textarea,
body.bda-storefront.woocommerce-checkout .form-row select,
body.bda-storefront.woocommerce-checkout .select2-container--default .select2-selection--single {
    min-height: 2.85rem;
    border-radius: 14px;
}

body.bda-storefront.woocommerce-checkout .form-row input.input-text,
body.bda-storefront.woocommerce-checkout .form-row textarea {
    padding-inline: 0.95rem;
}

body.bda-storefront.woocommerce-checkout .form-row textarea {
    min-height: 6.4rem;
}

body.bda-storefront.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2.85rem;
}

body.bda-storefront.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.85rem;
}

body.bda-storefront.woocommerce-checkout table.shop_table th,
body.bda-storefront.woocommerce-checkout table.shop_table td {
    padding: 0.68rem 0;
}

body.bda-storefront.woocommerce-checkout #payment {
    border-radius: 20px;
}

body.bda-storefront.woocommerce-checkout #place_order {
    min-height: 3.25rem;
    padding-left: 1rem !important;
}

@media (max-width: 900px) {
    body.bda-storefront.woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }

    body.bda-storefront.woocommerce-checkout #order_review {
        position: static;
    }
}

@media (max-width: 767px) {
    body.bda-storefront.woocommerce-checkout .site-main {
        padding-top: calc(var(--bda-nav-offset, 6.85rem) + var(--bda-admin-bar-offset, 0px) - 1.65rem) !important;
    }

    body.bda-storefront.woocommerce-checkout .ct-container-full {
        padding-top: 0.65rem !important;
        padding-bottom: 1.65rem !important;
    }

    body.bda-storefront.woocommerce-checkout .entry-content > .woocommerce {
        width: min(100% - 0.85rem, 100%);
        padding-top: 0.25rem;
        padding-bottom: 2.1rem;
    }

    body.bda-storefront.woocommerce-checkout form.checkout,
    body.bda-storefront.woocommerce-checkout #customer_details {
        gap: 0.72rem;
    }

    body.bda-storefront.woocommerce-checkout #customer_details .col-1,
    body.bda-storefront.woocommerce-checkout #customer_details .col-2,
    body.bda-storefront.woocommerce-checkout #order_review {
        padding: 0.86rem;
        border-radius: 20px;
    }

    body.bda-storefront.woocommerce-checkout .woocommerce-billing-fields > h3,
    body.bda-storefront.woocommerce-checkout .woocommerce-shipping-fields > h3,
    body.bda-storefront.woocommerce-checkout .woocommerce-additional-fields > h3,
    body.bda-storefront.woocommerce-checkout #order_review::before {
        font-size: clamp(1.48rem, 6.4vw, 1.95rem);
    }

    body.bda-storefront.woocommerce-checkout .form-row input.input-text,
    body.bda-storefront.woocommerce-checkout .form-row textarea,
    body.bda-storefront.woocommerce-checkout .form-row select,
    body.bda-storefront.woocommerce-checkout .select2-container--default .select2-selection--single {
        min-height: 2.65rem;
        border-radius: 13px;
    }

    body.bda-storefront.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 2.65rem;
    }

    body.bda-storefront.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 2.65rem;
    }
}
