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

.ft-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 300ms ease;
}

.ft-modal.is-open {
    opacity: 1;
}

.ft-modal__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in oklab, var(--primary-950), transparent 30%);
    cursor: pointer;
}

.ft-modal__dialog {
    position: relative;
    background: var(--background);
    color: var(--text);
    max-width: min(680px, 92vw);
    width: 100%;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    max-height: 90vh;
    overflow: auto;
}

.ft-modal__close {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
    transition: color 150ms ease;
}

.ft-modal__body iframe {
    display: block;
    width: 100%;
    border: 0;
}
