/**
 * Internal Site Connections — Frontend Language Switcher
 */

.isc-switcher {
    position: relative;
    display: inline-block;
}

.isc-switcher__current {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border: none;
    background: none;
}

.isc-switcher__current:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-radius: 2px;
}

.isc-switcher__flag {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    min-width: 20px;
}

.isc-switcher__flag img {
    display: block;
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.isc-switcher__lang {
    text-transform: uppercase;
}

/* ── Dropdown list ───────────────────────────────────── */

.isc-switcher__list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 9999;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

/* Hover to open on devices that support hover (desktop) */
@media (hover: hover) {
    .isc-switcher:hover > .isc-switcher__list {
        display: flex;
        flex-direction: column;
    }
}

/* Click/tap to open (JS toggles this class, needed for touch) */
.isc-switcher--open > .isc-switcher__list {
    display: flex;
    flex-direction: column;
}

.isc-switcher .isc-switcher__list a.isc-switcher__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
	font-weight: normal;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.isc-switcher__item:hover,
.isc-switcher__item:focus {
    background: #f5f5f5;
}
