/* =========================================================
   Briton Multi Currency - Top Bar Switcher
   ========================================================= */

#bmc-top-bar {
    background: #e84115;
    color: #fff;
    width: 100%;
    position: relative; /* Scrolls away with the page */
    z-index: 999; /* Lowered so it doesn't overlap WP admin bar dropdowns */
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    font-size: 13px;
    letter-spacing: 0.01em;
}

#bmc-top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 42px;
    position: relative;
}

/* Trigger button */
#bmc-currency-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 700;
    color: #e84115; /* Orange text */
    background: #ffffff; /* Prominent white background */
    border: none;
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Adds depth */
}

#bmc-currency-label:hover,
#bmc-currency-label:focus {
    background: #fdfdfd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    outline: none;
}

#bmc-chevron {
    transition: transform 0.22s ease;
    flex-shrink: 0;
    opacity: 0.8;
}

#bmc-top-bar.bmc-open #bmc-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
#bmc-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
    min-width: 230px;
    overflow: hidden;
    z-index: 999999;
    animation: bmc-fade-in 0.15s ease forwards;
}

#bmc-top-bar.bmc-open #bmc-dropdown {
    display: block;
}

@keyframes bmc-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bmc-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #222;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.12s;
    border-bottom: 1px solid #f2f2f2;
}

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

.bmc-option:hover {
    background: #f0f4ff;
    color: #1a1a2e;
    text-decoration: none !important;
}

.bmc-option.bmc-active {
    background: #eef2ff;
}

.bmc-flag {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.bmc-code {
    font-weight: 700;
    min-width: 40px;
    color: #1a1a2e;
}

.bmc-name {
    flex: 1;
    color: #666;
    font-size: 12px;
}

.bmc-check {
    color: #2563eb;
    font-weight: 700;
    font-size: 16px;
    margin-left: auto;
}


@media screen and (max-width: 782px) {
    .admin-bar #bmc-top-bar {
        top: 46px;
    }

    #bmc-top-bar-inner {
        padding: 0 16px;
    }

    #bmc-dropdown {
        right: 16px;
        min-width: 200px;
    }
}
