/* PolyLang Globe Language Switcher — v1.0.0 */

/* === Wrapper — inline by shortcode position === */
.globe-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    z-index: 99999;
}

/* === Globe button === */
.globe-lang-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #1a73e8 !important;
    border: 1px solid rgba(26, 115, 232, 0.14) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.29);
    transition: background 0.15s;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    line-height: 1;
}

.globe-lang-btn:hover,
.globe-lang-btn[aria-expanded="true"] {
    background: #001234 !important;
}

.globe-lang-btn svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: #fff !important;
}

/* === Dropdown — opens above the button, anchored left === */
.globe-lang-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 12px;
    overflow: hidden;
    min-width: 100px;
    margin-bottom: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);

    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.globe-lang-dropdown.open {
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateY(0) !important;
}

/* === Polylang list reset === */
.globe-lang-dropdown ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* === Language item rows === */
.globe-lang-dropdown ul li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
}

.globe-lang-dropdown ul li:last-child {
    border-bottom: none !important;
}

/* === Links and spans inside items === */
.globe-lang-dropdown ul li a,
.globe-lang-dropdown ul li span {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    text-decoration: none !important;
    transition: background 0.12s !important;
    white-space: nowrap;
}

.globe-lang-dropdown ul li a:hover {
    background: #f5f5f5 !important;
}

/* === Current / active language === */
.globe-lang-dropdown ul li.current-lang,
.globe-lang-dropdown ul li.current-lang a,
.globe-lang-dropdown ul li.current-lang span {
    background: rgba(26, 115, 232, 0.063) !important;
    color: #1a73e8 !important;
    font-weight: 600 !important;
}

/* === Flags === */
.globe-lang-dropdown ul li img {
    width: 22px !important;
    height: auto !important;
    border-radius: 3px !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    flex-shrink: 0 !important;
}

/* === Language name text === */
.globe-lang-switcher span {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
}

/* Mobile overrides intentionally omitted for inline placement. */
