@use "../theme/colors" as *;

.switcher {
    display: flex;
    justify-content: center;

    .switch-container {
        display: flex;
        border-radius: 50px;
        background: #d1d0de;
        position: relative;
        height: 60px;

        .button-cover {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            background: white;
            z-index: 2;
            border: 2px solid $main-color;
            width: 170px;

            &.active {
                left: 50%;
            }
        }

        > div {
            padding: 1rem;
            cursor: pointer;
            background: #d1d0de;
            position: relative;
            width: 170px;
            text-align: center;
            border-radius: 50px;
            transition: 0.3s ease all;

            span:not(.counter) {
                color: black !important;
                z-index: 3;
                position: relative;
            }
        }
    }

    .counter {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 1rem;
        font-weight: bold;
        background: red;
        border-radius: 100%;
        height: 1.5rem;
        width: 1.5rem;
        z-index: 3;
    }
}
