
/* =========================================
   MODAL REUTILIZABLE
   ========================================= */

.site-modal {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(900px, calc(100% - 32px));
    max-width: 900px;
    max-height: min(85vh, 900px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #222;
    box-shadow: 0 15px 60px rgba(0, 0, 0, .18);
}

.site-modal::backdrop {
    background: rgba(0, 0, 0, .65);
}

.site-modal__panel {
    display: flex;
    flex-direction: column;
    max-height: min(85vh, 900px);
}

.site-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-shrink: 0;
    padding: 22px 30px;
    border-bottom: 1px solid #eee;
}

.site-modal__title {
    margin: 0;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.4;
}

.site-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
	outline: 0 !important;
}

.site-modal__close:hover,
.site-modal__close:focus{
	outline: 0;
    color: #000;
	background-color: transparent;
}

.site-modal__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.site-modal__body {
    flex: 1;
    min-height: 0;
    padding: 0 30px 30px;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 14px;
    line-height: 1.7;
}

.site-modal__body > :first-child {
    margin-top: 0;
}

.site-modal__body h1,
.site-modal__body h2,
.site-modal__body h3 {
    margin: 1.5em 0 .6em;
    line-height: 1.35;
}

.site-modal__body p {
    margin: 0 0 1em;
}

.site-modal__body a {
    text-decoration: underline;
}

.site-modal__status {
    color: #777;
}

@media (max-width: 767px) {
    .site-modal {
        width: calc(100% - 20px);
        max-height: 90dvh;
    }

    .site-modal__panel {
        max-height: 90dvh;
    }

    .site-modal__header {
        padding: 16px 20px;
    }

    .site-modal__title {
        font-size: 18px;
    }

    .site-modal__body {
        padding: 20px;
        font-size: 14px;
    }
}