/* Toggle Switch for Load Capacity Filter */

.voltride-filter-toggle {
    padding: 15px 0;
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.voltride-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.voltride-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.voltride-toggle-text {
    text-transform: inherit !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.2;
    color: var(--new-green, #0f3f36);
    flex-shrink: 0;
}

.voltride-toggle-switch {
    position: relative;
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

.voltride-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.voltride-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 20px;
}

.voltride-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.voltride-toggle-input:checked + .voltride-toggle-slider {
    background-color: #2d5f4f;
}

.voltride-toggle-input:checked + .voltride-toggle-slider:before {
    transform: translateX(20px);
}

.voltride-toggle-input:focus + .voltride-toggle-slider {
    box-shadow: 0 0 1px #2d5f4f;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .voltride-toggle-text {
        font-size: 13px;
    }
    
    .voltride-toggle-switch {
        width: 36px;
        height: 18px;
    }
    
    .voltride-toggle-slider {
        border-radius: 18px;
    }
    
    .voltride-toggle-slider:before {
        height: 14px;
        width: 14px;
    }
    
    .voltride-toggle-input:checked + .voltride-toggle-slider:before {
        transform: translateX(18px);
    }
}
