@layer components {
    /* =============================================================
     * Checkout — Ajuste de componentes a la plantilla de diseño
     * (checkoutloggedin-device1 / móvil, sep-2026).
     *
     * Se carga el último y dentro de @layer components a propósito:
     * los partials 09/25/26/27/28 usan !important dentro de esta misma
     * capa, y un !important de capa gana a cualquier regla sin capa.
     * Por eso aquí todo va con el prefijo
     * `body.hyva_checkout-index-index #hyva-checkout-main` (+especificidad)
     * y !important.
     *
     * Lenguaje visual de la plantilla: blanco, bordes finos navy,
     * esquinas rectas, títulos en versalitas pequeñas con tracking.
     * ============================================================= */

    /* ---------- Layout ---------- */

    /* Sin caja redondeada envolviendo todo el checkout */
    body.hyva_checkout-index-index #hyva-checkout-main #hyva-checkout-container > * {
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
    }

    /* Sidebar blanco, sin gris ni radio (la plantilla no lleva fondo) */
    body.hyva_checkout-index-index #hyva-checkout-main .area-right,
    body.hyva_checkout-index-index #hyva-checkout-main .area-right #quote-summary,
    body.hyva_checkout-index-index #hyva-checkout-main .area-right .price-summary {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }

    /* Escritorio: lateral fijo bajo la cabecera (sticky, 73px) para que el
       botón de pagar no se pierda al bajar al pago. Hyvä trae lg:sticky en
       PHP y no se compila. El lateral no lleva scroll propio (eran dos en la
       página): es una columna flex con el alto de la ventana y lo que encoge
       y hace scroll es solo la lista de TUS ARTÍCULOS.
       Cadena: .area-right > #quote-summary > .price-summary > lista. */
    @media (min-width: 1024px) {
        body.hyva_checkout-index-index #hyva-checkout-main .area-right {
            position: sticky !important;
            top: calc(73px + 1.5rem);
            max-height: calc(100vh - 73px - 3rem);
            display: flex;
            flex-direction: column;
            /* Solo por si lo de arriba de la lista no cabe en la ventana (pantalla muy baja) */
            overflow-y: auto;
            scrollbar-width: thin;
        }
        body.hyva_checkout-index-index #hyva-checkout-main .area-right > *,
        body.hyva_checkout-index-index #hyva-checkout-main .area-right #quote-summary > * {
            flex: none;
        }
        body.hyva_checkout-index-index #hyva-checkout-main .area-right > #quote-summary,
        body.hyva_checkout-index-index #hyva-checkout-main .area-right #quote-summary > .price-summary {
            flex: 0 1 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }
        body.hyva_checkout-index-index #hyva-checkout-main .area-right .price-summary > * {
            flex: none;
        }
        body.hyva_checkout-index-index #hyva-checkout-main .area-right .price-summary > [x-data="hyvaCheckoutPriceSummaryCartItems"] {
            flex: 0 1 auto;
            /* Título + algo más de un artículo: con la caja de descuentos abierta en un
               portátil (≈930px de alto) aún cabe todo sin scroll del lateral */
            min-height: 5rem;
            display: flex;
            flex-direction: column;
            padding-bottom: 0 !important;
        }
        body.hyva_checkout-index-index #hyva-checkout-main .area-right #checkout-cart-details {
            flex: 0 1 auto;
            min-height: 0;
            overflow-y: auto;
            overscroll-behavior: contain;
            scrollbar-width: thin;
            scrollbar-color: rgb(4 29 64 / 0.2) transparent;
        }
    }

    /* Móvil: el resumen va después del formulario (lleva términos y el
       botón de pagar, así que no puede ir arriba) */
    @media (max-width: 899px) {
        body.hyva_checkout-index-index #hyva-checkout-main .area-right {
            position: static !important;
            padding-top: 1.5rem !important;
            border-top: 1px solid rgb(4 29 64 / 0.12);
        }
    }

    /* ---------- Columna derecha: orden TU BOLSA → totales → términos →
       pagar → TUS ARTÍCULOS (el orden lo da el layout) ---------- */

    body.hyva_checkout-index-index #hyva-checkout-main .area-right .price-summary > .section-title h2 {
        font-size: 0.875rem !important;
        letter-spacing: 0.12em !important;
    }
    /* Términos en el lateral: sin título de sección, solo el checkbox */
    body.hyva_checkout-index-index #hyva-checkout-main .area-right #quote-actions {
        margin-top: 1.25rem;
        /* Hyvä le deja 32px debajo: términos y botón de pagar más juntos */
        margin-bottom: 0 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .area-right #quote-actions > legend,
    body.hyva_checkout-index-index #hyva-checkout-main .area-right #quote-actions legend.section-title {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .area-right #quote-actions .space-y-6 > * + * {
        margin-top: 0.75rem !important;
    }
    /* El module.css de Hyvä Checkout 1.3.15 pone column-reverse y un gap: el aviso
       elg-co-ready-hint quedaba encima del botón */
    body.hyva_checkout-index-index #hyva-checkout-main .area-right .checkout-nav {
        margin-top: 0.75rem !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .area-right .checkout-nav-main {
        margin-top: 0 !important;
    }
    /* Botón pendiente hasta que todo esté relleno (solo visual; al pulsar
       Hyvä valida y señala lo que falta) */
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-nav.elg-co-pending .checkout-nav-main .btn-place-order {
        opacity: 0.45 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ready-hint {
        margin: 0.625rem 0 0;
        font-size: 0.6875rem;
        line-height: 1.5;
        color: rgb(4 29 64 / 0.6);
        text-align: center;
    }
    /* TUS ARTÍCULOS debajo, separado del bloque de pago */
    body.hyva_checkout-index-index #hyva-checkout-main .area-right [x-data="hyvaCheckoutPriceSummaryCartItems"] {
        margin-top: 2.5rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .area-right [aria-controls="checkout-cart-details"] {
        font-size: 0.875rem !important;
        letter-spacing: 0.12em !important;
        padding-bottom: 0.5rem !important;
    }

    /* ---------- Títulos de sección ---------- */

    body.hyva_checkout-index-index #hyva-checkout-main fieldset > legend.section-title,
    body.hyva_checkout-index-index #hyva-checkout-main .area-right .section-title {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0.875rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main fieldset > legend.section-title h2,
    body.hyva_checkout-index-index #hyva-checkout-main .area-right .section-title h2 {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
        color: rgb(4 29 64) !important;
        margin: 0 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .area-main > fieldset + fieldset {
        margin-top: 2rem;
    }

    /* ---------- Formularios ---------- */

    body.hyva_checkout-index-index #hyva-checkout-main label.label,
    body.hyva_checkout-index-index #hyva-checkout-main .field label {
        font-size: 0.75rem !important;
        font-weight: 400 !important;
        color: rgb(4 29 64 / 0.7) !important;
        margin-bottom: 0.25rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main input.form-input,
    body.hyva_checkout-index-index #hyva-checkout-main input[type="text"],
    body.hyva_checkout-index-index #hyva-checkout-main input[type="email"],
    body.hyva_checkout-index-index #hyva-checkout-main input[type="tel"],
    body.hyva_checkout-index-index #hyva-checkout-main input[type="password"],
    body.hyva_checkout-index-index #hyva-checkout-main select,
    body.hyva_checkout-index-index #hyva-checkout-main textarea {
        border: 1px solid rgb(4 29 64 / 0.25) !important;
        border-radius: 0 !important;
        background-color: var(--color-bg) !important;
        color: rgb(4 29 64) !important;
        font-size: 0.8125rem !important;
        padding: 0.6875rem 0.875rem !important;
        box-shadow: none !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main input.form-input,
    body.hyva_checkout-index-index #hyva-checkout-main select {
        min-height: 2.75rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main select {
        padding-right: 2.25rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main input.form-input:hover,
    body.hyva_checkout-index-index #hyva-checkout-main select:hover {
        border-color: rgb(4 29 64 / 0.45) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main input:focus,
    body.hyva_checkout-index-index #hyva-checkout-main select:focus,
    body.hyva_checkout-index-index #hyva-checkout-main textarea:focus {
        outline: none !important;
        border-color: rgb(4 29 64) !important;
        box-shadow: 0 0 0 1px rgb(4 29 64) !important;
    }
    /* form-info-text: nombre de la clase desde Hyvä Checkout 1.3.15 (que además la pone en cursiva) */
    body.hyva_checkout-index-index #hyva-checkout-main .form-hint-text,
    body.hyva_checkout-index-index #hyva-checkout-main .form-info-text {
        font-size: 0.6875rem !important;
        font-style: normal !important;
        color: rgb(4 29 64 / 0.55) !important;
        margin-top: 0.25rem !important;
    }
    /* Errores de validación: texto pequeño en rojo bajo el campo y borde
       rojo en el campo (Hyvä los pinta como ul.messages > li). */
    body.hyva_checkout-index-index #hyva-checkout-main .field-wrapper ul.messages {
        margin: 0.375rem 0 0 !important;
        padding: 0 !important;
        list-style: none !important;
        grid-column: 1 / -1;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .field-wrapper ul.messages > li {
        margin: 0 !important;
        padding: 0 !important;
        background: none !important;
        border: 0 !important;
        font-size: 0.6875rem !important;
        line-height: 1.45 !important;
        font-weight: 400 !important;
        color: rgb(200 30 30) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .field-wrapper ul.messages > li + li {
        margin-top: 0.125rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [aria-invalid="true"]:is(input, select, textarea) {
        border-color: rgb(200 30 30) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [aria-invalid="true"]:is(input, select, textarea):focus {
        box-shadow: 0 0 0 1px rgb(200 30 30) !important;
    }
    /* Campos seguros de Mercado Pago (iframe dentro de un div.form-input): mismo borde rojo */
    body.hyva_checkout-index-index #hyva-checkout-main [data-mp-secure-field][aria-invalid="true"] {
        border-color: rgb(200 30 30) !important;
    }
    /* Icono sobre decorativo a la izquierda del email: la plantilla no lo lleva */
    body.hyva_checkout-index-index #hyva-checkout-main #guest_details .form-input-addon {
        display: none !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main #guest-details > div > p {
        font-size: 0.8125rem;
        color: rgb(4 29 64 / 0.75);
    }
    body.hyva_checkout-index-index #hyva-checkout-main #guest-details > div > p a {
        color: rgb(4 29 64);
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    /* Email no válido: el error lo pueden poner a la vez el servidor (RecalcularTotalesEmailInvitadoPlugin) y la
       validación del navegador de Hyvä, en la misma lista: solo se ve el primero */
    body.hyva_checkout-index-index #hyva-checkout-main #guest-details ul.messages > li + li {
        display: none;
    }
    /* Login en línea (Guest Details → Enable login): "Ya tienes una cuenta con nosotros…" bajo la contraseña.
       El comentario de Hyvä (form/element/html/comment.phtml) lleva mt-4: la mitad arriba y lo mismo abajo */
    body.hyva_checkout-index-index #hyva-checkout-main #guest-details [x-data="hyvaCheckoutPasswordVisibility"] > p.mt-4 {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    /* Mensajes del componente de datos de contacto, movidos debajo del botón Acceder (hyva_checkout_components.xml
       de Yeboyebo_CheckoutShopify): texto suelto sin caja (09-hyva-checkout-rework.css le pone fondo, borde y
       padding), alineado a la izquierda con el botón */
    body.hyva_checkout-index-index #hyva-checkout-main #guest-details > .component-messenger {
        margin: 0.75rem 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
    /* Con el mensaje a la vista, la siguiente sección más cerca: 1rem en vez de 2rem. Los mensajes cerrados siguen
       en el DOM con display: none (x-show) */
    body.hyva_checkout-index-index #hyva-checkout-main .area-main > #guest-details:has(> .component-messenger:not([style*="display: none"])) {
        margin-bottom: 1rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .area-main > #guest-details:has(> .component-messenger:not([style*="display: none"])) + fieldset {
        margin-top: 1rem !important;
    }

    /* Rejilla de dirección en 2 columnas como la plantilla.
       Hyvä emite grid-cols-12 / col-span-12 / md:col-span-N desde PHP
       (renderers de formulario), así que Tailwind no las ve al escanear
       y no las compila: la rejilla quedaba sin columnas. La definimos
       aquí. Además Hyvä trae Apellidos a md:col-span-3. */
    body.hyva_checkout-index-index #hyva-checkout-main .address-form > .grid,
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-form-elements {
        display: grid !important;
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        row-gap: 0.875rem;
        column-gap: 0.75rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .address-form > .grid > .field-wrapper,
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-form-elements > .field-wrapper {
        grid-column: span 12 / span 12 !important;
    }
    @media (min-width: 768px) {
        body.hyva_checkout-index-index #hyva-checkout-main .address-form .field-wrapper.field-firstname,
        body.hyva_checkout-index-index #hyva-checkout-main .address-form .field-wrapper.field-lastname,
        body.hyva_checkout-index-index #hyva-checkout-main .address-form .field-wrapper.field-country_id,
        body.hyva_checkout-index-index #hyva-checkout-main .address-form .field-wrapper.field-region,
        body.hyva_checkout-index-index #hyva-checkout-main .address-form .field-wrapper.field-postcode,
        body.hyva_checkout-index-index #hyva-checkout-main .address-form .field-wrapper.field-city,
        body.hyva_checkout-index-index #hyva-checkout-main .address-form .field-wrapper.field-telephone,
        body.hyva_checkout-index-index #hyva-checkout-main .address-form .field-wrapper.field-company,
        body.hyva_checkout-index-index #hyva-checkout-main .address-form .field-wrapper.field-vat_id {
            grid-column: span 6 / span 6 !important;
        }
    }
    body.hyva_checkout-index-index #hyva-checkout-main .address-form .field-street .space-y-2 > * + * {
        margin-top: 0.5rem !important;
    }

    /* Checkbox / radio: cuadrados navy. El fondo del marcado sale de
       --form-active-color (plugin Tailwind Forms), no de "color". */
    body.hyva_checkout-index-index #hyva-checkout-main input.form-checkbox,
    body.hyva_checkout-index-index #hyva-checkout-main input.elg-gift-wrap__checkbox {
        width: 1rem;
        height: 1rem;
        border: 1px solid rgb(4 29 64 / 0.5) !important;
        border-radius: 0 !important;
        color: rgb(4 29 64) !important;
        --form-active-color: rgb(4 29 64);
    }
    body.hyva_checkout-index-index #hyva-checkout-main #billing-details label span,
    body.hyva_checkout-index-index #hyva-checkout-main #quote-actions label span {
        font-size: 0.8125rem !important;
        font-weight: 400 !important;
        color: rgb(4 29 64) !important;
    }

    /* ---------- Opciones de envío y pago (cajas apiladas) ---------- */

    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"],
    body.hyva_checkout-index-index #hyva-checkout-main [id^="payment-method-option-"] {
        border: 1px solid rgb(4 29 64 / 0.2) !important;
        border-radius: 0 !important;
        background: var(--color-bg) !important;
        box-shadow: none !important;
        transition: border-color 0.15s ease;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"]:hover,
    body.hyva_checkout-index-index #hyva-checkout-main [id^="payment-method-option-"]:hover {
        border-color: rgb(4 29 64 / 0.5) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"].active,
    body.hyva_checkout-index-index #hyva-checkout-main [id^="payment-method-option-"].active,
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"]:has(input[type="radio"]:checked),
    body.hyva_checkout-index-index #hyva-checkout-main [id^="payment-method-option-"]:has(input[type="radio"]:checked) {
        border-color: rgb(4 29 64) !important;
        box-shadow: none !important;
    }
    /* Foco de teclado visible en la caja (el radio va oculto) */
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"]:has(input[type="radio"]:focus-visible),
    body.hyva_checkout-index-index #hyva-checkout-main [id^="payment-method-option-"]:has(input[type="radio"]:focus-visible) {
        outline: 2px solid rgb(4 29 64);
        outline-offset: 2px;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"] > label,
    body.hyva_checkout-index-index #hyva-checkout-main [id^="payment-method-option-"] > label {
        position: relative;
        display: flex !important;
        padding: 1rem 1.25rem !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    /* Radio oculto visualmente pero accesible; la caja entera es el control */
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"] > label > input[type="radio"],
    body.hyva_checkout-index-index #hyva-checkout-main [id^="payment-method-option-"] > label > input[type="radio"] {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    /* Título a la izquierda, precio / icono a la derecha */
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"] > label > span > span:first-child {
        display: flex;
        flex: 1;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"] > label .font-medium,
    body.hyva_checkout-index-index #hyva-checkout-main [id^="payment-method-option-"] > label .font-medium {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: rgb(4 29 64) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"] .price-box {
        display: inline !important;
        font-size: 0.75rem;
        color: rgb(4 29 64);
        white-space: nowrap;
    }
    /* Contenido desplegado (formulario de tarjeta, selector de tienda…) */
    body.hyva_checkout-index-index #hyva-checkout-main [id^="payment-method-option-"] > label ~ *,
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-option-"] > label ~ * {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main #payment-method-list,
    body.hyva_checkout-index-index #hyva-checkout-main [id^="shipping-method-list"] {
        gap: 0.5rem;
    }

    /* ---------- Tarjetas guardadas Stripe (Hyvä CheckoutStripe) ---------- */
    /* bg-container-darker no existe en este theme: highlight propio */
    body.hyva_checkout-index-index #hyva-checkout-main .stripe-saved-payment-methods {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .stripe-saved-payment-method {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
        border: 1px solid rgb(4 29 64 / 0.2);
        border-radius: 0;
        background: var(--color-bg, #fff);
        cursor: pointer;
        font-size: 0.8125rem;
        color: rgb(4 29 64);
        transition: border-color 0.15s ease, background-color 0.15s ease;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .stripe-saved-payment-method:hover {
        border-color: rgb(4 29 64 / 0.5);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .stripe-saved-payment-method.is-selected {
        border-color: rgb(4 29 64);
        background: rgb(4 29 64 / 0.04);
        box-shadow: inset 3px 0 0 rgb(4 29 64);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .stripe-saved-payment-method-icon {
        width: 2rem;
        height: auto;
        flex-shrink: 0;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .stripe-add-new-payment-method {
        margin-bottom: 0.75rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        text-decoration: underline;
        background: transparent;
        border: 0;
        padding: 0;
        color: rgb(4 29 64);
        cursor: pointer;
    }

    /* ---------- Direcciones guardadas (cliente con sesión) ---------- */

    body.hyva_checkout-index-index #hyva-checkout-main .address-grid {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
        height: auto !important;
        margin-bottom: 0.75rem !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .address-grid > * {
        margin: 0 !important; /* anula space-y-2, usamos gap */
    }
    /* La seleccionada siempre la primera */
    body.hyva_checkout-index-index #hyva-checkout-main .address-grid > .address-item.active {
        order: -1;
    }
    /* Plegada (más de 2 direcciones): solo se ve la seleccionada;
       "Mostrar todas" despliega el resto */
    body.hyva_checkout-index-index #hyva-checkout-main #address-grid:not([data-expanded="true"]) > .address-item:not(.active) {
        display: none !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .address-item {
        border: 1px solid rgb(4 29 64 / 0.2) !important;
        border-radius: 0 !important;
        background: var(--color-bg) !important;
        transition: border-color 0.15s ease;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .address-item:hover {
        border-color: rgb(4 29 64 / 0.5) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .address-item.active,
    body.hyva_checkout-index-index #hyva-checkout-main .address-item:has(input[type="radio"]:checked) {
        border-color: rgb(4 29 64) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .address-item:has(input[type="radio"]:focus-visible) {
        outline: 2px solid rgb(4 29 64);
        outline-offset: 2px;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .address-item > label {
        position: relative;
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.25rem !important;
        margin: 0 !important;
        font-size: 0.8125rem !important;
        line-height: 1.6;
        color: rgb(4 29 64) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .address-item > label > input[type="radio"] {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main #address-grid + button {
        margin-bottom: 0.5rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .address-item.inactive > label {
        color: rgb(4 29 64 / 0.7) !important;
    }

    /* Modal "Nueva dirección" (envío y facturación). Hyvä lo abre como
       <dialog> modal con w-full + max-w-4xl, pero max-w-4xl sale de PHP y
       no se compila, y el preflight de Tailwind pone margin:0, así que
       quedaba a todo el ancho pegado arriba a la izquierda. */
    body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog {
        width: calc(100% - 2rem) !important;
        max-width: 44rem !important;
        max-height: calc(100vh - 4rem) !important;
        margin: auto !important;
        padding: 2rem 2rem 1.75rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: var(--color-bg) !important;
        color: rgb(4 29 64);
        box-shadow: 0 20px 50px rgb(4 29 64 / 0.18) !important;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog::backdrop {
        background: rgb(4 29 64 / 0.45);
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog .section-title {
        border-bottom: 1px solid rgb(4 29 64 / 0.12) !important;
        padding-bottom: 0.875rem !important;
        margin-bottom: 1.5rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog .section-title h2 {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.12em !important;
        color: rgb(4 29 64) !important;
        margin: 0 !important;
    }
    /* Botones: Guardar (relleno) + Cancelar (outline) a partes iguales */
    body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog form > .flex:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-top: 1.75rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog form > .flex:last-child > * {
        margin: 0 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog .btn {
        justify-content: center;
        min-height: 3rem;
        padding: 0.875rem 1.5rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog .btn-primary {
        opacity: 1 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog .btn-secondary {
        background: var(--color-bg) !important;
        color: rgb(4 29 64) !important;
        border: 1px solid rgb(4 29 64) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog .btn-secondary:hover {
        background: rgb(4 29 64 / 0.04) !important;
    }
    @media (max-width: 639px) {
        body.hyva_checkout-index-index #hyva-checkout-main [id$="-address-dialog"] dialog {
            width: 100% !important;
            max-height: 100vh !important;
            height: 100% !important;
            padding: 1.5rem 1rem !important;
        }
    }

    /* Ventana de avisos del checkout (Hyva_Checkout::page/js/api/v1/message/dialog.phtml), p. ej. "El método de
       pago anterior ya no está disponible". Va fuera de #hyva-checkout-main, así que no cogía los botones del
       checkout, y el preflight de Tailwind le quita el margin:auto: salía arriba a la izquierda con el azul de Hyvä. */
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"] {
        margin: auto !important;
        width: calc(100% - 2rem);
        max-width: 32rem;
    }
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"]::backdrop {
        background: rgb(4 29 64 / 0.45);
    }
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"] > div {
        width: 100% !important;
        max-width: none !important;
        padding: 2rem 2rem 1.75rem !important;
        border-radius: 0 !important;
        background: var(--color-bg) !important;
        color: rgb(4 29 64) !important;
        box-shadow: 0 20px 50px rgb(4 29 64 / 0.18) !important;
    }
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"] > div > .grid {
        grid-template-columns: 1fr !important;
    }
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"] svg {
        color: rgb(4 29 64) !important;
        width: 2.5rem;
        height: 2.5rem;
    }
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"] h2 {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: rgb(4 29 64) !important;
    }
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"] p {
        font-size: 0.9375rem !important;
        line-height: 1.5;
        text-align: center;
    }
    /* Botones: Aceptar (relleno) + Cancelar (borde) a partes iguales */
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"] .order-last {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
        justify-self: stretch !important;
    }
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"] .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 3rem;
        padding: 0.875rem 1.5rem !important;
        border-radius: 0 !important;
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
    }
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"] .btn-primary {
        background: rgb(4 29 64) !important;
        color: var(--color-on-primary) !important;
        border: 1px solid rgb(4 29 64) !important;
    }
    body.hyva_checkout-index-index dialog[aria-labelledby="message-dialog"] .btn-secondary {
        background: var(--color-bg) !important;
        color: rgb(4 29 64) !important;
        border: 1px solid rgb(4 29 64) !important;
    }

    /* Términos (el check, su texto y el botón que abre la ventana) y métodos de pago (Hyvä 1.3.15 quitó el
       cursor-pointer de su label) con cursor de enlace */
    body.hyva_checkout-index-index [x-data="hyvaCheckoutTermsAndConditions"] input[type="checkbox"],
    body.hyva_checkout-index-index [x-data="hyvaCheckoutTermsAndConditions"] label,
    body.hyva_checkout-index-index [x-data="hyvaCheckoutTermsAndConditions"] button,
    body.hyva_checkout-index-index [id^="payment-method-option-"] > label,
    body.hyva_checkout-index-index [id^="payment-method-option-"] > label input[type="radio"],
    body.hyva_checkout-index-index [wire\:key="sameAddressToggle"] label,
    body.hyva_checkout-index-index [wire\:key="sameAddressToggle"] input,
    body.hyva_checkout-index-index .address-select select {
        cursor: pointer;
    }

    /* Formulario de tarjeta de Stripe: mientras Stripe no monta su iframe dentro de .stripe-element (tarda unos
       segundos, sobre todo con el método ya marcado al cargar), se ve un indicador de carga en vez de un hueco */
    body.hyva_checkout-index-index .stripe-element:empty {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 7rem;
    }
    body.hyva_checkout-index-index .stripe-element:empty::before {
        content: "";
        width: 1.25rem;
        height: 1.25rem;
        border: 2px solid rgb(4 29 64 / 0.15);
        border-top-color: rgb(4 29 64);
        border-radius: 9999px;
        animation: elg-stripe-spin 0.8s linear infinite;
    }
    @keyframes elg-stripe-spin {
        to { transform: rotate(360deg); }
    }

    /* Ventana de términos y condiciones (Hyva_Checkout::checkout/terms-conditions/list.phtml). Desde la 1.3.15 es
       un <dialog class="hyva-checkout-modal"> cuyo CSS de Hyvä solo está en la versión para Tailwind v3: mismo
       diseño que la de nueva dirección y la de avisos. */
    body.hyva_checkout-index-index dialog.hyva-checkout-modal {
        width: calc(100% - 2rem) !important;
        max-width: 44rem !important;
        max-height: calc(100vh - 4rem) !important;
        margin: auto !important;
        padding: 2rem 2rem 1.75rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: var(--color-bg) !important;
        color: rgb(4 29 64) !important;
        box-shadow: 0 20px 50px rgb(4 29 64 / 0.18) !important;
        flex-direction: column;
        gap: 1.5rem;
    }
    body.hyva_checkout-index-index dialog.hyva-checkout-modal::backdrop {
        background: rgb(4 29 64 / 0.45);
    }
    body.hyva_checkout-index-index dialog.hyva-checkout-modal .prose {
        max-width: none;
        font-size: 0.875rem;
        line-height: 1.6;
        color: rgb(4 29 64 / 0.85);
    }
    body.hyva_checkout-index-index dialog.hyva-checkout-modal .prose h2 {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: rgb(4 29 64) !important;
        margin: 0 0 1.25rem !important;
        padding-bottom: 0.875rem;
        border-bottom: 1px solid rgb(4 29 64 / 0.12);
    }
    body.hyva_checkout-index-index dialog.hyva-checkout-modal .prose a {
        color: rgb(4 29 64);
        text-decoration: underline;
    }
    /* Aceptar (relleno) + Rechazar (borde) a partes iguales */
    body.hyva_checkout-index-index dialog.hyva-checkout-modal .actions-toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    body.hyva_checkout-index-index dialog.hyva-checkout-modal .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 3rem;
        padding: 0.875rem 1.5rem !important;
        border-radius: 0 !important;
        font-size: 0.8125rem !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
    }
    body.hyva_checkout-index-index dialog.hyva-checkout-modal .btn-primary {
        background: rgb(4 29 64) !important;
        color: var(--color-on-primary) !important;
        border: 1px solid rgb(4 29 64) !important;
    }
    body.hyva_checkout-index-index dialog.hyva-checkout-modal .btn-secondary {
        background: var(--color-bg) !important;
        color: rgb(4 29 64) !important;
        border: 1px solid rgb(4 29 64) !important;
    }
    @media (max-width: 639px) {
        body.hyva_checkout-index-index dialog.hyva-checkout-modal {
            width: 100% !important;
            max-height: 100vh !important;
            height: 100% !important;
            padding: 1.5rem 1rem !important;
        }
    }

    /* Envío / Recogida en tienda / Punto de recogida: acordeón. Cada grupo
       es una caja; el abierto despliega sus métodos (GLS, MRW, SEUR…)
       dentro y el resto queda plegado. */
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-tabs {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-group {
        border: 1px solid rgb(4 29 64 / 0.2);
        background: var(--color-bg);
        transition: border-color 0.15s ease;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-group:hover {
        border-color: rgb(4 29 64 / 0.5);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-group.is-active {
        border-color: rgb(4 29 64);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-tab {
        width: 100%;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0.75rem !important;
        padding: 1rem 1.25rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: rgb(4 29 64 / 0.6) !important;
        text-align: left;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-tab svg {
        width: 18px;
        height: 18px;
        flex: none;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-tab > span {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.06em !important;
        text-align: left !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-tab:hover,
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-tab.is-active {
        color: rgb(4 29 64) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-tab:focus-visible {
        outline: 2px solid rgb(4 29 64);
        outline-offset: -2px;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-empty {
        margin: 0 0 0.25rem;
        font-size: 0.8125rem;
        line-height: 1.5;
        color: rgb(4 29 64 / 0.7);
    }
    /* Grupo con una sola opción: sin cajita del método (se selecciona al
       abrir el grupo); queda solo su contenido (selector de tienda / punto)
       y el precio en la cabecera. */
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-tab-price {
        margin-left: auto;
        font-size: 0.75rem !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        white-space: nowrap;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-group--single [id^="shipping-method-option-"] {
        border: 0 !important;
        background: transparent !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-group--single [id^="shipping-method-option-"] > label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-group--single [id^="shipping-method-option-"] > label ~ * {
        padding-left: 0;
        padding-right: 0;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-group--single [id^="shipping-method-option-"] .p-4.pt-0 {
        padding: 0 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-group--single [id^="shipping-method-view-"] {
        margin-top: 0 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-group--single .elg-co-ship-tabpane:has([id^="shipping-method-option-"] > label > input[type="radio"]:not(:checked)) {
        display: none !important;
    }

    /* Métodos dentro de la caja abierta */
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-ship-tabpane {
        padding: 0 1.25rem 1.25rem;
    }

    /* ---------- Botones ---------- */

    body.hyva_checkout-index-index #hyva-checkout-main .btn,
    body.hyva_checkout-index-index #hyva-checkout-main button.btn-primary,
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-nav-main .btn-place-order,
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-nav-main button.elg-co-place {
        border-radius: 0 !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.14em !important;
        box-shadow: none !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main button.btn-primary,
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-nav-main .btn-place-order,
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-nav-main button.elg-co-place {
        background: rgb(4 29 64) !important;
        border: 1px solid rgb(4 29 64) !important;
        color: var(--color-on-primary) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-nav-main .btn-place-order,
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-nav-main button.elg-co-place {
        min-height: 3rem;
        padding: 0.875rem 1.5rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main button.btn-primary:hover:not(:disabled),
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-nav-main .btn-place-order:hover:not(:disabled) {
        background: rgb(4 29 64 / 0.88) !important;
    }
    /* PayPal in-context: paga su propio botón (SDK en #paypal-button-container).
       Se oculta "Realizar pedido" solo si los botones se han pintado; si no
       cargan, queda el botón normal (redirección a PayPal). */
    body.hyva_checkout-index-index #hyva-checkout-main:has(#payment-method-option-paypal_express > label > input[type="radio"]:checked):has(#paypal-button-container > *) .checkout-nav-main .btn-place-order,
    body.hyva_checkout-index-index #hyva-checkout-main:has(#payment-method-option-paypal_express > label > input[type="radio"]:checked):has(#paypal-button-container > *) .elg-co-ready-hint {
        display: none !important;
    }
    /* Hyvä deja el botón principal a opacity .8 estando activo */
    body.hyva_checkout-index-index #hyva-checkout-main .checkout-nav-main .btn-place-order:not(:disabled) {
        opacity: 1 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .btn:disabled,
    body.hyva_checkout-index-index #hyva-checkout-main button:disabled {
        opacity: 0.4 !important;
        cursor: not-allowed;
    }

    /* ---------- Sidebar: bolsa ---------- */

    /* "Carrito (n artículos)" como subtítulo de sección */
    body.hyva_checkout-index-index #hyva-checkout-main [aria-controls="checkout-cart-details"] {
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: rgb(4 29 64) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [aria-controls="checkout-cart-details"] > svg {
        display: none;
    }
    body.hyva_checkout-index-index #hyva-checkout-main [aria-controls="checkout-cart-details"] > span {
        font-weight: 600 !important;
        color: rgb(4 29 64 / 0.6) !important;
    }

    /* Línea de producto */
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item {
        display: flex;
        gap: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgb(4 29 64 / 0.1);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item:last-child {
        border-bottom: 0;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-img {
        flex: none;
        width: 72px !important;
        height: 96px !important;
        object-fit: cover;
        border-radius: 0 !important;
        background: rgb(245 246 248);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-name {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        line-height: 1.35;
        color: rgb(4 29 64);
        margin: 0;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-price {
        flex: none;
        text-align: right;
        font-size: 0.8125rem;
        font-weight: 600;
        color: rgb(4 29 64);
        font-feature-settings: 'tnum';
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-price .old-price,
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-price .tag_discount {
        display: block;
        margin-left: auto;
        width: max-content;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-preorder {
        margin: 0;
        font-size: 0.6875rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #dc2626;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.25rem 0.5rem;
        font-size: 0.6875rem;
        color: rgb(4 29 64 / 0.7);
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    /* Opciones (Talla 39) en línea: "TALLA 39" */
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-body dl {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.25rem 0.375rem !important;
        font-size: 0.6875rem !important;
        margin: 0;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-body dl dt,
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-body dl dd {
        font-weight: 400 !important;
        color: rgb(4 29 64 / 0.7) !important;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-item-body dl dd + dt::before {
        content: "|";
        margin-right: 0.375rem;
        color: rgb(4 29 64 / 0.35);
    }

    /* "Disponible en tienda": tiendas cercanas al CP de envío con el artículo */
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores {
        margin-top: 0.125rem;
        font-size: 0.6875rem;
        color: rgb(4 29 64);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-toggle {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        width: 100%;
        padding: 0;
        background: none;
        border: 0;
        text-align: left;
        font-size: inherit;
        color: #15803d;
        cursor: pointer;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-icon {
        flex: none;
        width: 14px;
        height: 14px;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-summary {
        min-width: 0;
        line-height: 1.35;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-summary strong {
        font-weight: 600;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-chevron {
        flex: none;
        margin-left: auto;
        transition: transform 0.15s ease;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-chevron.is-open {
        transform: rotate(180deg);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-list {
        margin: 0.5rem 0 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.625rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-list li {
        padding-left: 0.625rem;
        border-left: 2px solid rgb(4 29 64 / 0.1);
        line-height: 1.45;
        color: rgb(4 29 64 / 0.7);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-list p {
        margin: 0;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-name {
        font-weight: 600;
        color: rgb(4 29 64);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-km {
        font-weight: 400;
        color: rgb(4 29 64 / 0.6);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-links a {
        color: rgb(4 29 64);
        text-decoration: underline;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-stores-list li.elg-co-stores-note {
        padding-left: 0;
        border-left: 0;
        color: rgb(4 29 64 / 0.55);
    }

    /* Caja desplegable de descuentos (código y puntos), como el diseño:
       borde fino, texto gris y chevron a la derecha */
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-discounts {
        border: 1px solid rgb(4 29 64 / 0.25);
        margin-bottom: 1rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-discounts-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
        text-align: left;
        color: rgb(4 29 64 / 0.6);
        cursor: pointer;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-discounts-chevron {
        flex: none;
        color: rgb(4 29 64 / 0.6);
        transition: transform 0.2s;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-discounts-chevron.is-open {
        transform: rotate(180deg);
    }
    body.hyva_checkout-index-index #hyva-checkout-main .elg-co-discounts-body {
        padding: 0 1rem 1rem;
    }
    /* La separación entre código y puntos está en 38-checkout-reward-points.css
       (ese partial va fuera de @layer y aquí no ganaría) */

    /* Cupón: input + botón en la misma línea, botón outline */
    body.hyva_checkout-index-index #hyva-checkout-main #unified-code-details .elg-uc-form {
        flex-direction: row !important;
        gap: 0.5rem !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main #unified-code-details .elg-uc-form > label {
        /* Sin el margin-bottom (6px) global de label: alargaba la fila y el botón */
        margin: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0;
    }
    body.hyva_checkout-index-index #hyva-checkout-main #unified-code-details button.btn {
        flex: none !important;
        width: auto !important;
        background: var(--color-bg) !important;
        color: rgb(4 29 64) !important;
        border: 1px solid rgb(4 29 64) !important;
        padding: 0 1.25rem !important;
        /* Misma altura que el input: .btn trae 50px fijos; así se estira a la fila */
        height: auto !important;
        min-height: 0 !important;
        align-self: stretch;
    }
    body.hyva_checkout-index-index #hyva-checkout-main #unified-code-details button.btn:hover:not(:disabled) {
        background: rgb(4 29 64) !important;
        color: var(--color-on-primary) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main #unified-code-details p {
        font-size: 0.6875rem !important;
        color: rgb(4 29 64 / 0.55) !important;
    }

    /* Totales: etiqueta a la izquierda, importe a la derecha.
       El partial 26 ponía display:flex en .item y el div interior se
       encogía, dejando etiqueta e importe pegados. */
    /* Sin separador ni hueco bajo la caja de descuentos: los totales van justo debajo */
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments {
        border-top: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    /* 1.3.15: las líneas van dentro de .divide-y, sin la clase "item", y el título sin "label" */
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .divide-y {
        border: 0 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .item,
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .divide-y > div {
        display: block !important;
        border: 0 !important;
        padding: 0.25rem 0 !important;
        font-size: 0.75rem !important;
        color: rgb(4 29 64 / 0.6) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .item:first-child,
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .divide-y > div:first-child {
        padding-top: 0 !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .item > div,
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .divide-y > div > div {
        width: 100%;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .item .label,
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .divide-y > div > div > span:first-child {
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.6875rem;
    }
    /* TOTAL: lo más importante, algo más grande que el resto, en oscuro y negrita */
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .item.grand_total,
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .divide-y > div.grand_total {
        margin-top: 0.5rem !important;
        padding-top: 0.625rem !important;
        border-top: 1px solid rgb(4 29 64 / 0.12) !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: rgb(4 29 64) !important;
    }
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments > .divide-y > div.grand_total > div > span:first-child {
        font-size: 0.875rem;
    }
    /* "Incluye X € en impuestos" bajo el total */
    body.hyva_checkout-index-index #hyva-checkout-main .total-segments .elg-co-tax-note {
        margin: 0.125rem 0 0;
        font-size: 0.6875rem;
        font-weight: 400;
        text-align: right;
        color: rgb(4 29 64 / 0.55);
    }
}
