﻿/*--Окно заказа товара--*/
.window {
    display: block;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
    animation-name: zoom;
    animation-duration: 0.3s;
    visibility: hidden;
}

@keyframes zoom {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.modalOrder {
    position: absolute;
    width: 400px;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
}

.modalOptions {
    position: absolute;
    width: 400px;
    height: 540px;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
}

.close {
    position: absolute;
    height: 20px;
    width: 20px;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.close:hover {
    transform: rotate(90deg);
    transition: .5s;
}

.modalWrapper {
    padding: 30px;
    text-align: center;
}

.title {
    font-size: 30px;
}

.productInfoOrder {
    margin-top: 25px;
    display: grid;
    grid-template-rows: 3fr 1fr;
    height: 180px;
    align-items: center;
    justify-items: center;
}

.productImg {
    position: relative;
    height: 100%;
    width: 100%;
}

.productImg img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 100%;
    max-width: 100%;
}

.productOrderTitle {
    font-weight: 600;
}

/*--Текстовые поля формы OrderModal для заказа товара (кастомный товар)--*/
.fieldOrderQuantity {
    width: 100%;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid #b9b9b9;
    box-sizing: border-box;
    outline: none;
    text-align: center;
    font-size: 16px;
}

.fieldLabel {
    text-align: start;
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 15px;
}

.fieldOrderQuantityError {
    width: 100%;
    height: 40px;
    background: #ffcfcf;
    border: 1px solid #FF7171;
    box-sizing: border-box;
    outline: none;
    text-align: center;
    font-size: 16px;
}

.errorMessage {
    position: absolute;
    top: 7px;
    right: 5px;
    font-size: 12px;
    color: #FF7171;
    visibility: hidden;
}

/*--Checkbox "Согласен на обработку данных"--*/
.checkbox {
    text-align: start;
    position: relative;
    margin-top: 30px;
}

.checkbox a {
    display: block;
    color: #0880AE;
    text-decoration: none;
}

.checkboxOrder {
    text-align: start;
    position: relative;
    margin-top: 30px;
}

.checkboxLabelOrder {
    white-space: pre-wrap;
    font-size: 14px;
    display: inline-block;
}

.checkboxOrder a {
    display: block;
    color: #0880AE;
    text-decoration: none;
}

.customCheckboxOrder {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.customCheckboxOrder+label {
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.customCheckboxOrder+label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    flex-grow: 0;
    background: #FFFFFF;
    border: 1px solid #b9b9b9;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(44, 39, 56, 0.04);
    border-radius: 4px;
    vertical-align: center;
    margin-right: 10px;
}

.customCheckboxOrder:checked+label::before {
    border: 2px solid #0880AE;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(44, 39, 56, 0.04);
    border-radius: 4px;
    background-image: url('/ViewsReact/Assets/images/Home/Product/icons/check.svg');
}

/* Media
==================== */
@media (max-width: 640px) {
    .modalOptions, .modalOrder {
        max-width: 90%;
        max-height: 80%;
    }
}

@media (max-width: 320px) {
    .modalOrder {
        height: 500px;
        min-width: 250px;
    }

    .modalOptions {
        height: 490px;
        min-width: 250px;
    }

    .title {
        font-size: 20px;
    }

    .productInfo {
        margin-top: 0;
    }

    .productInfoOrder {
        margin-top: 10px;
        height: 100px;
    }

    .productOrderTitle {
        font-size: 15px;
    }
}
