/* Currency Switcher Styling - Matches Sorting Dropdown */
.currency-switcher {
    position: relative;
    display: inline-block;
    z-index: 999;
}

.currency-switcher-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500 !important;
    color: var(--color-brown) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(67, 53, 67, 0.15) !important;
    border-radius: 22px !important;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.currency-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(67, 53, 67, 0.25) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: none;
}

.currency-switcher-btn:focus,
.currency-switcher-btn:focus-visible,
.currency-switcher-btn:active {
    outline: none !important;
    border-color: rgba(67, 53, 67, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(67, 53, 67, 0.15) !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

/* SVG Arrow styling - matches sorting dropdown */
.currency-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    display: inline-flex !important;
    align-items: center;
}

.currency-arrow svg {
    width: 12px;
    height: 12px;
}

.currency-switcher.open .currency-arrow {
    transform: rotate(180deg);
}

.currency-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 240px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.currency-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 949px) {
    .currency-dropdown {
        left: 0 !important;
        right: auto !important;
        min-width: min(78vw, 240px) !important;
        max-width: min(84vw, 280px) !important;
        max-height: min(52vh, 360px) !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 479px) {
    .currency-dropdown {
        min-width: min(72vw, 210px) !important;
        max-width: min(78vw, 240px) !important;
        max-height: min(48vh, 320px) !important;
    }
}

.currency-option {
    display: block;
    padding: 8px 15px;
    font-size: 14px;
    color: var(--color-brown);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(67, 53, 67, 0.08);
    border-left: 3px solid transparent;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: rgba(67, 53, 67, 0.1) !important;
}

.currency-option.active {
    font-weight: 600;
    background: rgba(67, 53, 67, 0.08) !important;
    border-left-color: var(--color-brown) !important;
}

.currency-option strong {
    color: var(--color-brown);
    font-weight: 600;
}

/* Dark mode - white text for both dropdowns */
html.dark-mode .currency-switcher-btn {
    background: rgba(20, 20, 20, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

html.dark-mode .currency-switcher-btn:hover {
    background: rgba(30, 30, 30, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

html.dark-mode .currency-switcher-btn:focus,
html.dark-mode .currency-switcher-btn:focus-visible {
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

html.dark-mode .currency-dropdown {
    background: rgba(20, 20, 20, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html.dark-mode .currency-option {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

html.dark-mode .currency-option:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

html.dark-mode .currency-option.active {
    background: rgba(255, 255, 255, 0.05) !important;
    border-left-color: #ffffff !important;
}

html.dark-mode .currency-option strong {
    color: #ffffff !important;
}

/* Sidebar spacing improvements */
.wpc-filters-section {
    margin-bottom: 20px !important;
}

.wpc-filter-title {
    margin-bottom: 15px !important;
}

.wpc-filters-list li {
    margin-bottom: 8px !important;
}
