.pear-switch-cover {
    height: 50px;
    margin: 20px;
    background-color: #fff;
    border-radius: 4px;
}

.pear-switch-cover:before {
    position: absolute;
    color: #d7e3e3;
    font-size: 12px;
    line-height: 1;
    padding: 10px
}

.pear-switch-cover, .switch-tile, .switch-overlay {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.pear-switch-button {
    position: relative;
    height: fit-content;
    margin: -20px auto 0 auto;
    overflow: hidden;
}

.pear-switch-button.r, .pear-switch-button.r .switch-overlay {
    border-radius: 100px;
}

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

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

.switch-tile {
    z-index: 2;
}

.switch-overlay {
    width: 100%;
    background-color: #ebf7fc;
    transition: 1s ease all;
    z-index: 1;
    border-bottom: 1px solid var(--dark-pear-green);
}

.pear-switch .switch-tile:before,
.pear-switch .switch-tile:after,
.pear-switch .switch-tile span {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    padding: 9px 4px;
    border-radius: 2px;
    transition: 0.3s ease all;
}

.pear-switch .switch-tile:before {
    content: "";
    background-color: var(--pear-blue-grey);
}

.pear-switch .switch-tile:after {
    right: 4px;
    color: #4e4e4e;
}

.pear-switch .switch-tile span {
    display: inline-block;
    color: #fff;
    z-index: 1;
    border-bottom: 0;
}

.pear-switch .pear-switch-checkbox:checked + .switch-tile span {
    color: #4e4e4e;
}

.pear-switch .pear-switch-checkbox:checked + .switch-tile:before {
    left: 50%;
    background-color: var(--secondary-pink);
}

.pear-switch .pear-switch-checkbox:checked + .switch-tile:after {
    color: #fff;
}

.pear-switch .pear-switch-checkbox:checked ~ .switch-overlay {
    background-color: #fcebeb;
    border-bottom: 1px solid var(--dark-pear-green);
}