.cth-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    position: relative;
}

.cth-toggle-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 30px;  /* Adjusted width to 30px */
    height: 14px; /* Adjusted height to match toggle */
}

.cth-toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cth-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.63);  /* Set background color */
    transition: 0.4s;
    border-radius: 7px;  /* Rounded toggle */
}

.cth-toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;  /* Adjusted handle size */
    width: 12px;   /* Adjusted handle size */
    border-radius: 50%;  /* Rounded handle */
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .cth-toggle-slider {
    /* No color change, stays the same with background rgba */
}

input:checked + .cth-toggle-slider:before {
    transform: translateX(16px);  /* Adjusted for smaller toggle */
}

/* Adjust the word styling */
.cth-toggle-label span {
    font-family: 'Poppins', sans-serif;  /* Set font family to Poppins */
    font-size: 16px;  /* Font size set to 16px */
    font-weight: 400;
    transition: font-weight 0.4s ease;
}

input:checked + .cth-toggle-slider + span:nth-child(2) {
    font-weight: 700;  /* Active side bold */
}

input:not(:checked) + .cth-toggle-slider + span:nth-child(1) {
    font-weight: 700;  /* Inactive side bold */
}

/* Style the words on either side of the toggle */
.cth-toggle-container span {
    position: absolute;
    top: -30px; /* Adjusted vertical positioning */
    font-family: 'Poppins', sans-serif;  /* Set font family to Poppins */
    font-size: 16px;  /* Font size set to 16px */
    width: 50%;
    text-align: center;
}

.cth-toggle-container span:first-child {
    left: 0;
}

.cth-toggle-container span:last-child {
    right: 0;
}
