.legal-gating-is-open,
.legal-gating-is-open body {
    overflow: hidden;
}

.legal-gating-overlay .legal-gating-modal [data-step].is-active {
    display: flex;
}

.legal-gating-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .72);
}

.legal-gating-overlay .legal-gating-modal {
    width: min(100%, 70%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    color: #1d2327;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
    outline: 0;
}

.legal-gating-overlay .legal-gating-progress {
    height: 6px;
    background: #e5e7eb;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.legal-gating-overlay .legal-gating-progress span {
    display: block;
    width: 25%;
    height: 100%;
    background: #3F5267;
    transition: width .2s ease;
}

.legal-gating-overlay .legal-gating-step {
    padding: 32px;

    flex-direction: column;
    gap: 20px;
}

.legal-gating-overlay .legal-gating-step h2 {
    font-family: "Montserrat", Sans-serif;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;

}

.legal-gating-overlay .legal-gating-step label:not(.legal-gating-check) {
    font-family: "Montserrat", Sans-serif;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
        line-height: 20px;
    font-size: 16px;
}

.legal-gating-overlay .legal-gating-step select,
.legal-gating-overlay .legal-gating-step input[type="text"] {
    font-family: "Montserrat", Sans-serif;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
}

.legal-gating-overlay .legal-gating-step select:focus-visible,
.legal-gating-overlay .legal-gating-step input[type="text"]:focus {
    outline: 1px solid #AD9C79;
}

.legal-gating-overlay .legal-gating-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 20px 0;
    line-height: 20px;
    font-size: 16px;
}

.legal-gating-overlay .legal-gating-check input {
    margin-top: 4px;
}

.legal-gating-overlay .legal-gating-button {
    font-family: "Montserrat", Sans-serif;
    appearance: none;
    border: 0;
    border-radius: 5px;
    padding: 12px 20px;
    background: #3F5267;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.legal-gating-overlay .legal-gating-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.legal-gating-overlay .legal-gating-button--secondary {
    background: #AD9C79;
}

.legal-gating-overlay .legal-gating-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.legal-gating-overlay .legal-gating-disclaimer {
    max-height: 320px;
    overflow: auto;
    padding: 16px;
    border: 1px solid #dcdcde;
    background: #f6f7f7;
}

.legal-gating-overlay .legal-gating-disclaimer p {
    margin: 0 0 1em;
}

.legal-gating-overlay .legal-gating-disclaimer p:last-child {
    margin-bottom: 0;
}

.legal-gating-overlay .legal-gating-error {
    margin-top: 16px;
    color: #b32d2e;
}

@media (max-width: 600px) {
    .legal-gating-overlay {
        padding: 10px;
    }

    .legal-gating-overlay .legal-gating-step {
        padding: 24px 18px;
    }

    .legal-gating-overlay .legal-gating-actions {
        flex-direction: column-reverse;
    }

    .legal-gating-overlay .legal-gating-button {
        width: 100%;
    }
}
