/* --- CSS for the Archive/Reactivate Switch --- */

/* The container that holds the switch and its label */
.switch-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

/* Hides the default checkbox */
.switch-control input[type="checkbox"] {
    height: 0;
    width: 0;
    display: none;
}

/* The label that we style to look like a switch */
.switch-control label {
    cursor: pointer;
    text-indent: -9999px;
    width: 50px;
    height: 18px;
    background: #aeaeae;
    display: block;
    border-radius: 100px;
    position: relative;
    margin: 0;
}


.switch-control .switch-label {
    font-size: 15px;
    transition: all 0.3s ease;
}

/* --- DEFAULT STATE (when switch is OFF / Active) --- */

/* Make the "Active" label bold and dark */
.switch-control .switch-label-active {
    font-weight: bold;
    color: #333;
}

/* Make the "Archived" label normal and grey */
.switch-control .switch-label-archived {
    font-weight: normal;
    color: #999;
}

/* --- CHECKED STATE (when switch is ON / Archived) --- */
/* When checked, make the "Active" label normal and grey */
.switch-control:has(input:checked) .switch-label-active {
    font-weight: normal;
    color: #999;
}

/* When checked, make the "Archived" label bold and dark */
.switch-control:has(input:checked) .switch-label-archived {
    font-weight: bold;
    color: #333;
}

/* the sliding part of the switch */
.switch-control label:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 90px;
    transition: 0.3s;
    transform: translateY(-50%);
}

/* When the checkbox is CHECKED, change the label's background */
.switch-control input:checked + label {
    background: #b2c2a8;
}

/* When the checkbox is CHECKED, move the thumb to the right */
.switch-control input:checked + label:after {
    /*left: calc(100% - 2px);*/
    left: 100%;
    top: 50%;
    transform: translateX(-100%) translateY(-50%);
    background: #839d73;
    border: none;
}

.switch-control label:active:after {
    width: 32px;
}

/*
* Plugin Default Switches for Visibility
*/
/* Remove Plugin Styling */
.nmgr-checkbox-switch>:checked+label::before {
    border: none !important;
}
.nmgr-checkbox-switch input:checked + label:after {
    box-shadow: none !important;
}
.nmgr-checkbox-switch label:before {
    content: none !important;
}
.nmgr-checkbox-switch label {
    cursor: pointer;
    text-indent: -9999px;
    width: 50px !important;
    height: 18px !important;
    background: #aeaeae !important;
    display: block !important;
    border-radius: 100px !important;
    position: relative !important;
    opacity: 1;
    margin: 0 !important;
}

/* The "thumb" or the sliding part of the switch */
.nmgr-checkbox-switch label:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 24px !important;
    height: 24px !important;
    background: #cbcbcb;
    border-radius: 90px;
    transition: 0.3s;
    transform: translateY(-50%) !important;
}

.nmgr-checkbox-switch label:after:hover {
    width: 200px !important;
    height: 200px !important;
}

/* When the checkbox is CHECKED, change the label's background */
.nmgr-checkbox-switch input:checked + label {
    background: #b2c2a8 !important;
}

/* When the checkbox is CHECKED, move the thumb to the right */
.nmgr-checkbox-switch input:checked + label:after {
    /*left: calc(100% - 2px);*/
    left: 50%;
    top: 50%;
    transform: translateX(-100%) translateY(-50%);
    background: #839d73;
}

.nmgr-checkbox-switch label:active:after {
    width: 32px;
}