/* PolyTranslator Language Switcher Styles */
.poly-switcher-floating {
    position: fixed !important;
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    user-select: none !important;
    -webkit-font-smoothing: antialiased !important;
}
.poly-switcher-floating.poly-pos-bottom-left {
    bottom: 24px !important;
    left: 24px !important;
}
.poly-switcher-floating.poly-pos-bottom-right {
    bottom: 24px !important;
    right: 24px !important;
}
.poly-switcher-inline {
    position: relative !important;
    display: inline-block !important;
    font-family: inherit !important;
    font-size: 13px !important;
}

/* Reset any theme button styles */
.poly-switcher-container button.poly-switcher-btn,
button.poly-switcher-btn,
.poly-switcher-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #0f172a !important; /* Premium Dark Navy */
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 9999px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    text-decoration: none !important;
    height: auto !important;
    min-height: unset !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.poly-switcher-container button.poly-switcher-btn:hover,
.poly-switcher-btn:hover,
.poly-open .poly-switcher-btn {
    background: #1e293b !important;
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

.poly-current-code {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
}

.poly-flag {
    display: inline-block !important;
    vertical-align: middle !important;
    border-radius: 2px !important;
    box-shadow: 0 0 1px rgba(0,0,0,0.6) !important;
    flex-shrink: 0 !important;
}

.poly-chevron {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    opacity: 0.8 !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.poly-open .poly-chevron {
    transform: rotate(180deg) !important;
}

.poly-switcher-dropdown {
    position: absolute !important;
    bottom: calc(100% + 10px) !important;
    left: 0 !important;
    min-width: 175px !important;
    background: #0f172a !important;
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    padding: 6px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(8px) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none !important;
    z-index: 1000000 !important;
    box-sizing: border-box !important;
}
.poly-pos-bottom-right .poly-switcher-dropdown {
    left: auto !important;
    right: 0 !important;
}
.poly-open .poly-switcher-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}
.poly-dropdown-header {
    padding: 6px 10px 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    letter-spacing: 0.8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
}
.poly-lang-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.poly-lang-item {
    margin: 0 !important;
    padding: 0 !important;
}
.poly-lang-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    line-height: 1.4 !important;
}
.poly-lang-link:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}
.poly-lang-item.poly-active .poly-lang-link {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}
.poly-item-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
}
.poly-check-icon {
    font-size: 13px !important;
    font-weight: bold !important;
    color: #10b981 !important;
}
.poly-lang-item.poly-unavailable {
    opacity: 0.5 !important;
}
.poly-lang-badge-soon {
    font-size: 9px !important;
    background: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.65) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
}
@media (max-width: 768px) {
    .poly-switcher-floating.poly-pos-bottom-left {
        bottom: 18px !important;
        left: 16px !important;
    }
    .poly-switcher-floating.poly-pos-bottom-right {
        bottom: 18px !important;
        right: 16px !important;
    }
    .poly-switcher-container button.poly-switcher-btn,
    .poly-switcher-btn {
        padding: 7px 12px !important;
        font-size: 12px !important;
    }
}
