/* ==========================================================================
   Mutineer Currency Geo Switcher – Floating Widget
   ========================================================================== */

/* Container – fixed to the bottom-right corner */
#mcg-currency-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
}

/* Trigger button */
#mcg-currency-switcher .mcg-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

#mcg-currency-switcher .mcg-trigger:hover,
#mcg-currency-switcher .mcg-trigger:focus-visible {
    background: #333;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    outline: none;
}

/* Globe icon */
#mcg-currency-switcher .mcg-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.85;
}

/* Arrow caret */
#mcg-currency-switcher .mcg-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fff;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

#mcg-currency-switcher.mcg-open .mcg-caret {
    transform: rotate(180deg);
}

/* Dropdown list */
#mcg-currency-switcher .mcg-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 6px 0;

    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#mcg-currency-switcher.mcg-open .mcg-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Individual option */
#mcg-currency-switcher .mcg-dropdown li {
    margin: 0;
    padding: 0;
}

#mcg-currency-switcher .mcg-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: #1a1a1a;
    transition: background 0.15s ease;
}

#mcg-currency-switcher .mcg-option:hover,
#mcg-currency-switcher .mcg-option:focus-visible {
    background: #f4f4f4;
    outline: none;
}

/* Active / current currency */
#mcg-currency-switcher .mcg-option.mcg-active {
    font-weight: 700;
    color: #000;
}

#mcg-currency-switcher .mcg-option.mcg-active::after {
    content: "✓";
    margin-left: auto;
    font-size: 12px;
    color: #555;
}

/* Currency symbol badge */
#mcg-currency-switcher .mcg-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}

/* Currency label */
#mcg-currency-switcher .mcg-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

#mcg-currency-switcher .mcg-code {
    font-weight: 600;
    font-size: 13px;
}

#mcg-currency-switcher .mcg-name {
    font-size: 11px;
    color: #888;
}

/* Responsive: shift slightly on very small screens */
@media (max-width: 480px) {
    #mcg-currency-switcher {
        bottom: 16px;
        right: 16px;
    }

    #mcg-currency-switcher .mcg-trigger {
        padding: 9px 14px;
        font-size: 13px;
    }
}