@layer components {
    /* =============================================================
     * Checkout — Sidebar resumen (fondo gris + cupón + totales)
     * Patrón devlab PDF: fondo gris muy claro, totales clean
     * ============================================================= */
    #quote-summary,
    .price-summary,
    aside.checkout-summary {
        background: rgb(241 243 247) !important;
    }
    #quote-summary {
        padding: 2rem 1.5rem !important;
    }
    @media (min-width: 1024px) {
        #quote-summary {
            min-height: 100vh;
            padding: 2.5rem 2rem !important;
        }
    }
    /* Title "Order Summary" reducido (en PDF no aparece, lo dejamos sutil) */
    #quote-summary .quote-summary-title,
    #quote-summary [class*="summary-title"] {
        font-size: 0.6875rem !important;
        letter-spacing: 0.14em !important;
        text-transform: uppercase !important;
        font-weight: 600 !important;
        color: rgb(4 29 64 / 0.6) !important;
        margin-bottom: 1rem !important;
    }
    /* Cart items en sidebar */
    #quote-summary .product-item,
    #quote-summary [class*="cart-item"] {
        background: transparent !important;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid rgb(4 29 64 / 0.08);
    }
    #quote-summary .product-item:last-child { border-bottom: 0; }
    /* Imágenes producto pequeñas con badge cantidad */
    #quote-summary .product-image-container,
    #quote-summary img.product-image {
        max-width: 64px !important;
    }
    /* Coupon: input + botón Aplicar en línea sutil */
    #quote-summary .coupon-code,
    #quote-summary [class*="coupon"] {
        margin: 1rem 0 !important;
        padding: 0.75rem 0 !important;
        border-top: 1px solid rgb(4 29 64 / 0.08);
        border-bottom: 1px solid rgb(4 29 64 / 0.08);
    }
    #quote-summary .coupon-code input[type="text"] {
        background: var(--color-bg) !important;
        border: 1px solid rgb(4 29 64 / 0.2) !important;
        font-size: 0.8125rem !important;
        padding: 0.625rem 0.75rem !important;
        border-radius: 0 !important;
        color: rgb(4 29 64) !important;
    }
    #quote-summary .coupon-code button {
        background: transparent !important;
        color: rgb(4 29 64) !important;
        border: 1px solid rgb(4 29 64) !important;
        font-size: 0.6875rem !important;
        letter-spacing: 0.14em !important;
        text-transform: uppercase !important;
        font-weight: 600 !important;
        padding: 0.625rem 1rem !important;
        border-radius: 0 !important;
    }
    #quote-summary .coupon-code button:hover {
        background: rgb(4 29 64) !important;
        color: var(--color-on-primary) !important;
    }
    /* Totales */
    #quote-summary .price-summary-totals,
    #quote-summary [class*="total-segments"] {
        margin-top: 1rem !important;
    }
    /* Desde Hyvä Checkout 1.3.15 las líneas van dentro de un div (.divide-y) y sin la clase "item" */
    #quote-summary [class*="total-segments"] > *:not(.divide-y),
    #quote-summary [class*="total-segments"] > .divide-y > * {
        display: flex !important;
        justify-content: space-between !important;
        padding: 0.375rem 0 !important;
        font-size: 0.9375rem !important;
        color: rgb(4 29 64) !important;
    }
    #quote-summary [class*="grand-total"] {
        font-weight: 700 !important;
        font-size: 1.125rem !important;
        border-top: 1px solid rgb(4 29 64 / 0.15);
        padding-top: 0.75rem !important;
        margin-top: 0.5rem !important;
    }
    #quote-summary .price { font-feature-settings: 'tnum'; }
}
