.ghl-modal {
    align-items: flex-start;
    display: none;
    inset: 0;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1.25rem;
    position: fixed;
    z-index: 2000;
}

.ghl-modal--open {
    display: flex;
}

.ghl-modal-open {
    overflow: hidden;
}

.ghl-modal__backdrop {
    background: rgba(3, 7, 18, 0.78);
    inset: 0;
    position: absolute;
}

.ghl-modal__dialog {
    background: var(--ei-bg-card);
    border: 1px solid var(--ei-border);
    border-radius: 1.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    color: var(--ei-text);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 4rem);
    max-width: 820px;
    overflow: hidden;
    position: relative;
    width: min(100%, 820px);
}

.ghl-modal__header {
    align-items: center;
    background: var(--ei-bg-panel);
    border-bottom: 1px solid var(--ei-border);
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.ghl-modal__title {
    color: var(--ei-text);
    font-family: "Space Grotesk", "DM Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.ghl-modal__close {
    align-items: center;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(226, 232, 240, 0.22);
    border-radius: 999px;
    color: var(--ei-text);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.5rem;
    height: 2.25rem;
    justify-content: center;
    line-height: 1;
    width: 2.25rem;
}

.ghl-modal__close:hover {
    background: rgba(59, 130, 246, 0.28);
}

.ghl-modal__body {
    flex: 1 1 auto;
    max-height: calc(100vh - 9rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.ghl-modal__iframe {
    border: none;
    border-radius: 3px;
    display: block;
    height: 980px;
    width: 100%;
}

.ghl-modal__preload {
    border: 0;
    height: 1px;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: auto;
    width: 1px;
}

@media (max-width: 640px) {
    .ghl-modal {
        padding: 0.75rem;
    }

    .ghl-modal__dialog {
        border-radius: 1rem;
        max-height: calc(100vh - 1.5rem);
    }

    .ghl-modal__body {
        max-height: calc(100vh - 6rem);
    }
}
