/* ==========================================================================
   Submenú del ícono de usuario del header (js/gd-menu-cuenta.js)

   Tarjeta como las del carrito: fondo blanco, borde 1px #E6E6E6, radio 12.
   Enlaces Roboto 15px, hover #F0F0F0; "Crear cuenta" en #EE8105.
   El reset del tema fuerza color/background con !important.
   ========================================================================== */

.gd-menu-cuenta-host {
    position: relative !important;
}

.gd-menu-cuenta-host .gd-menu-cuenta {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: max-content;
    min-width: 190px;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid #E6E6E6 !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    box-shadow: 0 10px 30px rgba(12, 12, 12, .12) !important;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translate(calc(-50% + var(--gd-desplazamiento, 0px)), 6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.gd-menu-cuenta-host .gd-menu-cuenta.is-abierto {
    opacity: 1;
    visibility: visible;
    transform: translate(calc(-50% + var(--gd-desplazamiento, 0px)), 0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

/* Puente invisible entre el ícono y el menú para no perder el hover. */
.gd-menu-cuenta-host .gd-menu-cuenta::before {
    content: "";
    position: absolute;
    top: -15px;
    right: 0;
    left: 0;
    height: 15px;
    background: transparent !important;
}

.gd-menu-cuenta-host .gd-menu-cuenta__saludo {
    margin: 0 0 4px !important;
    padding: 8px 12px 12px !important;
    border-bottom: 1px solid #E6E6E6 !important;
    font-family: "Mina", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #0C0C0C !important;
    white-space: nowrap;
}

.gd-menu-cuenta-host .gd-menu-cuenta__enlace {
    display: block !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    background: transparent !important;
    font-family: "Roboto", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #0C0C0C !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .15s ease;
}

.gd-menu-cuenta-host .gd-menu-cuenta__enlace:hover,
.gd-menu-cuenta-host .gd-menu-cuenta__enlace:focus-visible {
    background: #F0F0F0 !important;
    color: #0C0C0C !important;
    outline: 0;
}

.gd-menu-cuenta-host .gd-menu-cuenta__enlace--destacado,
.gd-menu-cuenta-host .gd-menu-cuenta__enlace--destacado:hover,
.gd-menu-cuenta-host .gd-menu-cuenta__enlace--destacado:focus-visible {
    color: #EE8105 !important;
    font-weight: 500 !important;
}

.gd-menu-cuenta-host .gd-menu-cuenta__enlace--salir {
    margin-top: 4px !important;
    border-top: 1px solid #E6E6E6 !important;
    border-radius: 0 0 8px 8px !important;
}

/* Ancla de "Crear cuenta": deja aire por encima al saltar. */
.gd-cuenta__ancla {
    display: block;
    scroll-margin-top: 120px;
}
