/* ─── Overlay ──────────────────────────────────────────────────────────────── */

.rtm-eim-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1rem;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rtm-eim-overlay.rtm-eim-hidden {
    display: none;
}

/* ─── Card ────────────────────────────────────────────────────────────────── */

.rtm-eim-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.25rem;
    width: 100%;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
    max-height: 96vh;
    overflow-y: auto;
}

/* ─── Close button (X) ────────────────────────────────────────────────────── */

.rtm-eim-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: 0;
    font-size: 2.25rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rtm-eim-close:hover,
.rtm-eim-close:focus {
    color: #152E3E;
    outline: none;
}

/* ─── Title ───────────────────────────────────────────────────────────────── */

.rtm-eim-title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #152E3E;
    line-height: 1.3;
}

/* ─── Text ────────────────────────────────────────────────────────────────── */

.rtm-eim-text {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* ─── Social proof ────────────────────────────────────────────────────────── */

.rtm-eim-social-proof {
    margin: 0 0 1.25rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #1a7a3a;
    font-weight: 500;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* ─── Incentive (cupom) ───────────────────────────────────────────────────── */

.rtm-eim-incentive {
    margin: 0 0 1.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #fef9e7 0%, #fdf2c8 100%);
    border: 1.5px dashed #DBA958;
    border-radius: 8px;
}

.rtm-eim-incentive-text {
    display: block;
    font-size: 1.1rem;
    color: #152E3E;
    font-weight: 700;
}

.rtm-eim-incentive-validity {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #7a6510;
}

/* ─── CTA ─────────────────────────────────────────────────────────────────── */

.rtm-eim-cta {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    background: #DBA958;
    color: #152E3E;
    border: none;
    border-radius: 8px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.rtm-eim-cta:hover,
.rtm-eim-cta:focus {
    background: #c4963f;
    outline: none;
}

/* ─── Dismiss ─────────────────────────────────────────────────────────────── */

.rtm-eim-dismiss {
    display: block;
    margin: 1rem auto 0;
    background: transparent;
    border: 0;
    color: #888;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.5rem;
    transition: color 0.2s;
}

.rtm-eim-dismiss:hover,
.rtm-eim-dismiss:focus {
    color: #555;
    outline: none;
}

/* ─── Mobile (≤ 480px) ────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .rtm-eim-card {
        padding: 1.5rem 1.25rem;
    }

    .rtm-eim-title {
        font-size: 1.25rem;
    }

    .rtm-eim-text {
        font-size: 0.875rem;
    }

    .rtm-eim-incentive-text {
        font-size: 1rem;
    }

    .rtm-eim-cta {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .rtm-eim-close {
        min-width: 48px;
        min-height: 48px;
    }

    .rtm-eim-dismiss {
        min-height: 48px;
        padding: 0.875rem 1rem;
        box-sizing: border-box;
    }
}