/* ============================================================
   RW AI Consultant — styles
   ============================================================ */

/* ── Trigger button — Gemini sparkle style ── */
#rwai-trigger {
    position: fixed;
    bottom: 32px;
    right: 32px;
    left: auto;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #5A67D8 0%, #9B2FC4 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(90, 103, 216, 0.50);
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
#rwai-trigger:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(90, 103, 216, 0.60);
}
#rwai-trigger svg { flex-shrink: 0; }
#rwai-trigger.rwai-hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* ── Attention pulse — draws eye after 15s of inactivity ── */
@keyframes rwai-pulse-ring {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes rwai-pulse-btn {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.06); }
}
#rwai-trigger.rwai-pulse {
    animation: rwai-pulse-btn 0.9s ease-in-out 3;
}
#rwai-trigger.rwai-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    background: rgba(90, 103, 216, 0.45);
    animation: rwai-pulse-ring 1.2s ease-out 3;
    pointer-events: none;
}
/* notification dot on trigger */
#rwai-trigger-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
}

/* ── Chat modal ── */
#rwai-modal {
    position: fixed;
    bottom: 24px;
    right: 32px;
    left: auto;
    top: 124px;              /* rw-topbar (~40px) + site-header (~80px) + 4px gap */
    z-index: 100001;
    width: 400px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    box-shadow: 0 16px 56px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, bottom 0.15s ease;
}
#rwai-modal.rwai-open { opacity: 1; transform: translateY(0); pointer-events: all; }

/* ── Header — Gemini dark-gradient ── */
#rwai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a42 55%, #2d1560 100%);
    color: #fff;
    flex-shrink: 0;
}
.rwai-header-left { display: flex; align-items: center; gap: 12px; }
#rwai-header-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.35);
    flex-shrink: 0;
}
#rwai-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
#rwai-header-title { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
#rwai-header-subtitle { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; display: flex; align-items: center; }
.rwai-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 5px;
    flex-shrink: 0;
    animation: rwai-pulse 2.5s infinite;
}
@keyframes rwai-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76,175,80,0.5); } 50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(76,175,80,0); } }
#rwai-close { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.8); padding: 8px; line-height: 1; transition: color 0.15s; border-radius: 50%; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
#rwai-close:hover { color: #fff; background: rgba(255,255,255,0.15); }

/* ── Provider toggle ── */
#rwai-provider-row { display: flex; gap: 6px; padding: 10px 16px; background: #f7f7f7; border-bottom: 1px solid #eee; flex-shrink: 0; }
.rwai-provider-btn { padding: 4px 12px; border: 1.5px solid #ddd; border-radius: 50px; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; color: #555; }
.rwai-provider-btn.active { background: #111; border-color: #111; color: #fff; }

/* ── Messages ── */
#rwai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 200px;   /* reserve space for fixed input area */
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    min-height: 0;           /* allows flex shrink */
}
#rwai-messages::-webkit-scrollbar { width: 4px; }
#rwai-messages::-webkit-scrollbar-track { background: transparent; }
#rwai-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.rwai-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    word-wrap: break-word;
}
.rwai-msg-user { align-self: flex-end; background: #111; color: #fff; border-bottom-right-radius: 4px; }
.rwai-msg-assistant { align-self: flex-start; background: #f0f0f0; color: #111; border-bottom-left-radius: 4px; }
.rwai-msg-error { align-self: flex-start; background: #ffeaea; color: #c0392b; border-bottom-left-radius: 4px; }

.rwai-msg-assistant .rwai-list { margin: 6px 0 4px 0; padding-left: 18px; }
.rwai-msg-assistant .rwai-list li { margin-bottom: 3px; }
.rwai-msg-assistant a { color: #0066cc; text-decoration: underline; }

/* Typing indicator — with label */
/* Typing indicator — avatar + name + dots (like iMessage/WhatsApp) */
.rwai-typing {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    background: #f0f0f8;
    border-radius: 20px;
    border-bottom-left-radius: 5px;
    max-width: fit-content;
    white-space: nowrap;
}
.rwai-typing-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #e0e0f0;
    flex-shrink: 0;
}
.rwai-typing-avatar-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.rwai-typing-name { font-size: 13px; font-weight: 600; color: #333; white-space: nowrap; }
.rwai-typing-dots { display: flex; gap: 4px; align-items: center; margin-left: 2px; }
.rwai-typing-dots span { width: 6px; height: 6px; background: #5A67D8; border-radius: 50%; animation: rwai-bounce 1.2s infinite ease-in-out; display: inline-block; }
.rwai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.rwai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rwai-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* Emoji backdrop (closes panel on outside click) */
#rwai-emoji-backdrop {
    display: none; position: fixed; inset: 0; z-index: 99;
}
#rwai-emoji-backdrop.open { display: block; }

/* ── PROJECT CARD SLIDER ── */
.rwai-slider-wrap {
    width: 100%;
    overflow: hidden;
    padding: 4px 0 8px 0;
}
.rwai-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 6px 2px;
    scrollbar-width: none;
}
.rwai-slider::-webkit-scrollbar { display: none; }
.rwai-slider-single .rwai-card { width: 100%; min-width: 100%; }

.rwai-card {
    min-width: 160px;
    width: 160px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #fff;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}
.rwai-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.13); transform: translateY(-2px); }

.rwai-card-banner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rwai-card-icon { font-size: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }

.rwai-card-body { padding: 10px; }
.rwai-card-title { font-size: 12px; font-weight: 700; color: #111; margin-bottom: 3px; line-height: 1.3; }
.rwai-card-desc { font-size: 11px; color: #666; line-height: 1.4; margin-bottom: 6px; }
.rwai-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.rwai-card-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.rwai-tag { font-size: 10px; padding: 2px 6px; background: #f0f0f0; border-radius: 10px; color: #555; font-weight: 500; }
.rwai-card-link { font-size: 16px; color: #111; text-decoration: none; flex-shrink: 0; line-height: 1; }
.rwai-card-link:hover { color: #444; }

/* ── LEAD CAPTURE CTA ── */
.rwai-cta {
    background: #f7f7ff;
    border: 1px solid #e0e0f0;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rwai-cta-label { font-size: 13px; font-weight: 600; color: #333; }
.rwai-cta-btns { display: flex; flex-direction: column; gap: 7px; }
.rwai-cta-btn {
    display: block;
    width: 100%;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}
.rwai-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.rwai-cta-brief { background: #111; color: #fff; }
.rwai-cta-tg    { background: #229ED9; color: #fff; }
.rwai-cta-wa    { background: #25D366; color: #fff; }
.rwai-cta-phone { background: #1a1a2e; color: #fff; font-weight: 700; letter-spacing: 0.01em; }
.rwai-cta-phone:hover { background: #2d2d4a; }

/* ── BRIEF FORM ── */
.rwai-brief {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.rwai-brief-title { font-size: 13px; font-weight: 700; color: #111; }
.rwai-brief-field { display: flex; flex-direction: column; gap: 3px; }
.rwai-brief-field label { font-size: 11px; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.rwai-brief-field input {
    padding: 7px 10px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    touch-action: manipulation;
}
.rwai-brief-field input:focus { border-color: #111; }
.rwai-brief-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rwai-brief-send { padding: 9px 18px; background: #111; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.rwai-brief-send:hover { background: #333; }
.rwai-brief-tg { font-size: 12px; color: #229ED9; text-decoration: none; font-weight: 500; }
.rwai-brief-tg:hover { text-decoration: underline; }
.rwai-brief-sent { font-size: 13px; color: #1a7a3f; font-weight: 600; padding: 6px 0; }

/* ── Input area — Gemini style ── */
#rwai-input-area {
    border-top: 1px solid #f0f0f0;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    background: #fff;
    position: relative;
}

.rwai-lead-gate #rwai-input-area { display: none !important; }

/* Keyboard adjustment is handled via JS on the modal itself */
/* File preview strip */
#rwai-input-files { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 0; }
#rwai-input-files:empty { display: none; }
.rwai-file-thumb { position: relative; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 1.5px solid #e0e0e0; flex-shrink: 0; }
.rwai-file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rwai-file-thumb-name { font-size: 9px; text-align: center; padding: 4px; background: #f5f5f5; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 100%; display: flex; align-items: center; justify-content: center; }
.rwai-file-remove { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,0.55); border: none; cursor: pointer; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
/* Input box — Gemini style: textarea top, toolbar bottom */
#rwai-input-box {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 10px 6px 14px;
    background: #f8f9ff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#rwai-input-box:focus-within {
    border-color: #8AB4F8;
    box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.18);
    background: #fff;
}
#rwai-input {
    flex: 1;
    resize: none;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    min-height: 54px;
    max-height: 130px;
    overflow-y: auto;
    padding: 0;
    color: #111;
    width: 100%;
    touch-action: manipulation;
}
#rwai-input::placeholder { color: #aaa; }
/* Bottom toolbar row */
#rwai-input-bottom {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
    padding-right: 2px;
}
.rwai-input-bottom-spacer { flex: 1; }
/* Attach / emoji icon buttons */
#rwai-attach-btn, #rwai-emoji-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    padding: 0;
}
#rwai-attach-btn:hover, #rwai-emoji-btn:hover { background: #ebebf5; color: #444; }
/* Send button — gradient circle */
#rwai-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5A67D8, #9B2FC4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    transition: opacity 0.2s, transform 0.15s;
    padding: 0;
}
#rwai-send:hover { opacity: 0.87; transform: scale(1.06); }
#rwai-send:disabled { background: #ccc; cursor: default; transform: none; opacity: 1; }
#rwai-send svg { display: block; }
#rwai-file-input { display: none; }
/* Emoji picker panel */
#rwai-emoji-panel {
    position: absolute;
    bottom: 62px;
    right: 12px;
    width: 280px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(0,0,0,0.14);
    padding: 8px 10px 10px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 200;
}
#rwai-emoji-panel.open { display: flex; }
#rwai-emoji-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-shrink: 0;
}
#rwai-emoji-panel-title { font-size: 12px; color: #888; font-weight: 600; letter-spacing: 0.03em; }
#rwai-emoji-panel-close {
    width: 22px; height: 22px; border-radius: 50%;
    background: #f0f0f0; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #666; font-size: 14px; line-height: 1; padding: 0;
    transition: background 0.15s, color 0.15s;
}
#rwai-emoji-panel-close:hover { background: #e0e0f0; color: #333; }
#rwai-emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    max-height: 230px;
    overflow-y: auto;
}
#rwai-emoji-grid::-webkit-scrollbar { width: 4px; }
#rwai-emoji-grid::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
#rwai-emoji-panel::-webkit-scrollbar { width: 4px; }
#rwai-emoji-panel::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.rwai-emoji-btn-item { font-size: 22px; width: 36px; height: 36px; border: none; background: none; cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background 0.1s; line-height: 1; flex-shrink: 0; }
.rwai-emoji-btn-item:hover { background: #f0f0f8; }

/* ── FAQ Quick chips ── */
.rwai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 2px 0 4px;
}
.rwai-chip {
    padding: 7px 13px;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
    line-height: 1.3;
    text-align: left;
}
.rwai-chip:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ── Admin bar offsets ── */
body.admin-bar #rwai-modal { top: 156px; }   /* 32px admin bar + 40px topbar + 80px header + 4px gap */

/* ── Mobile ── */
@media (max-width: 768px) and (min-width: 481px) {
    #rwai-modal {
        left: 16px !important;
        right: auto;
    }
}

@media (max-width: 480px) {
    #rwai-trigger { right: 16px; left: auto; bottom: 20px; padding: 11px 18px; font-size: 14px; }
    /* ── Mobile: full-width, always full-screen ──
       top:0 + bottom:0 fills the full layout viewport.
       Keyboard overlays from below — modal does NOT shrink.
       iOS auto-scrolls the focused field into view inside the scrollable messages area. */
    #rwai-modal {
        left: 0 !important;
        right: 0 !important;
        bottom: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        height: auto;
    }
    body.admin-bar #rwai-modal { top: 46px; bottom: 0; height: auto; }

}

/* ── PRE-CHAT LEAD FORM ── */
.rwai-lead-form {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.rwai-lead-form-title { font-size: 13px; color: #555; line-height: 1.4; }
.rwai-lead-form-field { display: flex; flex-direction: column; gap: 5px; }
.rwai-lead-form-field label { font-size: 13px; font-weight: 600; color: #111; }
.rwai-lead-form-field input {
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    color: #111;
    /* iOS: prevent zoom on focus — needs font-size >= 16px on mobile */
    touch-action: manipulation;
}
.rwai-lead-form-field input:focus { border-color: #111; }
.rwai-lead-form-field input::placeholder { color: #bbb; }
.rwai-lead-form-submit {
    padding: 11px 16px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 2px;
}
.rwai-lead-form-submit:hover { background: #333; }

/* ── LEAD CONFIRMATION CARD ── */
.rwai-lead-confirm {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.rwai-lead-confirm-check {
    width: 28px;
    height: 28px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.rwai-lead-confirm-body { flex: 1; min-width: 0; }
.rwai-lead-confirm-title { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 5px; }
.rwai-lead-confirm-line { font-size: 12.5px; color: #555; line-height: 1.6; }
.rwai-lead-confirm-edit {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 16px;
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
    margin-top: 1px;
}
.rwai-lead-confirm-edit:hover { color: #111; }

/* ── FOOTER BRANDING ── */
#rwai-footer {
    border-top: 1px solid #f0f0f0;
    padding: 7px 16px;
    text-align: center;
    font-size: 11px;
    color: #b0b0b0;
    flex-shrink: 0;
    background: #fafafa;
    margin-top: auto;
}
#rwai-footer a {
    color: #888;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
#rwai-footer a:hover { color: #111; }

/* ── iOS: prevent zoom on input focus (font-size must be >= 16px on mobile) ── */
@media (max-width: 768px) {
    .rwai-lead-form-field input,
    .rwai-brief-field input,
    #rwai-input {
        font-size: 16px !important;
    }
}


/* ── Greeting popup bubble ───────────────────────────────────────── */
.rwai-greeting-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: #fff;
    border-radius: 14px 14px 4px 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.14);
    padding: 10px 14px 10px 12px;
    max-width: 220px;
    min-width: 120px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    animation: rwai-popup-in .3s cubic-bezier(.34,1.56,.64,1) both;
    z-index: 9998;
}
@keyframes rwai-popup-in {
    from { opacity: 0; transform: translateY(10px) scale(.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.rwai-greeting-popup-text {
    font-size: 13px;
    line-height: 1.4;
    color: #1a202c;
    flex: 1;
}
.rwai-greeting-popup-close {
    font-size: 11px;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}
.rwai-greeting-popup-close:hover { color: #374151; }

/* Left position variant */
.rwai-pos-left .rwai-greeting-popup {
    right: auto;
    left: 0;
    border-radius: 14px 14px 14px 4px;
}

/* ── Clickable phone & address links inside assistant bubbles ── */
.rwai-phone-link,
.rwai-addr-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(90, 103, 216, 0.6);
    transition: opacity 0.15s;
}
.rwai-phone-link:hover,
.rwai-addr-link:hover {
    opacity: 0.75;
    text-decoration-color: rgba(90, 103, 216, 1);
}
