/*
 AYNE LIVING V6.1
 MOBILE PREMIUM CHECKOUT

 Solo estilos.
 No modifica formularios ni pedidos.
*/

/* BOLSA */

@media (max-width: 768px) {

    #cartDrawer {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh;
        max-height: 100dvh;
        box-sizing: border-box;
        overscroll-behavior: contain;
    }

    #cartDrawer img {
        object-fit: cover;
        border-radius: 12px;
    }

    #cartDrawer button,
    #cartDrawer a {
        touch-action: manipulation;
    }

    /* CHECKOUT: FORMULARIO PRIMERO */

    body.ayne-v61-checkout
    .ayne-v61-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 22px !important;
    }

    body.ayne-v61-checkout
    .ayne-v61-form {
        order: -2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    body.ayne-v61-checkout
    .ayne-v61-summary {
        order: -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    body.ayne-v61-checkout
    input:not([type="hidden"]),
    body.ayne-v61-checkout textarea,
    body.ayne-v61-checkout select {
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    body.ayne-v61-checkout textarea {
        line-height: 1.55;
    }
}

/* INDICADORES ACCESIBLES */

#cartDrawer button:focus-visible,
#cartDrawer a:focus-visible,
body.ayne-v61-checkout button:focus-visible,
body.ayne-v61-checkout a:focus-visible {
    outline: 3px solid #c9a45d;
    outline-offset: 3px;
}