/* doc-project | projet/assets/css/order-modal.css | styles dedies a la sur-modale de commande, a son layout configurateur + recapitulatif et a son animation d entree laterale */
.has-order-modal-open {
    overflow: hidden;
}

.order-modal[hidden] {
    display: none;
}

.order-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.order-modal:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.order-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 13, 10, 0.78);
    opacity: 0;
    transition: opacity 240ms ease;
}

.order-modal:not([hidden]) .order-modal__backdrop {
    opacity: 1;
}

.order-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1240px, 100%);
    max-height: min(92vh, 980px);
    overflow: auto;
    padding: 28px;
    opacity: 0;
    transform: translate3d(-52px, 0, 0);
    transition:
        opacity 260ms ease,
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.order-modal:not([hidden]) .order-modal__dialog {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.order-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #f4ede3;
    color: var(--accent-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.order-modal__header {
    margin-bottom: 20px;
    padding-right: 56px;
}

.order-modal__header h2,
.order-modal__header p {
    margin-bottom: 0;
}

.order-modal__layout .form-card,
.order-modal__layout .summary-card {
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .order-modal,
    .order-modal__backdrop,
    .order-modal__dialog {
        transition: none;
    }

    .order-modal__dialog {
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 980px) {
    .order-modal {
        padding: 12px;
    }

    .order-modal__dialog {
        padding: 20px;
    }
}