/**
 * AUDIOSTAFF — Moneda orientativa
 * Solo presentación. El precio oficial (USD) nunca se oculta ni se reemplaza.
 */

/* Línea convertida: debajo del precio oficial, compacta y sin deformar la columna */

.as-dc-alt {
    display: block;
    max-width: 100%;
    margin-top: 1px;
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    opacity: .68;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-align: inherit;
    font-variant-numeric: tabular-nums;
}

.as-dc-alt small {
    display: inline;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .8;
}

.as-dc-from {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .8;
}

.as-dc-total-alt {
    margin-top: 2px;
    white-space: nowrap !important;
    font-size: 8.5px;
    font-weight: 500;
    opacity: .65;
}

/* El plugin de margen B2C fuerza nowrap !important en los spans del precio.
   Nuestra línea necesita envolver dentro de la columna, no empujar la tabla. */
html:root:root body .as-pl-v3-table td.col-price > span.as-dc-alt,
html:root:root body .as-pl-v3-table td.col-total > span.as-dc-alt,
.as-pl-v3-table td.col-price > .as-dc-alt,
.as-pl-v3-table td.col-total > .as-dc-alt {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
}

/* Selector: mismo lenguaje visual que el selector de idioma del portal */

.as-dc-switcher {
    position: relative;
    z-index: 100000;
    display: inline-block;
    font-size: 12px;
    line-height: 1;
}

.as-dc-switcher > summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(128, 128, 128, .38);
    border-radius: 999px;
    background: rgba(128, 128, 128, .06);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    user-select: none;
    color: inherit;
}

.as-dc-switcher > summary::-webkit-details-marker {
    display: none;
}

.as-dc-switcher > summary::marker {
    content: "";
}

.as-dc-switcher > summary:hover {
    background: rgba(128, 128, 128, .08);
}

.as-dc-switcher[open] > summary {
    background: rgba(128, 128, 128, .1);
}

.as-dc-switcher > summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.as-dc-switcher > summary strong {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
}

.as-dc-flag {
    flex: 0 0 auto;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 13px;
    line-height: 1;
    font-variant-emoji: emoji;
}

.as-dc-chevron {
    font-size: 8px;
    line-height: 1;
    opacity: .55;
}

.as-dc-menu {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 6px);
    right: 0;
    width: 242px;
    max-width: calc(100vw - 24px);
    max-height: 360px;
    box-sizing: border-box;
    overflow: auto;
    padding: 6px;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 8px;
    background: #fff;
    color: #111;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
    overscroll-behavior: contain;
}

.as-dc-menu.as-dc-menu--floating {
    position: fixed !important;
    right: auto !important;
    z-index: 2147483000 !important;
}

.as-dc-menu-head {
    position: sticky;
    top: -6px;
    z-index: 1;
    padding: 7px 9px 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(128, 128, 128, .22);
    background: inherit;
}

.as-dc-menu-head strong {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    opacity: .55;
}

.as-dc-menu-head small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.4;
    opacity: .65;
}

.as-dc-menu-rate {
    font-variant-numeric: tabular-nums;
}

.as-dc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 5px;
    color: inherit;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
}

.as-dc-item:hover,
.as-dc-item:focus-visible {
    background: rgba(128, 128, 128, .14);
    outline: none;
}

html:root:root body .as-dc-menu .as-dc-item.is-active {
    background: #2a2f39 !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 #d69a46;
}

html:root:root body .as-dc-menu .as-dc-item.is-active .as-dc-item-code,
html:root:root body .as-dc-menu .as-dc-item.is-active .as-dc-item-hint {
    background: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.as-dc-item-code {
    font-weight: 700;
    letter-spacing: .02em;
}

.as-dc-item-hint {
    margin-left: auto;
    font-size: 10px;
    opacity: .62;
    text-align: right;
}

.as-dc-item.is-active .as-dc-item-hint {
    opacity: .85;
}

/* Aviso del catálogo y de la ficha */

.as-dc-banner {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 12px;
    padding: 9px 12px;
    border: 1px solid rgba(128, 128, 128, .3);
    border-left: 3px solid rgba(198, 132, 43, .9);
    border-radius: 5px;
    background: rgba(198, 132, 43, .06);
    font-size: 12px;
    line-height: 1.45;
}

.as-dc-banner-mark {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1.15;
    opacity: .7;
}

.as-dc-banner p {
    margin: 0;
}

.as-dc-note {
    width: 100%;
    max-width: 46em;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.45;
    opacity: .62;
}

/* Carrito y checkout: aviso, nunca conversión de importes */

.as-dc-cart-notice {
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid rgba(128, 128, 128, .3);
    border-left: 3px solid rgba(198, 132, 43, .9);
    border-radius: 5px;
    background: rgba(198, 132, 43, .06);
    font-size: 13px;
    line-height: 1.5;
}

.as-dc-cart-notice strong {
    font-weight: 700;
}

.as-dc-cart-notice .as-dc-cart-rate {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    opacity: .65;
}

html[data-as-display-mode="dark"] .as-dc-menu {
    background: #15181e;
    color: #f3f4f7;
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}

html[data-as-display-mode="dark"] .as-dc-menu.as-dc-menu--floating {
    position: fixed !important;
    right: auto !important;
    z-index: 2147483000 !important;
}

.as-dc-menu-head {
    border-color: rgba(255, 255, 255, .14);
}

/* La fila activa se mantiene clara y con texto oscuro para que se lea
   igual sobre el menú oscuro y sobre el claro. */

html[data-as-display-mode="dark"] .as-dc-banner,
html[data-as-display-mode="dark"] .as-dc-cart-notice {
    border-color: rgba(255, 255, 255, .18);
    border-left-color: rgba(214, 154, 70, .95);
    background: rgba(214, 154, 70, .1);
}

@media (max-width: 700px) {
    .as-dc-switcher > summary {
        height: 28px;
        padding: 0 9px;
    }

    .as-dc-menu {
        left: 0;
        right: auto;
        width: 222px;
        max-height: 300px;
    }

    .as-dc-banner {
        font-size: 11px;
        padding: 8px 10px;
    }

    .as-dc-cart-notice {
        font-size: 12px;
        padding: 10px 12px;
    }
}

@media print {
    .as-dc-switcher,
    .as-dc-menu,
    .as-dc-banner,
    .as-dc-note,
    .as-dc-alt,
    .as-dc-cart-notice {
        display: none !important;
    }
}
