/* Styles para TravelGate Botón Selección de Moneda */
.travelgate-btncurrency-widget {
    display: inline-flex;
    align-items: center;
    position: relative;
    gap: 10px;
    font-family: inherit;
}

.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: inherit;
    cursor: pointer;
    transition: background .12s ease, box-shadow .12s ease, transform .12s ease;
}

.tg-btn:hover {
    box-shadow: 0 6px 18px rgba(20, 20, 20, 0.06);
    transform: translateY(-1px);
}

.tg-btn-currency-label {
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.tg-btn-currency-value {
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.tg-btn-currency-symbol,
.tg-btn-currency-code,
.tg-btn-currency-name,
.tg-btn-currency-value {
    display: inline-block;
    vertical-align: middle;
}

.tg-btn-currency-symbol {
    width: 18px;
    text-align: center;
}

.tg-btn-currency-code {
    width: 36px;
    text-align: left;
    font-weight: 600;
}

.tg-btn-currency-name {
    width: auto;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-btn-currency-dropdown {
    position: absolute;
    top: calc(100% + 0px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
    border-radius: 10px;
    padding: 6px 0;
    z-index: 40;

    max-height: 123px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    opacity: 0;
    transform: translateY(-6px) scale(.99);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.tg-btn-currency-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Estilos de scrollbar ligeros */
.tg-btn-currency-dropdown::-webkit-scrollbar {
    width: 10px;
}

.tg-btn-currency-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.tg-btn-currency-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.tg-btn-currency-dropdown li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .12s ease;
}

.tg-btn-currency-dropdown li:hover {
    background: rgba(0, 0, 0, 0.04);
}

.tg-btn-currency-dropdown li.active {
    background: rgba(0, 0, 0, 0.06);
    font-weight: 700;
}

.travelgate-btncurrency-widget:hover .tg-btn-currency-dropdown,
.travelgate-btncurrency-widget .tg-btn:focus+.tg-btn-currency-dropdown,
.travelgate-btncurrency-widget .tg-btn:active+.tg-btn-currency-dropdown,
.travelgate-btncurrency-widget .tg-btn-currency-dropdown:hover {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    display: block;
}

.travelgate-btncurrency-widget.open .tg-btn-currency-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

@media (max-width: 600px) {
    .tg-btn-currency-label {
        display: none;
    }

    .tg-btn {
        padding: 6px 8px;
    }

    .tg-btn-currency-dropdown {
        left: 8px;
        right: 8px;
        min-width: unset;
        max-height: 220px;
    }

    .tg-btn-currency-symbol {
        width: 12px;
    }

    .tg-btn-currency-code {
        width: 24px;
    }

    .tg-btn-currency-name {
        width: auto;
        max-width: calc(100% - 80px);
    }
}