:root {
    --rwvg-heading: #151a2d;
    --rwvg-text: #5f6776;
    --rwvg-border: #dde3ed;
    --rwvg-primary-a: #4c62d8;
    --rwvg-primary-b: #7657d8;
}

html.rwvg-lock,
body.rwvg-lock {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.rwvg-global-root,
.rwvg-global-root .elementor,
.rwvg-global-root .e-con,
.rwvg-global-root .elementor-element {
    pointer-events: none;
}

.rwvg-global-root .rwvg-gate,
.rwvg-global-root .rwvg-gate * {
    pointer-events: auto;
}

.rwvg-gate {
    --rwvg-section-gap: 20px;
    display: none;
    position: relative;
    font-family: "Public Sans", Arial, sans-serif;
    color: var(--rwvg-text);
}

.rwvg-gate.is-mounted,
.rwvg-gate.rwvg-editor-preview {
    display: block;
}

.rwvg-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 24px 20px;
    background: rgba(22, 28, 42, 0.58);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.rwvg-gate.is-visible .rwvg-overlay,
.rwvg-editor-preview .rwvg-overlay {
    opacity: 1;
    visibility: visible;
}

.rwvg-dialog {
    position: relative;
    width: 560px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 34px 34px 28px;
    background: #fff;
    border: 1px solid rgba(222, 228, 238, 0.95);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(10, 18, 38, 0.28);
    color: var(--rwvg-text);
    text-align: left;
    outline: none;
    transform: translateY(12px) scale(0.985);
    transition: transform 0.28s ease;
    scrollbar-width: thin;
}

.rwvg-gate.is-visible .rwvg-dialog,
.rwvg-editor-preview .rwvg-dialog {
    transform: translateY(0) scale(1);
}

.rwvg-dialog * {
    box-sizing: border-box;
}

.rwvg-editor-preview .rwvg-overlay {
    position: relative;
    min-height: 720px;
    z-index: 1;
}

.rwvg-editor-preview .rwvg-dialog {
    max-height: none;
}

.rwvg-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--rwvg-section-gap);
}

.rwvg-brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #5b4fd6;
    border-radius: 14px;
}

.rwvg-brand-mark img,
.rwvg-brand-mark svg {
    display: block;
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.rwvg-brand-mark svg {
    color: #fff;
}

.rwvg-brand-copy {
    min-width: 0;
}

.rwvg-brand-name {
    margin: 0;
    color: var(--rwvg-heading);
    font-family: "Sora", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.rwvg-brand-subtitle {
    margin-top: 3px;
    color: #697283;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.35;
    text-transform: uppercase;
}

.rwvg-main-copy {
    margin-bottom: var(--rwvg-section-gap);
}

.rwvg-title {
    margin: 0 0 10px;
    color: var(--rwvg-heading);
    font-family: "Sora", Arial, sans-serif;
    font-size: clamp(24px, 3vw, 29px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.16;
}

.rwvg-description,
.rwvg-policy,
.rwvg-footer-note,
.rwvg-check-text {
    font-size: 15px;
    line-height: 1.52;
}

.rwvg-rich-text > :first-child {
    margin-top: 0;
}

.rwvg-rich-text > :last-child {
    margin-bottom: 0;
}

.rwvg-rich-text p {
    margin: 0 0 0.7em;
}

.rwvg-rich-text a {
    color: #5b4fd6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rwvg-check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--rwvg-section-gap);
}

.rwvg-check-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 16px;
    background: #fff;
    border: 1px solid var(--rwvg-border);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-align: left;
}

.rwvg-check-card:hover {
    background: #f7f8fc;
    border-color: #bfc8d8;
}

.rwvg-check-card:focus-within {
    outline: 3px solid rgba(91, 79, 214, 0.16);
    outline-offset: 2px;
}

.rwvg-check-card.is-checked {
    background: #eef4ff;
    border-color: #7080ea;
}

.rwvg-check-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.rwvg-check-box {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #c9d1df;
    border-radius: 7px;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.rwvg-check-box svg {
    width: 75%;
    height: 75%;
    color: #fff;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.rwvg-check-card.is-checked .rwvg-check-box {
    background: #5261d5;
    border-color: #5261d5;
}

.rwvg-check-card.is-checked .rwvg-check-box svg {
    opacity: 1;
    transform: scale(1);
}

.rwvg-check-text {
    min-width: 0;
    color: #252b3b;
}

.rwvg-policy {
    margin-bottom: var(--rwvg-section-gap);
    color: #697283;
}

.rwvg-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.rwvg-buttons-stacked .rwvg-actions,
.rwvg-design-centered .rwvg-actions {
    grid-template-columns: 1fr;
}

.rwvg-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: "Public Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.rwvg-button[hidden] {
    display: none !important;
}

.rwvg-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.rwvg-button-icon svg,
.rwvg-button-icon i {
    width: 1em;
    height: 1em;
    font-size: 1em;
}

.rwvg-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--rwvg-primary-a) 0%, var(--rwvg-primary-b) 100%);
    border-color: transparent;
}

.rwvg-primary:not(:disabled):hover,
.rwvg-primary:not(:disabled):focus-visible {
    color: #fff;
    background: linear-gradient(90deg, #3e56cd 0%, #6848cd 100%);
    box-shadow: 0 12px 24px rgba(91, 79, 214, 0.25);
    transform: translateY(-1px);
}

.rwvg-primary:disabled {
    color: #fff;
    background: #aaa4e8;
    cursor: not-allowed;
    opacity: 0.72;
}

.rwvg-secondary {
    color: #252b3b;
    background: #fff;
    border-color: var(--rwvg-border);
}

.rwvg-secondary:hover,
.rwvg-secondary:focus-visible {
    color: #5b4fd6;
    background: #f7f6ff;
    border-color: #5b4fd6;
    transform: translateY(-1px);
}

.rwvg-button:focus-visible,
.rwvg-rich-text a:focus-visible {
    outline: 3px solid rgba(91, 79, 214, 0.2);
    outline-offset: 3px;
}

.rwvg-footer-note {
    color: #697283;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

/* Centered reference-inspired layout */
.rwvg-design-centered .rwvg-dialog {
    width: 470px;
    padding: 40px 40px 34px;
}

.rwvg-design-centered .rwvg-brand {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.rwvg-design-centered .rwvg-brand-mark {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fbe8f1;
}

.rwvg-design-centered .rwvg-brand-mark svg {
    color: #244d72;
}

.rwvg-design-centered .rwvg-title,
.rwvg-design-centered .rwvg-description,
.rwvg-design-centered .rwvg-policy,
.rwvg-design-centered .rwvg-footer-note {
    text-align: center;
}

.rwvg-design-centered .rwvg-check-card {
    align-items: flex-start;
}

.rwvg-design-centered .rwvg-primary {
    border-radius: 999px;
}

.rwvg-design-centered .rwvg-secondary {
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    background: transparent;
    border-color: transparent;
}

.rwvg-design-centered .rwvg-secondary:hover,
.rwvg-design-centered .rwvg-secondary:focus-visible {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

@media (max-width: 767px) {
    .rwvg-overlay {
        align-items: center;
        padding: 16px;
    }

    .rwvg-dialog,
    .rwvg-design-centered .rwvg-dialog {
        width: 100%;
        max-height: calc(100dvh - 32px);
        padding: 26px 20px 22px;
        border-radius: 16px;
    }

    .rwvg-title {
        font-size: 25px;
    }

    .rwvg-description,
    .rwvg-policy,
    .rwvg-footer-note,
    .rwvg-check-text {
        font-size: 14px;
    }

    .rwvg-actions {
        grid-template-columns: 1fr;
    }

    .rwvg-button {
        width: 100%;
    }

    .rwvg-design-centered .rwvg-brand-mark {
        width: 76px;
        height: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rwvg-overlay,
    .rwvg-dialog,
    .rwvg-check-card,
    .rwvg-check-box,
    .rwvg-check-box svg,
    .rwvg-button {
        transition: none !important;
    }
}
