.modal {
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 1.25rem;
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.modal_open {
    display: flex;
}

.modal__box {
    background: #fff!important;
    width: 44.1875rem;
    max-width: 100%;
    max-height: 100dvh;
    padding: 4.375rem 4.6875rem 3.75rem;
    position: relative;
    overflow-y: auto;
}

.modal__close {
    cursor: pointer;
    background: 0 0;
    border: none;
    justify-content: center;
    align-items: center;
    width: 2.0625rem;
    height: 2.0625rem;
    padding: 0;
    display: flex;
    position: absolute;
    top: 1.0625rem;
    right: 1.0625rem;
}

.modal__closeico {
    background-color: #c4c8d4;
    width: 1.1875rem;
    height: 1.1875rem;
    display: block;
    -webkit-mask-image: url(images/close.svg);
    mask-image: url(images/close.svg);
    -webkit-mask-position: 50%;
    mask-position: 50%;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.modal__close:hover .modal__closeico {
    background-color: #358393;
}

.modal__title {
    text-align: center;
    text-transform: uppercase;
    color: #1b1b1b;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.111;
}

.modal__sub {
    text-align: center;
    color: #1b1b1b;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.modal__fields {
    flex-direction: column;
    margin-bottom: 1.125rem;
    display: flex;
}

.modal__input {
    color: #404a5a;
    background: #e0e4ef;
    border: .0625rem solid #e0e4ef;
    border-radius: 0;
    outline: none;
    width: 100%;
    height: 3.375rem;
    margin-bottom: 1rem;
    padding-left: 1.0625rem;
    padding-right: 1.0625rem;
    font-size: .875rem;
    font-style: normal;
    font-weight: 500;
    display: block;
}

.modal__input:focus {
    outline: none;
    border-color: #358393;
}

.modal__checks {
    flex-direction: column;
    gap: 0.4375rem;
    margin-bottom: 2.4375rem;
    display: flex;
}

.modal__send {
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    background: #358393;
    border: none;
    justify-content: center;
    align-items: center;
    width: 13.25rem;
    height: 3.125rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.111;
    display: flex;
}

.modal__send:hover {
    background: #4996a5;
}

.modal__send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.agree {
    cursor: pointer;
    color: #404a5a;
    align-items: center;
    gap: 0.8125rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
}

.agree__tick {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.agree__mark {
    border: 0.125rem solid #358393;
    border-radius: 0.0625rem;
    flex-shrink: 0;
    width: 1.0625rem;
    height: 1.0625rem;
    position: relative;
}

.agree__tick:checked+.agree__mark::after {
    content: "";
    border-bottom: 0.125rem solid #358393;
    border-left: 0.125rem solid #358393;
    width: 0.6875rem;
    height: 0.375rem;
    position: absolute;
    top: 0.125rem;
    left: 0.0625rem;
    transform: rotate(-45deg);
}

.agree a {
    color: #404a5a;
    text-decoration: underline;
}

.agree_error {
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 4px 8px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-item__img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 12px;
}

.order-item__name {
    flex: 1;
    font-size: 14px;
}

.order-item__qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-item__del {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
}

.order-item__del:hover {
    color: #e74c3c;
}

.order-total {
    padding: 12px 0;
    font-weight: bold;
    text-align: right;
    font-size: 16px;
}

.order-empty {
    padding: 20px;
    text-align: center;
    color: #999;
}

.order-error {
    color: #e74c3c;
    padding: 10px 0;
    font-size: 14px;
}

.shop__cart {
    margin-bottom: 0.625rem;
    position: relative;
    top: 0;
    right: 0;
}

.shop__basket {
    cursor: pointer;
    background: #fff;
    border: none;
    justify-content: center;
    align-items: center;
    width: 5.0625rem;
    height: 5.0625rem;
    display: flex;
    position: relative;
    box-shadow: 0 1.875rem 6.25rem -1.3125rem #b2b9cd;
}

.shop__basket:hover {
    background: #f5f5f5;
}

.shop__ico {
    background-color: #358393;
    width: 2.25rem;
    height: 2.25rem;
    -webkit-mask-image: url(images/cart.svg);
    mask-image: url(images/cart.svg);
    -webkit-mask-position: 50%;
    mask-position: 50%;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.shop__badge {
    color: #fff;
    background: #358393;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    position: absolute;
    top: -0.75rem;
    right: 0;
}

.qty {
    background: #e0e4ef;
    flex-shrink: 0;
    align-items: center;
    width: 5.5rem;
    height: 2.625rem;
    display: flex;
}

.qty__sub,
.qty__add {
    cursor: pointer;
    background: 0 0;
    border: none;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 1.8125rem;
    height: 2.625rem;
    padding: 0;
    display: flex;
}

.qty__ico {
    background-color: #358393;
    width: 0.875rem;
    display: block;
    -webkit-mask-position: 50%;
    mask-position: 50%;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.qty__sub .qty__ico {
    height: 0.125rem;
    -webkit-mask-image: url(images/minus.svg);
    mask-image: url(images/minus.svg);
}

.qty__add .qty__ico {
    height: 0.875rem;
    -webkit-mask-image: url(images/plus.svg);
    mask-image: url(images/plus.svg);
}

.qty__val {
    color: #358393;
    text-align: center;
    flex: 1;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
}

.line {
    border: .0625rem solid #e0e4ef;
    align-items: center;
    height: 7.9375rem;
    margin-bottom: 1.875rem;
    display: flex;
    overflow: hidden
}

.line__img {
    flex-shrink: 0;
    width: 7.9375rem;
    height: 7.9375rem;
    margin-left: .875rem;
    overflow: hidden
}

.line__img img {
    -o-object-fit: contain;
    object-fit: contain;
    width: 100%;
    height: 100%
}

.line__name {
    color: #1b1b1b;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
    padding-left: 1.1875rem;
    padding-right: 1rem;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    overflow: hidden
}

.line__del {
    cursor: pointer;
    background: #e0e4ef;
    border: none;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 2.625rem;
    height: 2.625rem;
    margin-left: 0.5625rem;
    margin-right: 1.625rem;
    padding: 0;
    display: flex;
}

.line__delico {
    background-color: #404a5a;
    width: 0.75rem;
    height: 1rem;
    display: block;
    -webkit-mask-image: url(images/trash.svg);
    mask-image: url(images/trash.svg);
    -webkit-mask-position: 50%;
    mask-position: 50%;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.line__del:hover .line__delico {
    background-color: #358393;
}

@media(max-width: 760px) {
    .line {
        flex-flow: wrap;
        height: auto;
        padding: 1.25rem;
        display: flex;
        gap: .8rem;
        justify-content: center;
    }

    .line__name {
        flex: unset;
        width: 100%;
        padding-left: 0;
        font-size: 1rem;
        text-align: center;
        padding-right: 0;
    }

    .line__del {
        margin: 0;
    }
}

@media(max-width: 640px) {
    .modal__box {
        padding: 3.125rem 1.25rem 2.5rem
    }

    .modal__title {
        font-size: 1.5rem
    }
}

.order-btn__action {
    cursor: pointer;
}
