.forster-registration:not([open]) {
    display: none;
}

.forster-registration {
    box-sizing: border-box;
    width: min(640px, calc(100vw - 32px));
    max-width: none;
    max-height: 90vh;
    max-height: 90dvh;
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #182015;
    box-shadow: 0 16px 64px rgb(0 0 0 / 25%);
}

.forster-registration::backdrop {
    background: rgb(24 32 21 / 65%);
}

.forster-registration__header {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 16px;
    padding: 12px 16px 12px 24px; */
    background: #ede9dd;
    height: 0;
}

.forster-registration__header h2 {
    margin: 0;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1.3;
    display: none;
}

.forster-registration__close {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: 32px/1 Arial, sans-serif;
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 10px;
}

.forster-registration__close:hover {
    background: #c8cab4;
}

.forster-registration__close:focus-visible {
    outline: 2px solid #182015;
    outline-offset: -4px;
}

.forster-registration__form {
    min-width: 0;
}

.forster-registration__form iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 4px;
}

html.forster-registration-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .forster-registration {
        width: calc(100vw - 16px);
    }

    .forster-registration__header {
        padding-left: 16px;
    }
}
