.bapf_toggle_item input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}
.bapf_toggle_item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.bapf_toggle_switch {
    position: relative !important;
    display: inline-block !important;
    width: 32px !important;
    height: 18px !important;
    background-color: #ddd !important;
    border-radius: 12px !important;
    transition: background-color 0.3s ease !important;
    cursor: pointer !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
    order: 999 !important;
}
.bapf_toggle_switch::before {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 14px !important;
    height: 14px !important;
    background-color: white !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
.bapf_toggle_item input[type="checkbox"]:checked + .bapf_toggle_switch {
    background-color: #e2be6a !important;
}
.bapf_toggle_item input[type="checkbox"]:checked + .bapf_toggle_switch::before {
    transform: translateX(20px) !important;
}
.bapf_toggle_compact .bapf_toggle_switch {
    width: 32px !important;
    height: 18px !important;
}
.bapf_toggle_compact .bapf_toggle_switch::before {
    width: 14px !important;
    height: 14px !important;
}
.bapf_toggle_compact input[type="checkbox"]:checked + .bapf_toggle_switch::before {
    transform: translateX(16px) !important;
}