/* Intercell Multilingual — front-end switcher */

.ic-ml-switcher {
    position: relative;
    display: inline-block;
    font-family: inherit;
    font-size: 0.95rem;
}

.ic-ml-switcher__toggle {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
}

.ic-ml-switcher__toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.ic-ml-switcher__list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.ic-ml-switcher:hover .ic-ml-switcher__list,
.ic-ml-switcher:focus-within .ic-ml-switcher__list {
    display: block;
}

.ic-ml-switcher__item {
    margin: 0;
    padding: 0;
}

.ic-ml-switcher__item a,
.ic-ml-switcher__item span {
    display: block;
    padding: 0.5rem 0.9rem;
    color: inherit;
    text-decoration: none;
}

.ic-ml-switcher__item a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.ic-ml-switcher__item.is-current {
    font-weight: 600;
}

.ic-ml-switcher__item.disabled {
    opacity: 0.5;
    text-decoration: line-through;
    pointer-events: none;
}

.ic-ml-switcher-floating {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9998;
}

.ic-ml-switcher-floating .ic-ml-switcher__toggle {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* On desktop the switcher is rendered inline inside the nav — hide the floating fallback. */
@media (min-width: 768px) {
    .ic-ml-switcher-floating {
        display: none;
    }
}

/* On mobile, leave room for the nav hamburger (36px button + 20px nav padding from the viewport edge) */
@media (max-width: 767px) {
    .ic-ml-switcher-floating {
        top: 1.25rem;
        right: 72px;
    }
    /* Inline switcher (inside .nav-right) is hidden via the existing rule on .nav-right */
}

/* Inline switcher inside the nav — match dark nav styling */
nav .nav-right .ic-ml-switcher {
    margin-left: 8px;
}
nav .nav-right .ic-ml-switcher__toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
}
nav .nav-right .ic-ml-switcher__toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ic-ml-fallback-banner {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: #fff4cc;
    border-bottom: 1px solid #e6d88a;
    color: #5a4a00;
    text-align: center;
    font-size: 0.95rem;
}
