/* ============================================ */
/* GW AUTH GATEWAY - USER SETTINGS STYLES       */
/* ============================================ */

.gw-toggle-wrap {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.04) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gw-toggle-wrap:last-child {
    border-bottom: none !important;
}

.gw-toggle-label {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    flex: 1 !important;
}

.gw-toggle-label .gw-toggle-title {
    font-size: clamp(14px, 1vw, 15px) !important;
    font-weight: 600 !important;
    color: var(--gwag-text-primary, #f5e6a3) !important;
}

.gw-toggle-label .gw-toggle-desc {
    font-size: clamp(11px, 0.8vw, 12px) !important;
    color: var(--gwag-text-secondary, #b8a87e) !important;
}

.gw-toggle-label .gw-toggle-admin-disabled {
    font-size: 11px !important;
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.06) !important;
    padding: 2px 10px !important;
    border-radius: 10px !important;
    display: inline-block !important;
    border: 1px solid rgba(245, 158, 11, 0.08) !important;
}

.gw-switch {
    position: relative !important;
    display: inline-block !important;
    width: 48px !important;
    height: 26px !important;
    flex-shrink: 0 !important;
}

.gw-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.gw-switch .gw-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(255, 255, 255, 0.10) !important;
    transition: 0.3s !important;
    border-radius: 34px !important;
    border: 1px solid rgba(212, 175, 55, 0.08) !important;
}

.gw-switch .gw-slider::before {
    content: "" !important;
    position: absolute !important;
    height: 20px !important;
    width: 20px !important;
    left: 2px !important;
    bottom: 2px !important;
    background-color: #9a8b6e !important;
    transition: 0.3s !important;
    border-radius: 50% !important;
}

.gw-switch input:checked + .gw-slider {
    background-color: var(--gwag-gold, #d4af37) !important;
    border-color: var(--gwag-gold, #d4af37) !important;
}

.gw-switch input:checked + .gw-slider::before {
    transform: translateX(22px) !important;
    background-color: #1a1a2e !important;
}

.gw-switch input:disabled + .gw-slider {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

body.gwag-theme-light .gw-toggle-label .gw-toggle-title,
body.gw-theme-light .gw-toggle-label .gw-toggle-title {
    color: #111827 !important;
}

body.gwag-theme-light .gw-toggle-label .gw-toggle-desc,
body.gw-theme-light .gw-toggle-label .gw-toggle-desc {
    color: #6b7280 !important;
}

body.gwag-theme-light .gw-toggle-wrap,
body.gw-theme-light .gw-toggle-wrap {
    border-bottom-color: #e5e7eb !important;
}

body.gwag-theme-light .gw-switch .gw-slider,
body.gw-theme-light .gw-switch .gw-slider {
    background-color: #d1d5db !important;
    border-color: #d1d5db !important;
}

body.gwag-theme-light .gw-switch .gw-slider::before,
body.gw-theme-light .gw-switch .gw-slider::before {
    background-color: #ffffff !important;
}

body.gwag-theme-light .gw-switch input:checked + .gw-slider,
body.gw-theme-light .gw-switch input:checked + .gw-slider {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

body.gwag-theme-light .gw-switch input:checked + .gw-slider::before,
body.gw-theme-light .gw-switch input:checked + .gw-slider::before {
    background-color: #ffffff !important;
}

@media (max-width: 480px) {
    .gw-toggle-wrap {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .gw-switch {
        width: 44px !important;
        height: 24px !important;
    }
    .gw-switch .gw-slider::before {
        height: 18px !important;
        width: 18px !important;
    }
    .gw-switch input:checked + .gw-slider::before {
        transform: translateX(20px) !important;
    }
}