/* Gemeinsame Anzeigen-Styles (Dialog, Slots, Preview) */

:root { --green: #4caf50; --bot-border: #ddd; --muted: #888; }

/* in-chat ad */
.ad-slot-wrap { margin-top: 20px; text-align: center; }
.ad-label { margin: 0 0 4px; font-size: 10px; color: var(--muted); }
.ad-slot { width: 100%; min-width: 300px; min-height: 280px; }

/* ---------- rewarded offer dialog ---------- */
.offer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .35);
}

.offer {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 20px 20px;
    border: 1px solid var(--bot-border);
    border-radius: 14px;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.offer h2 { margin: 0 0 12px; font-size: 20px; }
.offer p { margin: 0 0 20px; font-size: 16px; }
.offer .offer-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.offer-cta {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 6px;
    background: #7a7a7a;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.offer-close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
}

/* ---------- Ad-Preview (nur lokal) ---------- */
.ad-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px dashed #b0b0b0;
    background: repeating-linear-gradient(45deg, #fafafa, #fafafa 10px, #f0f0f0 10px, #f0f0f0 20px);
    color: #777;
    font-size: 13px;
    text-align: center;
}
.ad-preview strong { font-size: 15px; letter-spacing: 2px; }
.ad-preview--inline { width: 100%; min-height: 250px; border-radius: 6px; }
.ad-preview--anchor { position: fixed; top: 0; left: 0; right: 0; height: 50px; z-index: 900; flex-direction: row; background: #f0f0f0; }
.ad-preview--full { position: fixed; inset: 0; z-index: 1100; border: 0; background: #222; color: #ccc; }
.ad-preview--full .offer-cta { width: auto; min-width: 200px; margin-top: 24px; }
.ad-preview--full .offer-cta:disabled { opacity: .5; cursor: not-allowed; }
