.oam-language-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.oam-header-language-slot {
    display: none;
}

.oam-header-language-slot.is-fallback {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.oam-header-language-item {
    display: flex;
    align-items: center;
    margin: 0 4px 0 8px;
}

.oam-header-language-switcher {
    --oam-accent: var(--theme-color, #f1404b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 58px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(var(--theme-color-rgb, 241, 64, 75), 0.22);
    border-radius: 999px;
    color: var(--oam-accent);
    background: rgba(var(--theme-color-rgb, 241, 64, 75), 0.07);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
    transition: color 160ms ease, background-color 160ms ease,
        border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.oam-header-language-switcher .icon-globe {
    font-size: 16px;
    font-weight: 400;
}

.oam-header-language-switcher:hover {
    color: #fff;
    background: var(--oam-accent);
    border-color: var(--oam-accent);
    box-shadow: 0 5px 14px rgba(var(--theme-color-rgb, 241, 64, 75), 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.oam-header-language-switcher:active {
    box-shadow: none;
    transform: translateY(0);
}

.oam-header-language-switcher:focus-visible,
.oam-language-switcher:focus-visible {
    outline: 3px solid rgba(var(--theme-color-rgb, 241, 64, 75), 0.28);
    outline-offset: 3px;
}

.oam-language-menu-item .oam-language-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oam-language-mobile-link .icon-globe {
    color: var(--theme-color, #f1404b);
    font-size: 18px;
}

.oam-language-floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
}

.oam-language-floating .oam-language-switcher {
    color: #fff;
    background: var(--theme-color, #f1404b);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.io-black-mode .oam-header-language-switcher {
    color: #ff6973;
    background: rgba(241, 64, 75, 0.13);
    border-color: rgba(255, 105, 115, 0.28);
    box-shadow: none;
}

.io-black-mode .oam-header-language-switcher:hover {
    color: #fff;
    background: var(--theme-color, #f1404b);
}

html[lang^="en"] h1 > .text-md {
    margin-left: 0.28em;
}

@media (max-width: 600px) {
    .oam-language-floating {
        right: 12px;
        bottom: 12px;
    }

    .oam-header-language-switcher {
        min-width: 46px;
        height: 38px;
        padding: 0 9px;
    }

    .oam-header-language-switcher .icon-globe {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oam-header-language-switcher {
        transition: none;
    }
}
