.whitmar-membership-modal[hidden] {
    display: none !important;
}

.whitmar-membership-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.whitmar-membership-modal__dialog {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 40px 32px 32px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    color: #1d2327;
}

.whitmar-membership-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.whitmar-membership-modal__close:hover,
.whitmar-membership-modal__close:focus-visible {
    background: rgba(0, 0, 0, 0.08);
}

.whitmar-membership-modal__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.whitmar-membership-modal__title {
    margin: 0 40px 20px 0;
    color: inherit;
}

.whitmar-membership-modal .whitmar-membership-block {
    margin: 0;
}

body.whitmar-membership-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .whitmar-membership-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .whitmar-membership-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 40px 24px 24px;
    }
}
