/* Mándalo account access strip — tokens compartidos con cotizador/checkout/contacto:
   azul #205ABB, amarillo #FBC43D, fondo #F4F7FF, Lexend/Outfit. */

.mda-strip {
    background: #205ABB;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.mda-strip-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mda-strip-lead {
    margin: 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
}

.mda-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mda-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 18px;
    border-radius: 999px;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Outrank global theme link colors, including hover and keyboard focus. */
.mda-strip a.mda-btn.mda-btn--primary {
    background: #fff;
    color: #205ABB;
}

.mda-strip a.mda-btn.mda-btn--primary:hover,
.mda-strip a.mda-btn.mda-btn--primary:focus-visible {
    background: #FBC43D;
    color: #1E2A44;
}

.mda-strip a.mda-btn.mda-btn--ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75);
}

.mda-strip a.mda-btn.mda-btn--ghost:hover,
.mda-strip a.mda-btn.mda-btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.mda-btn:focus-visible {
    outline: 3px solid #FBC43D;
    outline-offset: 2px;
}

/* Fallback para temas sin wp_body_open(): barra anclada arriba. */
.mda-strip--anchored {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999998;
    box-shadow: 0 2px 12px rgba(16, 34, 74, 0.35);
}

body.admin-bar .mda-strip--anchored {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .mda-strip--anchored {
        top: 46px;
    }
}

/* Resaltado del formulario nativo de registro tras ?mdc_tab=register. */
body.woocommerce-account .woocommerce-form-register.mda-register-highlight {
    outline: 3px solid #FBC43D;
    outline-offset: 6px;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .mda-strip-inner {
        padding: 6px 12px;
        gap: 8px;
    }

    .mda-strip-lead {
        display: none;
    }

    .mda-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .mda-btn {
        min-height: 34px;
        padding: 6px 14px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mda-btn {
        transition: none;
    }
}

@media print {
    .mda-strip {
        display: none;
    }
}
