.form-up {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    pointer-events: none;
}

.form-up.is-open {
    display: block;
    pointer-events: auto;
}

.form-up__overlay {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(26, 27, 27, 0.4);
    cursor: pointer;
}

.form-up__dialogs {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px 16px;
    box-sizing: border-box;
    pointer-events: none;
}

.form-up__dialog {
    display: none;
    width: min(100%, 560px);
    max-height: calc(100vh - 48px);
    pointer-events: auto;
}

.form-up__dialog.is-active {
    display: block;
}

.form-up__dialog-inner {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 48px);
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.form-up__dialog-inner::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.form-up__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--color-neutral-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 6L18 18M18 6L6 18' stroke='%231A1B1B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
    cursor: pointer;
}

.form-up__close:hover {
    opacity: 0.85;
}

.form-up__content {
    position: relative;
}

@media (max-width: 767px) {
    .form-up__dialogs {
        padding: 16px;
    }

    .form-up__dialog {
        width: 100%;
        max-height: calc(100vh - 32px);
    }

    .form-up__dialog-inner {
        max-height: calc(100vh - 32px);
        border-radius: 12px;
    }
}

html.form-up-lock {
    overflow: hidden;
    padding-right: var(--form-up-scrollbar-width, 0);
}

html.form-up-lock body {
    overflow: hidden;
}
