/*
 * ROZE Email Automation — Frontend Popup Styles
 * Enqueued as a proper stylesheet — works in all browsers
 */

/* ── Overlay (exit intent center mode) ─────────────────── */
#roze_ea_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999998;
}

/* ── Base popup wrapper ─────────────────────────────────── */
.roze-ea-popup {
    display: none;
    position: fixed;
    z-index: 999999;
    width: 340px;
    max-width: calc(100vw - 24px);
    padding: 28px 24px 22px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    /* position is set via class below */
    padding:16px !important;
}

/* ── Position variants ──────────────────────────────────── */
.roze-ea-popup.pos-bottom-right {
    bottom: 20px;
    right: 20px;
    left: auto;
    top: auto;
}
.roze-ea-popup.pos-bottom-left {
    bottom: 20px;
    left: 20px;
    right: auto;
    top: auto;
}
.roze-ea-popup.pos-bottom-center {
    bottom: 20px;
    left: 50%;
    right: auto;
    top: auto;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}
.roze-ea-popup.pos-top-right {
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
}
.roze-ea-popup.pos-top-left {
    top: 20px;
    left: 20px;
    right: auto;
    bottom: auto;
}
.roze-ea-popup.pos-top-center {
    top: 20px;
    left: 50%;
    right: auto;
    bottom: auto;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}
.roze-ea-popup.pos-center {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

/* ── Close button ───────────────────────────────────────── */
.roze-ea-popup .roze-ea-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    opacity: 0.45;
    -webkit-appearance: none;
    appearance: none;
}
.roze-ea-popup .roze-ea-close:hover {
    opacity: 0.85;
}

/* ── Heading ────────────────────────────────────────────── */
.roze-ea-popup .roze-ea-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    padding-right: 28px;
    line-height: 1.3;
}

/* ── Subtext ────────────────────────────────────────────── */
.roze-ea-popup .roze-ea-subtext {
    font-size: 13px;
    margin: 0 0 14px 0;
    opacity: 0.75;
    line-height: 1.5;
}

/* ── Email input ────────────────────────────────────────── */
.roze-ea-popup .roze-ea-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #dddddd;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
    color: #222222;
    background: #ffffff;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.roze-ea-popup .roze-ea-input:focus {
    border-color: #999999;
}

/* ── Error message ──────────────────────────────────────── */
.roze-ea-popup .roze-ea-error {
    display: none;
    color: #cc0000;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* ── GDPR consent label ─────────────────────────────────── */
.roze-ea-popup .roze-ea-gdpr {
    display: block;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
    cursor: pointer;
    padding-left: 22px;
    position: relative;
}
.roze-ea-popup .roze-ea-gdpr input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 2px;
    margin: 0;
    cursor: pointer;
}

/* ── Submit button ──────────────────────────────────────── */
.roze-ea-popup .roze-ea-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
    text-align: center;
}
.roze-ea-popup .roze-ea-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}
.roze-ea-popup .roze-ea-btn:hover:not(:disabled) {
    opacity: 0.88;
}

/* ── Success message ────────────────────────────────────── */
.roze-ea-popup .roze-ea-success {
    display: none;
    text-align: center;
    padding: 10px 0 4px;
    font-weight: 600;
    font-size: 14px;
}

/* ── Mobile responsive ──────────────────────────────────── */
@media screen and (max-width: 420px) {
    .roze-ea-popup {
        width: calc(100vw - 16px) !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        top: auto !important;
        -webkit-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
    }
}
