/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Header currency switcher for the Phase 1 multi-currency display layer.
 */

.dna-currency-switcher-wrap {
    display: flex;
    align-items: center;
}

.dna-currency-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.125rem 0;
}

.dna-currency-switcher__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    margin-right: 0.125rem;
}

.dna-currency-switcher__group {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe3ea;
    border-radius: 999px;
    background: #f8fafc;
    padding: 2px;
    gap: 2px;
}

.dna-currency-switcher__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.dna-currency-switcher__btn:hover:not(:disabled) {
    color: #0f172a;
    background: #eef2f7;
}

.dna-currency-switcher__btn.is-active {
    color: #ffffff;
    background: #237465;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.dna-currency-switcher__btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.navbar-nav-secondary .dna-currency-switcher-wrap {
    margin-right: 0.5rem;
}

@media (max-width: 991.98px) {
    .navbar-nav-secondary .dna-currency-switcher-wrap {
        margin: 0.5rem 0 0.75rem;
        width: 100%;
        justify-content: flex-start;
    }

    .dna-currency-switcher__label {
        display: inline !important;
    }
}

/* ========================================
   Dark variant (scoped to dark navbar only)
   Used by _Layout_PublicHome_v2.cshtml via `navbar-premium--dark`.
   ======================================== */
#mainNav.navbar-premium--dark .dna-currency-switcher__label {
    color: rgba(255, 255, 255, 0.6);
}

#mainNav.navbar-premium--dark .dna-currency-switcher__group {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

#mainNav.navbar-premium--dark .dna-currency-switcher__btn {
    color: rgba(255, 255, 255, 0.7);
}

#mainNav.navbar-premium--dark .dna-currency-switcher__btn:hover:not(:disabled) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

#mainNav.navbar-premium--dark .dna-currency-switcher__btn.is-active {
    color: #ffffff;
    background: #1f7a68;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ========================================
   Mobile slide-in panel placement.
   Used by _Layout_2025.cshtml and _Layout_PublicHome_v2.cshtml when the
   custom mobile nav panel (#mobileNavPanel) is open. Renders the switcher
   below the header and above the navigation list.
   ======================================== */
.mobile-nav-currency-switcher {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.6);
}

.mobile-nav-currency-switcher .dna-currency-switcher-wrap {
    width: 100%;
    margin: 0;
}

.mobile-nav-currency-switcher .dna-currency-switcher {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
}

.mobile-nav-currency-switcher .dna-currency-switcher__label {
    display: inline !important;
    color: #1f2937;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

.mobile-nav-currency-switcher .dna-currency-switcher__group {
    flex: 0 0 auto;
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
}

.mobile-nav-currency-switcher .dna-currency-switcher__btn {
    font-size: 0.8125rem;
    padding: 0.5rem 0.9rem;
}

