.custom-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgb(15 23 42 / 5%);
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.custom-switch-wrapper .custom-switch{

}
.custom-switch-wrapper label {
    display: block;
    flex: 1;
    position: relative;
    bottom: 0;
    margin-right: 0;
    margin-bottom: 0;
    color: var(--primary);
    font-size: 16px !important;
    line-height: 1.3;
}
.custom-switch-wrapper label span {
    display: inline-block;
    margin-right: 5px;
}
.custom-switch-wrapper:hover label span {
    color: #e99e00;
}
.custom-switch-wrapper:hover {
    border-color: rgba(14, 165, 233, 0.32);
    box-shadow: 0 12px 28px rgb(15 23 42 / 7%);
}
.custom-switch.toggle-button-cover
{
    display: block;
    flex: 0 0 84px;
    position: relative;
    width: 84px;
    height: 34px;
    box-sizing: border-box;
}

.custom-switch .button-cover
{
    height: 34px;
    /*margin: 20px;*/
    background-color: #fff;
    /*box-shadow: 0 10px 20px -8px #c5d6d6;*/
    border-radius: 4px;
}

/*.custom-switch .button-cover:before
{
    counter-increment: button-counter;
    content: counter(button-counter);
    position: absolute;
    right: 0;
    bottom: 0;
    color: #d7e3e3;
    font-size: 12px;
    line-height: 1;
    padding: 5px;
}*/

.custom-switch .button-cover,
.custom-switch .knobs,
.custom-switch .layer
{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.custom-switch .button
{
    position: relative;
    top: 50%;
    width: 80px;
    height: 35px;
    margin: -17px auto 0 auto;
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.custom-switch .button.r,
.custom-switch .button.r .layer
{
    border-radius: 100px;
}

.custom-switch .button.b2
{
    border-radius: 2px;
}

.custom-switch .checkbox
{
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.custom-switch .knobs
{
    z-index: 2;
}

.custom-switch .layer
{
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
    transition: 0.25s ease all;
    z-index: 1;
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.32),
        inset 0 1px 2px rgba(15, 23, 42, 0.06),
        0 1px 2px rgba(15, 23, 42, 0.04);
}

.custom-switch .layer:before,
.custom-switch .layer:after
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.custom-switch .layer:before
{
    content: 'NO';
    left: 12px;
    color: #94a3b8;
}

.custom-switch .layer:after
{
    content: 'YES';
    right: 10px;
    color: #94a3b8;
}



/* Button 3 */
.custom-switch .custom-checkbox-btn .knobs:before
{
    content: 'NO';
    position: absolute;
    top: 4px;
    left: 3px;
    width: 36px;
    height: 27px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    padding: 8px 4px;
    background: linear-gradient(135deg, #f43f5e 0%, #ef4444 100%);
    border-radius: 999px;
    box-shadow:
        0 5px 12px rgba(244, 63, 94, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: 0.22s ease all, left 0.22s cubic-bezier(0.18, 0.89, 0.35, 1.15);
}

.custom-switch .custom-checkbox-btn .checkbox:active + .knobs:before
{
    width: 44px;
    border-radius: 999px;
}

.custom-switch .custom-checkbox-btn .checkbox:checked:active + .knobs:before
{
    margin-left: -7px;
}

.custom-switch .custom-checkbox-btn .checkbox:checked + .knobs:before
{
    content: 'YES';
    left: 40px;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.custom-switch .custom-checkbox-btn .checkbox:checked ~ .layer
{
    background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 100%);
    box-shadow:
        inset 0 0 0 1px rgba(37, 99, 235, 0.18),
        inset 0 1px 2px rgba(15, 23, 42, 0.05),
        0 1px 2px rgba(15, 23, 42, 0.04);
}

.custom-switch .custom-checkbox-btn .checkbox:checked ~ .layer:before
{
    color: #94a3b8;
}

.custom-switch .custom-checkbox-btn .checkbox:checked ~ .layer:after
{
    color: #0ea5e9;
}

.custom-switch .custom-checkbox-btn .checkbox:focus-visible ~ .layer
{
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.14),
        inset 0 0 0 1px rgba(37, 99, 235, 0.22);
}
