/* Toggle Switch Styles */

.toggle-switch {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: row !important;
            flex-direction: row !important;
    -webkit-box-align: center !important;
        -ms-flex-align: center !important;
            align-items: center !important;
    gap: var(--spacing-md) !important;
    white-space: nowrap !important;
    -ms-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
    width: auto !important;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    display: block !important;
    position: relative;
    width: 52px !important;
    height: 28px !important;
    background: #bbb;
    border-radius: 14px;
    cursor: pointer;
    -webkit-transition: background 0.3s ease;
    transition: background 0.3s ease;
    -ms-flex-negative: 0 !important;
        flex-shrink: 0 !important;
    -webkit-box-ordinal-group: 2 !important;
        -ms-flex-order: 1 !important;
            order: 1 !important;
}

.toggle-slider::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 2px;
    top: 2px;
    background: var(--white);
    border-radius: 50%;
    -webkit-transition: left 0.3s ease;
    transition: left 0.3s ease;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary-blue);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::after {
    left: 26px;
}

.toggle-label {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 20px !important;
    text-align: center;
    -ms-flex-negative: 0 !important;
        flex-shrink: 0 !important;
    white-space: nowrap !important;
    -webkit-box-ordinal-group: 3 !important;
        -ms-flex-order: 2 !important;
            order: 2 !important;
    display: inline-block !important;
}
