/* Findeq Multilingual — front-end switcher */

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

.fq-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;
}

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

.fq-ml-switcher__list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    margin: 0;
    padding: 0.5rem 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;
}

/* Onzichtbare hover-bridge: vangt de cursor op tijdens beweging van
   knop naar dropdown zodat de hover-zone niet verloren gaat. Breed
   genoeg om de left-overhang van de min-width:160px dropdown te dekken;
   alleen actief tijdens :hover/:focus-within zodat de strip in idle
   geen klikken onder de nav blokkeert. */
.fq-ml-switcher::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: 160px;
    height: 10px;
    pointer-events: none;
}
.fq-ml-switcher:hover::after,
.fq-ml-switcher:focus-within::after {
    pointer-events: auto;
}

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

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

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

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

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

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

/* Flag-helper inside toggle + items — inline SVG per taal (platform-safe) */
.fq-ml-switcher__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}
.fq-ml-switcher__flag svg {
    display: block;
    height: 12px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.fq-ml-switcher__label {
    flex: 1 1 auto;
    text-align: left;
}
.fq-ml-switcher__caret {
    margin-left: 0.45em;
    opacity: 0.55;
    font-size: 0.75em;
    line-height: 1;
}
.fq-ml-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    color: #111 !important;
}

/* Items in dropdown: flag links + label, zwart, gecentreerd */
.fq-ml-switcher__item a,
.fq-ml-switcher__item span {
    display: flex;
    align-items: center;
    gap: 0.55em;
    color: #111 !important;
    padding: 0.55rem 0.9rem;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

/* Floating switcher (Findeq theme heeft geen .nav-right slot — toon altijd) */
.fq-ml-switcher-floating {
    position: fixed;
    top: 0.6rem;
    right: 1rem;
    z-index: 9998;
}

.fq-ml-switcher-floating .fq-ml-switcher__toggle {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: #111;
    font-weight: 600;
    padding: 0.42rem 0.8rem;
    border-radius: 6px;
    line-height: 1.2;
}
.fq-ml-switcher-floating .fq-ml-switcher__toggle:hover {
    background: #f8f8f8;
}
.fq-ml-switcher-floating .fq-ml-switcher__list {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    margin-top: 4px;
    min-width: 160px;
}
.fq-ml-switcher-floating .fq-ml-switcher__item.is-current {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}
.fq-ml-switcher-floating .fq-ml-switcher__item a:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* On mobile, leave room for the nav hamburger */
@media (max-width: 767px) {
    .fq-ml-switcher-floating {
        top: 0.9rem;
        right: 72px;
    }
}

/* Switcher wordt op desktop door JS in de GeneratePress top-bar geplaatst
   zodat hij niet meer met de WhatsApp-CTA in de nav conflicteert. Deze
   variant ontkoppelt de floating-positie en past compact-style aan. */
.fq-ml-switcher-floating.fq-ml-switcher--in-topbar {
    position: static;
    display: inline-flex;
    align-items: center;
    margin: 4px 20px 0 auto;
    vertical-align: middle;
    top: auto;
    right: auto;
    z-index: auto;
}
.fq-ml-switcher--in-topbar .fq-ml-switcher__toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    padding: 0.28rem 0.7rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 4px;
}
.fq-ml-switcher--in-topbar .fq-ml-switcher__toggle:hover {
    background: rgba(255, 255, 255, 0.16) !important;
}
.fq-ml-switcher--in-topbar .fq-ml-switcher__caret {
    color: #fff;
    opacity: 0.85;
}
.fq-ml-switcher--in-topbar .fq-ml-switcher__flag svg {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Inline switcher inside the nav — match dark nav styling */
nav .nav-right .fq-ml-switcher {
    margin-left: 8px;
}
nav .nav-right .fq-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 .fq-ml-switcher__toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.fq-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;
}
