/**
 * Country Switcher Shortcode Styles
 * [oe_country_switcher]
 * Designed for dark-green background (e.g. header)
 */

.oe-country-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.oe-country-switcher__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.oe-country-switcher__link:hover,
.oe-country-switcher__link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--oe-color-white) !important;
    text-decoration: none !important;
}

.oe-country-switcher__link--active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--oe-color-white) !important;
    font-weight: 600;
}

.oe-country-switcher__link--active:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--oe-color-white) !important;
}

.oe-country-switcher__flag {
    display: inline-flex;
    align-items: center;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.oe-country-switcher__flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.oe-country-switcher__label {
    line-height: 1;
}

/* Responsive: hide labels on small screens, keep flags */
@media (max-width: 640px) {
    .oe-country-switcher__label {
        display: none;
    }

    .oe-country-switcher__link {
        padding: 0.25rem;
    }

    .oe-country-switcher {
        gap: 0.25rem;
    }
}
