/* Global Horizontal Scroll Fix for all layouts including widgets */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.landpage-widgets {
    position: fixed;
    inset-block-start: 120px;
    inset-inline-start: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: none; /* Only children should be clickable */
}

.landpage-widgets > * {
    pointer-events: auto;
}

[dir="rtl"] .landpage-widgets {
    inset-inline-start: auto;
    inset-inline-end: 24px;
}

/* Premium Floating Language Switcher Overrides */
.store-lang-switcher {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-lang-switcher:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-current-btn {
    padding: 10px 18px !important;
    color: white !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
}

.lang-flag {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
}

.lang-arrow {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.lang-current-btn.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    inset-inline-start: 0;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    margin-top: 12px !important;
    min-width: 140px;
    overflow: hidden;
}

.lang-dropdown-inner {
    padding: 4px;
}

.lang-item {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 16px !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    font-size: 14px !important;
    border-radius: 10px !important;
}

.lang-item:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    color: white !important;
}

.lang-item.is-active {
    color: #6366f1 !important;
    font-weight: 700 !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .landpage-widgets {
        inset-block-start: auto;
        inset-block-end: 100px;
        inset-inline-start: 16px;
    }
    
    [dir="rtl"] .landpage-widgets {
        inset-inline-start: auto;
        inset-inline-end: 16px;
    }

    .lang-dropdown {
        inset-block-end: 100%;
        inset-block-start: auto;
        margin-top: 0;
        margin-bottom: 12px;
    }
}
