.cart-page {
    background: var(--colors-grey-light-2);
    padding: 40px 0 80px 0;

    &__box {
        display: flex;
        align-items: flex-start;
        gap: 20px;

        @include tablet {
            flex-direction: column;
        }
    }

    .cart-steps {
        width: 100%;

        &__list {
            padding: 20px;
            display: flex;
            align-items: center;
            background: var(--colors-white);
            margin-bottom: 20px;
            gap: 20px 40px;
            flex-wrap: wrap;
        }

        .cart-steps-item {
            display: flex;
            gap: 8px;

            &__num {
                font-family: var(--font3);
                font-weight: 500;
                font-size: 13px;
                line-height: 154%;
                color: var(--colors-primary2);

                border: 2px solid var(--colors-primary2);
                border-radius: 100px;
                width: 28px;
                height: 28px;

                display: flex;
                align-items: center;
                justify-content: center;
            }

            span {
                font-family: var(--font-family);
                font-weight: 500;
                font-size: 16px;
                line-height: 150%;
                color: var(--colors-grey2);
            }

            &.active {
                .cart-steps-item__num {
                    background: var(--colors-primary2);
                    color: #fff;
                }

                span {
                    font-family: var(--font-family);
                    font-weight: 500;
                    font-size: 16px;
                    line-height: 150%;
                    color: var(--colors-default);
                }
            }

            &.completed{
                .cart-steps-item__num {
                    color: transparent;
                    position: relative;
                    &::after{
                        position: absolute;
                        content: '';
                        display: block;
                        top: 4px;
                        left: 4px;
                        background-image: url(../img/icons/checked.svg);
                        width: 16px;
                        height: 16px;
                        background-repeat: no-repeat;
                        background-position: center;
                        background-size: 11px;
                    }
                }
            }
        }

    }


    .h-cart-main.h-cart {

        display: block !important;
        position: relative;
        box-shadow: none;
        top: auto;

        height: 100% !important;

        .prod-addon {
            margin-top: 10px;
            margin-bottom: 10px;
        }

        @include mobile {
            .h-cart__main {
                padding-bottom: 24px;
            }
        }

        @include desktop {
            min-width: 430px;

            &__main {
                height: 100%;
                overflow: auto;
                padding-bottom: 24px;
            }

            &__close {
                top: 15px;
                right: 15px;
            }

            &__title {
                font-size: 24px;
            }

            &__top {
                padding: 20px 15px 20px 15px;
            }

            &__main {
                padding: 40px 15px;
                padding-bottom: 120px;
            }

            &__pricebox {
                padding: 10px 0;
            }

            &__addons {
                padding: 10px 0;
                gap: 10px;
                margin-top: 8px;
            }

            &__price {
                font-size: 24px;
            }

            &__bottom {
                padding: 20px 0;
            }
        }

        @include tablet {
            width: 100%;
            min-width: 100%;
        }
    }

    .prod-item {
        @include desktop {
            padding: 15px;
            gap: 10px;
            align-items: flex-start;

            &__image {
                img {
                    width: 70px;
                }
            }

            &__main {
                gap: 8px;
            }

            &__top {
                gap: 4px;
            }

            &__title {
                font-size: 16px;
            }

            &__remove {
                min-width: 30px;
                max-width: 30px;
                min-height: 30px;
                max-height: 30px;

                svg {
                    width: 20px;
                    height: 20px;
                }
            }
        }

    }

    .prod-item-price {
        @include desktop {
            gap: 2px 10px;

            &__old {
                font-size: 12px;
            }

            &__current {
                font-size: 16px;
            }

        }
    }

    .prod-item-count {
        @include desktop {
            min-width: 90px;
            width: 90px;
            gap: 2px;
            padding: 4px 3px;

            &__btn {
                width: 25px;
                height: 25px;
            }
        }

    }



}



.cart-step {
    padding: 0 clamp(15px, 3.2vw, 40px);
    background: var(--colors-white);
    display: none;

    &.active{
        display: block;
    }
}

.main-form {
    max-width: 668px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
    padding-top: clamp(24px, 4.267vw, 40px);
    padding-bottom: clamp(24px, 4.267vw, 44px);

    &__title {
        font-family: var(--second-family);
        font-weight: 700;
        font-size: clamp(24px, 4vw, 36px);
        line-height: 140%;
        letter-spacing: 0.01em;
        text-transform: uppercase;
        text-align: center;
        color: var(--colors-default);
        padding: 10px 0;
    }

    &--v2 {
        max-width: 100%;
    }
}

.form-box-wrap {
    display: grid;
    gap: 24px;
}

.form-box {
    display: grid;
    gap: 24px;

    &__top {
        display: flex;
        align-items: center;
        gap: 24px;
        flex-wrap: wrap;
    }

    &__title {
        font-family: var(--font-family);
        font-weight: 600;
        font-size: 20px;
        line-height: 140%;
        color: #1f1f22;
    }
}

.address-options {
    display: flex;
    gap: 10px;

    width: calc(100% - 10px);

    .radio-group-item {
        .custom-radio-btn {
            font-size: 14px;
            padding: 5px 18px;
            min-width: 146px;
            display: flex;
            justify-content: center;

            @include sm-mobile {
                width: 100%;
            }
        }

        @include sm-mobile {
            min-width: 50%;
            min-width: 50%;
        }
    }

    @media (max-width: 375px) {
        flex-direction: column;
        width: 100%;
    }
}

.form-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;

    &--v2 {
        grid-template-columns: 100%;
    }

    @include sm-mobile {
        grid-template-columns: 100%;
    }
}

.input-item {

    position: relative;

    display: flex;
    align-items: center;

    &--textarea {
        align-items: flex-start;

        label {
            top: 12px;
        }
    }

    input {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 14px;
        color: var(--colors-default);
        background: #fff;

        border: 1px solid var(--colors-grey-light-1);
        padding: 12px 13px;

        &::placeholder {
            opacity: 0;
        }
    }

    select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 14px;
        color: var(--colors-default);
        background: #fff;

        border: 1px solid var(--colors-grey-light-1);
        padding: 12px 13px;

        &::placeholder {
            opacity: 0;
        }

        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        margin: 0;
        cursor: pointer;

        background-image: url(../img/icons/arr-down-black.svg);
        background-position: center right 13px;
        background-repeat: no-repeat;

    }

    textarea {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 14px;
        color: var(--colors-default);
        background: #fff;

        border: 1px solid var(--colors-grey-light-1);
        padding: 12px 13px;
        resize: none;
        min-height: 79px;

        &::placeholder {
            opacity: 0;
        }
    }

    label {
        position: absolute;
        left: 12px;
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 14px;
        color: var(--colors-grey2);
        pointer-events: none;
        transition: all 0.23s ease;
        top: 15px;

        .reqrd {
            color: var(--colors-accent);
        }
    }

    input:focus+label,
    input:not(:placeholder-shown)+label,
    textarea:focus+label,
    textarea:not(:placeholder-shown)+label {
        top: -8px;
        left: 10px;
        font-size: 12px;
        color: #444;
        background: white;
        padding: 0 4px;
    }

}


.form-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    .geqird-lbl {
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 16px;
        line-height: 150%;
        color: #000;

        span {
            color: var(--colors-accent);
        }
    }
}


.form-button {
    display: flex;
    justify-content: center;
}

.form-btn {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0.01em;
    color: var(--colors-white);
    background: #000;
    border: 1px solid #000;
    padding: 14px;
    min-width: 320px;
    transition: 0.23s;

    &:hover {
        opacity: 0.9;
    }

    @include mobile {
        min-width: 100%;
    }

    &--blue{
        background: var(--colors-primary);
        border-color: var(--colors-primary);
    }
}




.order-options-wrap{
    display: grid;
    gap: 11px;
    padding-bottom: 30px;
}


.order-option{
    display: grid;
    gap: 11px;

    &__details{
        background: rgba(18, 120, 237, 0.2);
        padding: 10px 20px;
        display: none;

        &.active{
            display: block;
        }
    }

    &__txt{
        font-family: var(--font-family);
        font-weight: 600;
        font-size: 16px;
        line-height: 120%;
        letter-spacing: 0.01em;
        color: var(--colors-default);
    }

    &__prc{
        display: inline-flex;
        font-family: var(--font-family);
        font-weight: 500;
        font-size: 14px;
        letter-spacing: 0.01em;
        color: var(--colors-primary);
        margin-top: 12px;
    }
}

.radio-item {
    position: relative;
    display: flex;
    align-items: center;

    input[type='radio'] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .custom-radio {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        cursor: pointer;
        user-select: none;
    }

    .radio-checkmark {
        min-width: 24px;
        max-width: 24px;
        min-height: 24px;
        max-height: 24px;
        background: rgba(54, 142, 240, 0.2);
        border: 1px solid var(--colors-primary, #368ef0);
        position: relative;
        transition: background-color 0.2s, border-color 0.2s;
        border-radius: 100px;
    }

    .radio-checkmark::after {
        content: "";
        position: absolute;
        width: 14px;
        height: 14px;
        border-radius: 100px;
        top: 4px;
        left: 4px;
        opacity: 0;
        transition: opacity 0.2s;
        background-color: var(--colors-white);
    }

    .label-text {
        font-family: var(--font-family, Arial);
        font-size: 16px;
        line-height: 150%;
        color: #000;
    }

    input[type='radio']:checked + .custom-radio .radio-checkmark {
        background: var(--colors-primary, #368ef0);
    }
    
    input[type='radio']:checked + .custom-radio .radio-checkmark::after {
        opacity: 1;
    }
    
}