/* doc-project | projet/assets/css/order-modal.css | styles dedies a la sur-modale de commande, a son layout configurateur + recapitulatif, aux champs largeur portail et hauteur sur-mesure, au rendu AAA des champs complementaires d option select simple ou multiple, a la notice statique de paiement, a l affichage multiline propre des options du recapitulatif, au bloc explicatif distance entre piliers standard ou sur-mesure, a l ajout d une integration soignee du bloc d informations conditionnel 2 vantaux ou coulissant, a la suppression de l etirement inutile du bloc options pour eviter un grand vide apres la derniere option visible, avec separations visuelles plus nettes entre les blocs de choix, animation d entree laterale et reprise du selected renforce pour garder la meme lecture que dans la modale produit */
.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 .front-option-card__extra-choice {
    grid-template-columns: 20px minmax(0, 1fr);
}

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

.order-modal .opening-type-info-card {
    margin-top: -2px;
    margin-bottom: 18px;
}

.order-modal .opening-type-info-card__list {
    padding-left: 20px;
}

.order-modal .configurator-choice-block {
    min-height: 0;
}

.order-modal #order-options-fieldset {
    align-content: start;
}

.payment-notice {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(138, 90, 43, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,243,236,0.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.payment-notice__title,
.payment-notice__text {
    margin: 0;
}

.payment-notice__title {
    font-weight: 700;
}

.summary-list__options {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.order-modal .pillar-spacing-card__result {
    margin-top: 2px;
}

.order-modal .front-option-card.is-selected,
.order-modal .motor-card.is-selected,
.order-modal .motorisation-mode-card.is-selected,
.order-modal .sliding-opening-card.is-selected,
.order-modal .portillon-direction-card.is-selected,
.order-modal .opening-type-choice-card input:checked + .opening-type-choice-card__box,
.order-modal .portillon-yes-no__option input:checked + .portillon-yes-no__label {
    border-color: var(--selected-border-strong);
    background: var(--selected-surface);
    box-shadow:
        0 0 0 4px rgba(138, 90, 43, 0.16),
        0 20px 36px rgba(31, 26, 23, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.90);
}

@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;
    }
}