@import "../../styles/variables.scss";

.toggleSlot {
    width: 60px;
    height: 32px;
    border-radius: 50px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: background-color 0.3s ease;
    outline: none;

    @media (max-width: 767px) {
        width: 40px;
        height: 22px;
    }

    &.active {
        background-color: #cfc5a5;

        .iconWrapper {
            transform: translateX(28px);

            @media (max-width: 767px) {
                transform: translateX(18px);
            }
        }
    }
}

.iconWrapper {
    width: 24px;
    height: 24px;

    @media (max-width: 767px) {
        width: 14px;
        height: 14px;
    }
    background-color: $white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    .icon {
        color: $dark-color;
    }
}