html.spdg-locked,
html.spdg-locked body {
    overflow: hidden !important;
}

.spdg-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: #080A0BDC;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    box-sizing: border-box;
}

.spdg-modal {
    position: relative;
    width: min(690px, 100%);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 24px 80px #0000006B;
    color: #222;
    font-family: 'Source Sans 3', sans-serif;
}

.spdg-top-line {
    height: 7px;
    background: var(--spdg-accent, #ed1c24);
}

.spdg-content {
    padding: 45px 46px 40px;
}

.spdg-fish {
    color: var(--spdg-accent, #ed1c24);
    margin-bottom: 22px;
    line-height: 0;
}

.spdg-eyebrow {
    margin-bottom: 15px;
    color: var(--spdg-accent, #ed1c24);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .20em;
}

.spdg-modal h2 {
    margin: 0 0 18px;
    color: #111;
    font-family: 'Source Serif 4', serif;
    font-size: clamp(31px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 400;
}

.spdg-intro {
    margin: 0 0 24px;
    color: #666;
    font-size: 15px;
    line-height: 1.75;
}

.spdg-agreement {
    position: relative;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px 19px;
    border: 1px solid #d6d1ca;
    background: #f4f2ee;
    color: #2e2e2e;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.65;
}

.spdg-agreement input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.spdg-checkmark {
    position: relative;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 1px solid #aeb2b7;
    background: #fff;
    box-sizing: border-box;
}

.spdg-agreement input:focus-visible + .spdg-checkmark {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.spdg-agreement.spdg-is-accepted {
    border-color: #186cb1 !important;
    background: #eff5fa !important;
}

.spdg-agreement input:checked + .spdg-checkmark {
    border-color: #186cb1 !important;
    background: #186cb1 !important;
}


.spdg-agreement input:checked + .spdg-checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 7px;
    height: 13px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.spdg-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.spdg-view {
    min-height: 56px;
    padding: 0 30px;
    border: 0;
    border-radius: 0;
    background: var(--spdg-button, #D81F26);
    color: var(--spdg-button-text, #FFFFFF);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    cursor: pointer;
    transition: opacity .2s ease, background .2s ease;
}

.spdg-view:disabled {
    background: #C7C7C7 !important;
    color: #FFFFFF !important;
    border: 0 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

.spdg-view:not(:disabled):hover,
.spdg-view:not(:disabled):focus-visible {
    filter: brightness(.88);
}

.spdg-home {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.spdg-home:hover,
.spdg-home:focus-visible {
    color: #111;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .spdg-overlay {
        align-items: flex-start;
        padding: 18px;
        overflow-y: auto;
    }

    .spdg-modal {
        max-height: none;
        margin: 16px 0;
    }

    .spdg-content {
        padding: 32px 24px 28px;
    }

    .spdg-modal h2 {
        font-size: 31px;
    }

    .spdg-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .spdg-view {
        width: 100%;
    }

    .spdg-home {
        text-align: center;
    }
}

.spdg-fish img { max-width: 180px; max-height: 80px; width: auto; height: auto; display: block; object-fit: contain; }

/* Keep declaration copy visible even when the active theme applies global text styles. */
.spdg-modal .spdg-intro { display: block !important; visibility: visible !important; opacity: 1 !important; color: #666 !important; }
.spdg-modal .spdg-agreement > span:last-child { display: block !important; visibility: visible !important; opacity: 1 !important; color: #2e2e2e !important; }

/* Checked state matches the supplied reference. */
.spdg-agreement.spdg-is-accepted > span:last-child { color: #2e2e2e !important; }
.spdg-view:not(:disabled) { opacity: 1 !important; border: 0 !important; box-shadow: none !important; }


/* v2.2 — one fixed CTA geometry and typography for both disabled and active states. */
#spdg-overlay #spdg-view.spdg-view,
#spdg-overlay #spdg-view.spdg-view:disabled,
#spdg-overlay #spdg-view.spdg-view:not(:disabled),
#spdg-overlay #spdg-view.spdg-view.spdg-active {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 260px !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 22px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: var(--spdg-button-font-size, 16px) !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .035em !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    color: var(--spdg-button-text, #FFFFFF) !important;
    -webkit-text-fill-color: var(--spdg-button-text, #FFFFFF) !important;
    opacity: 1 !important;
    transform: none !important;
}

#spdg-overlay #spdg-view.spdg-view:disabled {
    background: #C7C7C7 !important;
    background-color: #C7C7C7 !important;
    cursor: not-allowed !important;
}

#spdg-overlay #spdg-view.spdg-view:not(:disabled),
#spdg-overlay #spdg-view.spdg-view.spdg-active,
#spdg-overlay #spdg-view.spdg-view.spdg-active:hover,
#spdg-overlay #spdg-view.spdg-view.spdg-active:focus-visible {
    background: var(--spdg-button, #D81F26) !important;
    background-color: var(--spdg-button, #D81F26) !important;
    color: var(--spdg-button-text, #FFFFFF) !important;
    -webkit-text-fill-color: var(--spdg-button-text, #FFFFFF) !important;
    cursor: pointer !important;
    filter: none !important;
}

@media (max-width: 640px) {
    #spdg-overlay #spdg-view.spdg-view,
    #spdg-overlay #spdg-view.spdg-view:disabled,
    #spdg-overlay #spdg-view.spdg-view:not(:disabled),
    #spdg-overlay #spdg-view.spdg-view.spdg-active {
        flex-basis: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}
