/* Derry Village Spaw email popup */

.dsp-spaw-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 20, 20, 0.62);
}

.dsp-spaw-overlay[hidden] {
    display: none;
}

body.dsp-spaw-open {
    overflow: hidden;
}

.dsp-spaw-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: 92vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    border-top: 10px solid var(--dsp-orange, #f26722);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    padding: 30px 28px 24px;
    text-align: center;
    font-family: inherit;
    animation: dsp-spaw-in 0.35s ease-out;
}

@keyframes dsp-spaw-in {
    from { transform: translateY(24px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.dsp-spaw-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #444;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.dsp-spaw-close:hover {
    background: #e2e2e2;
}

.dsp-spaw-badge {
    font-size: 44px;
    margin-bottom: 6px;
}

.dsp-spaw-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
    color: #222;
}

.dsp-spaw-message {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #555;
}

.dsp-spaw-field {
    display: block;
    margin-bottom: 12px;
}

.dsp-spaw-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    font-size: 16px;
    border: 2px solid #e3e3e3;
    border-radius: 10px;
}

.dsp-spaw-field input:focus {
    outline: none;
    border-color: var(--dsp-teal, #0f7b7c);
}

.dsp-spaw-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.dsp-spaw-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin: 4px 0 14px;
    cursor: pointer;
}

.dsp-spaw-consent input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--dsp-teal, #0f7b7c);
    flex-shrink: 0;
}

.dsp-spaw-consent a {
    color: var(--dsp-teal, #0f7b7c);
}

.dsp-spaw-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 15px 18px;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    background: var(--dsp-orange, #f26722);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.dsp-spaw-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(242, 103, 34, 0.35);
}

.dsp-spaw-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.dsp-spaw-terms {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #999;
}

.dsp-spaw-error {
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 14px;
    color: #b3261e;
    background: #fdecea;
    border-radius: 8px;
}

.dsp-spaw-success p {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 480px) {
    .dsp-spaw-card {
        padding: 26px 20px 20px;
        border-radius: 14px;
    }
    .dsp-spaw-card h2 {
        font-size: 21px;
    }
    .dsp-spaw-btn {
        font-size: 16px;
    }
}
