/* WC Currency Switcher – Frontend Widget */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;600;700&display=swap');

#wccs-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;
    direction: rtl;
    font-family: 'Tajawal', Tahoma, sans-serif;
}

#wccs-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #1a1a2e, #0d4f3c);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: 'Tajawal', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all .2s;
    white-space: nowrap;
}

#wccs-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#wccs-active-symbol {
    font-weight: 700;
    opacity: .85;
}

#wccs-active-code {
    font-weight: 700;
}

/* Dropdown */
#wccs-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    min-width: 200px;
    overflow: hidden;
    display: none;
    animation: wccs-slide-up .15s ease;
}

#wccs-dropdown.open { display: block; }

@keyframes wccs-slide-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wccs-dropdown-header {
    padding: 10px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Tajawal', Tahoma, sans-serif;
}

.wccs-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    font-family: 'Tajawal', Tahoma, sans-serif;
    transition: background .12s;
    position: relative;
}

.wccs-option:hover { background: #f5fdf8; }

.wccs-option.active {
    background: #f0faf6;
    color: #0d4f3c;
}

.wccs-opt-symbol {
    font-weight: 700;
    color: #0d4f3c;
    width: 32px;
    text-align: center;
    font-size: 13px;
    background: #e8f5ef;
    border-radius: 6px;
    padding: 2px 4px;
    flex-shrink: 0;
}

.wccs-opt-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.wccs-opt-code {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
}

.wccs-check {
    color: #0d4f3c;
    font-weight: 700;
    font-size: 13px;
    margin-right: 4px;
}

/* Loading state */
#wccs-toggle.loading {
    opacity: .7;
    pointer-events: none;
}

/* RTL sites: flip to right side */
body.rtl #wccs-widget,
[dir="rtl"] #wccs-widget {
    left: auto;
    right: 24px;
}

[dir="rtl"] #wccs-dropdown {
    left: auto;
    right: 0;
}
