/* ============================================================
   Header Switchers — Figma-matching styles  v1.3
   Now targets the ACTUAL rendered markup:
     - WOOCS uses .woocs-style-1-dropdown (not <select>)
     - Polylang flags have inline styles (stripped in PHP)
   ============================================================ */

/* ── Container ────────────────────────────────────────────── */
.acteus-header-switchers {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    position: relative;
    z-index: 99999;
}

.acteus-divider {
    display: block;
    width: 1px;
    height: 18px;
    background: #c5c9d0;
    flex-shrink: 0;
}

.acteus-chevron {
    flex-shrink: 0;
    color: #002C5D;
    transition: transform 0.2s ease;
}

/* ══════════════════════════════════════════════════════════════
   CURRENCY SWITCHER  (WOOCS style="1" markup)
   
   Actual HTML structure:
   .woocs-style-1-dropdown
     .woocs-style-1-select
       <span>USD, $</span>
       <i> <img arrow> </i>
     <ul.woocs-style-1-dropdown-menu>
       <li>EUR, €</li>
   ══════════════════════════════════════════════════════════════ */
.acteus-curr-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Reset the WOOCS outer container */
.acteus-curr-wrapper .woocs-style-1-dropdown {
    border: none !important;
    border-width: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    position: relative;
}

/* The visible "USD, $" bar — all states */
.acteus-curr-wrapper .woocs-style-1-select,
.acteus-curr-wrapper .woocs-style-1-select:hover,
.acteus-curr-wrapper .woocs-style-1-select:focus,
.acteus-curr-wrapper .woocs-style-1-select:active,
.acteus-curr-wrapper .woocs-style-1-dropdown.open .woocs-style-1-select,
.acteus-curr-wrapper .woocs-style-1-dropdown.active .woocs-style-1-select,
.acteus-curr-wrapper .woocs-style-1-dropdown:focus .woocs-style-1-select,
.acteus-curr-wrapper .woocs-style-1-dropdown:active .woocs-style-1-select {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    outline-width: 0 !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Also kill border on the outer dropdown wrapper on click */
.acteus-curr-wrapper .woocs-style-1-dropdown,
.acteus-curr-wrapper .woocs-style-1-dropdown.open,
.acteus-curr-wrapper .woocs-style-1-dropdown.active,
.acteus-curr-wrapper .woocs-style-1-dropdown:focus,
.acteus-curr-wrapper .woocs-style-1-dropdown:active,
.acteus-curr-wrapper .woocs-style-1-dropdown:focus-within {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Currency text — bold, #002C5D */
.acteus-curr-wrapper .woocs-style-1-select span {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #002C5D !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

/* WOOCS arrow icon — restyle to match our chevron */
.acteus-curr-wrapper .woocs-style-1-select i,
.acteus-curr-wrapper .woocs-style-1-select i.fa2 {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide the WOOCS arrow image, replace with CSS triangle */
.acteus-curr-wrapper .woocs-style-1-select i img {
    display: none !important;
}

.acteus-curr-wrapper .woocs-style-1-select i::after {
    content: '' !important;
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 5px solid #002C5D !important;
    vertical-align: middle !important;
}

/* Currency dropdown menu */
.acteus-curr-wrapper .woocs-style-1-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: auto !important;
    min-width: 100px !important;
    background: #ffffff !important;
    border: 1px solid #e2e4e8 !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999 !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.acteus-curr-wrapper .woocs-style-1-dropdown-menu li {
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #002C5D !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    list-style: none !important;
    white-space: nowrap !important;
}

.acteus-curr-wrapper .woocs-style-1-dropdown-menu li:hover {
    background: #f4f5f7 !important;
}

/* Hide WOOCS version text */
.acteus-curr-wrapper .woocs_display_none {
    display: none !important;
}

/* Also reset any <select> if WOOCS ever falls back to it */
.acteus-curr-wrapper select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border: none !important;
    background: transparent !important;
    font-weight: 700 !important;
    color: #002C5D !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER — borderless, single chevron
   ══════════════════════════════════════════════════════════════ */
.acteus-lang-wrapper {
    position: relative;
    z-index: 99999;
}

/* Toggle button — full nuclear reset */
button.acteus-lang-toggle,
button.acteus-lang-toggle:hover,
button.acteus-lang-toggle:focus,
button.acteus-lang-toggle:active,
button.acteus-lang-toggle:visited {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 0 !important;
    border: none !important;
    border-width: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    outline: none !important;
    color: #002C5D !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    margin: 0 !important;
}

.acteus-lang-wrapper.open .acteus-lang-toggle .acteus-chevron {
    transform: rotate(180deg);
}

/* Kill any extra pseudo arrows */
button.acteus-lang-toggle::before,
button.acteus-lang-toggle::after {
    display: none !important;
    content: none !important;
}

/* ── Flag images — 28×20, override inline styles ─────────── */
.acteus-lang-toggle img,
.acteus-lang-item img,
.acteus-header-switchers .acteus-lang-wrapper img {
    display: inline-block !important;
    width: 28px !important;
    height: 20px !important;
    min-width: 28px !important;
    min-height: 20px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12) !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    /* Override any inline style="width:16px; height:11px" */
}

/* ── Language dropdown panel ──────────────────────────────── */
.acteus-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: #ffffff !important;
    border: 1px solid #e2e4e8 !important;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999 !important;
    overflow: hidden;
}

.acteus-lang-wrapper.open .acteus-lang-dropdown {
    display: block !important;
    animation: acteusFadeIn 0.15s ease;
}

@keyframes acteusFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Language dropdown items ──────────────────────────────── */
a.acteus-lang-item,
a.acteus-lang-item:hover,
a.acteus-lang-item:focus,
a.acteus-lang-item:visited {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    text-decoration: none !important;
    color: #002C5D !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    transition: background 0.15s ease;
}

a.acteus-lang-item:hover {
    background: #f4f5f7 !important;
}

a.acteus-lang-item.acteus-lang-active {
    font-weight: 600 !important;
    background: #f0f1f4 !important;
}

.acteus-lang-item span {
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   KILL ALL POLYLANG / OLD SHORTCODE DEFAULT OUTPUTS
   ══════════════════════════════════════════════════════════════ */
.lang-wrapper,
.custom-header-container .lang-wrapper {
    display: none !important;
}

.pll-switcher,
#lang_choice,
select[name="lang_choice"],
.widget_polylang {
    display: none !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .acteus-header-switchers {
        gap: 6px;
    }

    .acteus-curr-wrapper .woocs-style-1-select span {
        font-size: 12px !important;
    }

    .acteus-lang-toggle img,
    .acteus-lang-item img {
        width: 24px !important;
        height: 17px !important;
        min-width: 24px !important;
        min-height: 17px !important;
    }
}