/* Componente de moneda: mismo tamaño del idioma y del carrito de Home. */
.moneda {
    position: relative;
}

.moneda > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.moneda > summary::-webkit-details-marker {
    display: none;
}

/* Panel contenido en la cabecera, con opciones redondeadas y foco visible. */
.moneda__opciones {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 400;
    width: min(240px, calc(100vw - 40px));
    padding: 8px;
    border: 1px solid #d35400;
    border-radius: 12px;
    background: #12110f;
    color: #ece7da;
}

.moneda__opciones button {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
}

.moneda__opciones button[aria-pressed="true"] {
    background: #352012;
}

.moneda__opciones button:focus-visible,
.moneda > summary:focus-visible {
    outline: 2px solid #d35400;
    outline-offset: 2px;
}

.moneda__opciones button:disabled {
    opacity: 0.55;
}

/* Estado del servicio: visible solo cuando hay carga, fallo o precios de muestra. */
.moneda__estado {
    display: block;
    margin: 8px 6px 2px;
    max-width: 220px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.moneda--movil .moneda__opciones {
    position: static;
    margin-top: 8px;
}

.moneda--movil > summary {
    justify-content: flex-start;
}

/* Separar moneda de idiomas en telefono sin ensanchar el panel. */
.landing__opciones-moviles {
    flex-wrap: wrap;
    max-width: 100%;
}

.moneda--movil {
    flex: 1 0 100%;
}

/* Ventanas bajas: permitir desplazar el menu desde su parte superior. */
@media (max-height: 700px) {
    .landing__menu-movil:has(.moneda[open]) {
        justify-content: flex-start;
    }
}
