.modal-background {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: var(--background-backdrop);
}

.body-inactive {
    overflow: hidden;
    height: 100vh;
}

@media screen and (min-width: 900px) {
    .body-inactive {
        padding-right: 17px;
    }
}

.modal {
    position: fixed;
    background-color: var(--background-body);
    z-index: 11;
    width: 768px;
    border-radius: 40px;
    padding: 16px;
    left: calc(50vw - 768px / 2 - 17px);
    top: calc(50vh - 472px / 2);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.modal-inactive {
    top: -5000px;
}

.modal-button {
    display: flex;
    padding: 8px 16px 8px 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.modal .car-img-wrapper-modal:hover img {
    transform: scale(0.91);
    transition: 1s;
}

.modal-description {
    width: 438px;
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.modal-name-wrapper {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.car-img-wrapper-modal {
    width: 310px;
    height: 310px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.modal-size {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.modal-btn-crl {
    display: flex;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    background-color: var(--border-light);
    border-radius: 100px;
    transition: 0.5s;
}

.modal-size-buttons-wrapper {
    display: flex;
    gap: 8px;
}

.modal-total-wrapper {
    display: flex;
    justify-content: space-between;
}

.modal-info-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
}

.modal-btn-close {
    padding: 8px;
    transition: 0.5s;
    border-color: var(--border-dark);
}

.modal-button-active {
    border: 1px solid var(--background-container);
    background-color: var(--background-container);
    color: var(--text-light);
    transition: 0.5s;
}
.modal-button-active .modal-btn-crl {
    background-color: var(--background-body);
    transition: 0.5s;
}

@media (hover: hover) and (pointer: fine) {
    .modal-button:hover .modal-btn-crl {
        background-color: var(--background-body);
        transition: 0.5s;
    }
}

.modal-button {
    transition: 0.5s;
}

@media (max-width: 900px) {
    .modal {
        width: 656px;
        padding: 16px;
        left: calc(50vw - 688px / 2);
        top: calc(50vh - 594px / 2);
        gap: 20px;
    }
    .modal-inactive {
        top: -5000px;
    }
    .modal-size-buttons-wrapper {
        flex-wrap: wrap;
    }
    .modal-description {
        width: 326px;
    }
}

@media (max-width: 700px) {
    .modal {
        width: 310px;
        padding: 16px;
        left: calc(50vw - 342px / 2);
        top: calc(50vh - 594px / 2);
        gap: 20px;
    }
    .modal-inactive {
        top: -5000px;
    }
    .modal-img {
        display: none;
    }
    .car-img-wrapper-modal {
        display: none;
    }
}