.toggle-container {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 352px;
    height: 43px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    transition: 0.5s;
    border: 1px solid #DEDEDE;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: right;
    font-size: 14px;
    color: white;
}

.slider:before {
    position: absolute;
    content: "";
    height: 39px;
    width: 174px;
    background-color: #09C3B2;
    transition: 0.5s;
    border-radius: 34px;
}

input:checked+.slider {
    background-color: white;
}

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

.slider-text {
    position: absolute;
    transition: opacity 0.4s;
}

.monthly {
    left: 55px;
    color: #000000;
    opacity: 50%;
    font-weight: 600;
    font-size: 16px;
}

.yearly {
    right: 15px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

input:checked+.slider .yearly {
    color: #000000;
    opacity: 50%;
}

input:checked+.slider .monthly {
    color: white;
    opacity: 1;
}