/* ==========================================================================
   Refyn Chatbot — Intercom-style two-screen widget
   ========================================================================== */

:root {
    --refyn-primary:        #4f46e5;
    --refyn-primary-dark:   #3730a3;
    --refyn-primary-text:   #ffffff;
    --refyn-bg:             #ffffff;
    --refyn-messages-bg:    #f3f4f6;
    --refyn-bot-bubble-bg:  #ffffff;
    --refyn-bot-bubble-fg:  #111827;
    --refyn-user-bubble-bg: var(--refyn-primary);
    --refyn-user-bubble-fg: #ffffff;
    --refyn-border:         #e5e7eb;
    --refyn-shadow:         0 16px 48px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
    --refyn-radius:         20px;
    --refyn-font:           -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --refyn-z-index:        99999;
    --refyn-w:              368px;
    --refyn-h:              560px;
}

/* ==========================================================================
   Global button reset — override any theme that adds borders/outlines
   ========================================================================== */

#refyn-chat-window button,
#refyn-chat-window button:focus,
#refyn-chat-window button:active,
#refyn-chat-toggle,
#refyn-chat-toggle:focus,
#refyn-chat-toggle:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* ==========================================================================
   Launcher / Toggle button
   ========================================================================== */

#refyn-chat-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--refyn-z-index);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--refyn-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(79,70,229,0.5), 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
    outline: none;
}
#refyn-chat-toggle:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(79,70,229,0.55); }
#refyn-chat-toggle:focus-visible { outline: 3px solid var(--refyn-primary); outline-offset: 4px; }

#refyn-chat-toggle svg { width: 28px; height: 28px; }
#refyn-chat-toggle .refyn-icon-chat  { display: block; }
#refyn-chat-toggle .refyn-icon-close { display: none; }
#refyn-chat-toggle.is-open .refyn-icon-chat  { display: none; }
#refyn-chat-toggle.is-open .refyn-icon-close { display: block; }

#refyn-chat-toggle .refyn-badge {
    position: absolute; top: 3px; right: 3px;
    width: 13px; height: 13px;
    background: #ef4444; border-radius: 50%; border: 2.5px solid #fff;
    display: none;
    animation: refyn-badge-pulse 2s infinite;
}
#refyn-chat-toggle.has-unread .refyn-badge { display: block; }

@keyframes refyn-badge-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50%      { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* ==========================================================================
   Chat window shell
   ========================================================================== */

#refyn-chat-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: var(--refyn-z-index);
    width: var(--refyn-w);
    height: var(--refyn-h);
    border-radius: var(--refyn-radius);
    box-shadow: var(--refyn-shadow);
    overflow: hidden;
    clip-path: inset(0 0 0 0 round var(--refyn-radius));
    font-family: var(--refyn-font);
    font-size: 14px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.28s cubic-bezier(0.16,1,0.3,1), transform 0.28s cubic-bezier(0.16,1,0.3,1);
}
#refyn-chat-window.is-open { opacity: 1; pointer-events: auto; transform: none; }

/* 3-screen sliding container: Home | Messages | Chat */
.refyn-screens-wrap {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
}
.refyn-screens-wrap.show-messages { transform: translateX(-33.333%); }
.refyn-screens-wrap.show-chat     { transform: translateX(-66.667%); }

.refyn-screen {
    width: 33.333%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==========================================================================
   HOME SCREEN
   ========================================================================== */

#refyn-screen-home { background: var(--refyn-bg); }

/* Gradient header */
.refyn-home-header {
    background: linear-gradient(145deg, var(--refyn-primary) 0%, var(--refyn-primary-dark) 100%);
    color: #fff;
    padding: 24px 20px 36px;
    position: relative;
    flex-shrink: 0;
}
/* Decorative circles */
.refyn-home-header::before {
    content:""; position:absolute; width:160px; height:160px;
    border-radius:50%; background:rgba(255,255,255,0.07);
    top:-50px; right:-30px; pointer-events:none;
}
.refyn-home-header::after {
    content:""; position:absolute; width:80px; height:80px;
    border-radius:50%; background:rgba(255,255,255,0.05);
    bottom:-20px; right:60px; pointer-events:none;
}

/* Close button inside home header */
.refyn-home-header .refyn-header-close {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,0.15); border: none;
    color: rgba(255,255,255,0.9); width: 28px; height: 28px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s; z-index: 1;
}
.refyn-home-header .refyn-header-close:hover { background: rgba(255,255,255,0.28); }

/* Avatar stack */
.refyn-home-avatars {
    display: flex;
    margin-bottom: 14px;
}
.refyn-home-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; color: #fff;
    flex-shrink: 0;
}
.refyn-home-avatar:nth-child(1) { background: rgba(255,255,255,0.25); z-index: 3; }
.refyn-home-avatar:nth-child(2) { background: rgba(255,255,255,0.18); margin-left: -10px; z-index: 2; }
.refyn-home-avatar:nth-child(3) { background: rgba(255,255,255,0.12); margin-left: -10px; z-index: 1; }

.refyn-home-title {
    margin: 0; font-size: 22px; font-weight: 700;
    line-height: 1.25; letter-spacing: -0.4px;
}
.refyn-home-title span { display: block; }

/* White card sheet — overlaps header bottom */
.refyn-home-body {
    flex: 1;
    background: #f3f4f6;
    padding: 0 12px 12px;
    margin-top: -16px;
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}
.refyn-home-body::-webkit-scrollbar { display: none; }

/* Cards */
.refyn-home-card {
    background: #fff;
    border-radius: 14px;
    margin-top: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s;
}
.refyn-home-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-1px); }
.refyn-home-card:active { transform: translateY(0); }

.refyn-card-section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #6b7280;
    padding: 12px 16px 0; margin: 0;
}

.refyn-card-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px 14px;
}

/* Recent message card */
.refyn-card-avatar-sm {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--refyn-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.refyn-card-text { flex: 1; min-width: 0; }
.refyn-card-meta {
    font-size: 12px; color: #6b7280; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.refyn-card-preview {
    font-size: 13px; color: #111827; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.refyn-card-chevron {
    color: #9ca3af; flex-shrink: 0; width: 16px; height: 16px;
}

/* New message card */
.refyn-card-new-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px 14px;
}
.refyn-card-subtext { flex: 1; font-size: 13px; color: #6b7280; }
.refyn-card-send-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--refyn-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; box-shadow: 0 2px 8px rgba(79,70,229,0.4);
}
.refyn-card-send-btn svg { width: 16px; height: 16px; }

/* ==========================================================================
   MESSAGES SCREEN
   ========================================================================== */

#refyn-screen-messages { background: #fff; }

.refyn-msg-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--refyn-border);
    flex-shrink: 0;
    background: #fff;
}
.refyn-msg-topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
.refyn-msg-topbar .refyn-header-close {
    background: #f3f4f6; border: none; color: #6b7280;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.refyn-msg-topbar .refyn-header-close:hover { background: #e5e7eb; color: #111827; }

.refyn-msg-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

/* Empty state */
.refyn-msg-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 24px 20px;
    color: #9ca3af;
}
.refyn-msg-empty svg { width: 40px; height: 40px; opacity: 0.4; margin-bottom: 4px; }
.refyn-msg-empty-title { font-size: 14px; font-weight: 600; color: #6b7280; margin: 0; }
.refyn-msg-empty-sub   { font-size: 12px; color: #9ca3af; margin: 0; line-height: 1.5; }

/* Conversation thread card */
.refyn-msg-thread {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid var(--refyn-border);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.refyn-msg-thread:hover { background: #f9fafb; }

.refyn-msg-thread-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--refyn-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.refyn-msg-thread-body { flex: 1; min-width: 0; }
.refyn-msg-thread-top  { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 3px; }
.refyn-msg-thread-name { font-size: 13px; font-weight: 700; color: #111827; }
.refyn-msg-thread-time { font-size: 11px; color: #9ca3af; white-space: nowrap; margin-left: 6px; flex-shrink: 0; }
.refyn-msg-thread-preview {
    font-size: 13px; color: #6b7280;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ==========================================================================
   Bottom navigation  (shared by both screens)
   ========================================================================== */

.refyn-bottom-nav {
    display: flex;
    border-top: 1px solid var(--refyn-border);
    background: #fff;
    flex-shrink: 0;
}
.refyn-nav-btn {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 10px 0;
    background: none; border: none; cursor: pointer;
    font-family: var(--refyn-font); font-size: 11px; font-weight: 600;
    color: #9ca3af;
    transition: color 0.15s;
}
.refyn-nav-btn svg { width: 20px; height: 20px; }
.refyn-nav-btn.is-active { color: var(--refyn-primary); }
.refyn-nav-btn:hover { color: var(--refyn-primary); }

/* ==========================================================================
   CHAT SCREEN
   ========================================================================== */

#refyn-screen-chat { background: var(--refyn-messages-bg); }

/* Slim top bar */
.refyn-chat-topbar {
    background: #fff;
    border-bottom: 1px solid var(--refyn-border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.refyn-back-btn {
    background: #f3f4f6; border: none; color: #374151;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: background 0.15s;
}
.refyn-back-btn:hover { background: #e5e7eb; }
.refyn-back-btn svg { width: 16px; height: 16px; }

.refyn-topbar-info { flex: 1; }
.refyn-topbar-name  { font-weight: 700; font-size: 14px; color: #111827; line-height: 1.2; }
.refyn-topbar-status {
    font-size: 11px; color: #6b7280;
    display: flex; align-items: center; gap: 4px; margin-top: 1px;
}
.refyn-topbar-status::before {
    content:""; display:inline-block; width:6px; height:6px;
    border-radius:50%; background:#4ade80;
    animation: refyn-status-pulse 2.5s infinite;
}
@keyframes refyn-status-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
    50%      { box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

.refyn-chat-topbar .refyn-header-close {
    background: #f3f4f6; border: none; color: #6b7280;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.refyn-chat-topbar .refyn-header-close:hover { background: #e5e7eb; color: #111827; }

/* ==========================================================================
   Messages area
   ========================================================================== */

.refyn-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}
.refyn-messages::-webkit-scrollbar       { width: 4px; }
.refyn-messages::-webkit-scrollbar-track { background: transparent; }
.refyn-messages::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.refyn-message {
    display: flex; align-items: flex-end; gap: 7px;
    max-width: 85%;
    animation: refyn-msg-in 0.22s ease;
}
@keyframes refyn-msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.refyn-message.bot  { align-self: flex-start; flex-direction: row; }
.refyn-message.user { align-self: flex-end; flex-direction: row-reverse; max-width: 80%; }

.refyn-bubble-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--refyn-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 11px; font-weight: 700;
    box-shadow: 0 1px 4px rgba(79,70,229,0.3);
}
.refyn-message.bot + .refyn-message.bot .refyn-bubble-avatar { visibility: hidden; }

.refyn-bubble {
    padding: 9px 13px; border-radius: 18px;
    line-height: 1.55; word-break: break-word; white-space: pre-wrap; font-size: 14px;
}
.refyn-message.bot  .refyn-bubble {
    background: var(--refyn-bot-bubble-bg); color: var(--refyn-bot-bubble-fg);
    border-bottom-left-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.refyn-message.user .refyn-bubble {
    background: var(--refyn-user-bubble-bg); color: var(--refyn-user-bubble-fg);
    border-bottom-right-radius: 5px; box-shadow: 0 1px 4px rgba(79,70,229,0.3);
}

.refyn-message-time {
    font-size: 10px; color: #9ca3af; margin-top: 3px;
    opacity: 0; transition: opacity 0.15s; white-space: nowrap;
}
.refyn-message:hover .refyn-message-time { opacity: 1; }
.refyn-message.bot  .refyn-message-time { text-align: left;  padding-left: 33px; }
.refyn-message.user .refyn-message-time { text-align: right; }

/* Typing indicator */
.refyn-typing {
    display: flex; align-items: flex-end; gap: 7px; align-self: flex-start;
    animation: refyn-msg-in 0.2s ease;
}
.refyn-typing-bubble {
    background: var(--refyn-bot-bubble-bg);
    border-radius: 18px; border-bottom-left-radius: 5px;
    padding: 12px 15px; display: flex; align-items: center; gap: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.refyn-typing-dot {
    width: 7px; height: 7px; background: #9ca3af; border-radius: 50%;
    animation: refyn-bounce 1.3s infinite ease-in-out;
}
.refyn-typing-dot:nth-child(1) { animation-delay: 0s; }
.refyn-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.refyn-typing-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes refyn-bounce {
    0%,60%,100% { transform: translateY(0); opacity: 0.45; }
    30%          { transform: translateY(-5px); opacity: 1; }
}

/* ==========================================================================
   Input area
   ========================================================================== */

.refyn-input-area {
    border-top: 1px solid var(--refyn-border);
    padding: 9px 11px;
    display: flex; align-items: flex-end; gap: 7px;
    background: #fff; flex-shrink: 0;
}
.refyn-input-wrap { flex: 1; position: relative; }

#refyn-user-input {
    width: 100%; resize: none;
    border: 1.5px solid var(--refyn-border);
    border-radius: 14px; padding: 8px 12px;
    font-family: var(--refyn-font); font-size: 14px; color: #111827;
    background: #f9fafb; line-height: 1.5; max-height: 90px;
    overflow-y: auto; box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s; outline: none; display: block;
}
#refyn-user-input:focus {
    border-color: var(--refyn-primary); background: #fff;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
#refyn-user-input::placeholder { color: #9ca3af; }

#refyn-send-btn {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--refyn-primary); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; outline: none;
    box-shadow: 0 2px 8px rgba(79,70,229,0.35);
    transition: background 0.15s, transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
}
#refyn-send-btn:hover:not(:disabled) { background: var(--refyn-primary-dark); transform: scale(1.08); }
#refyn-send-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
#refyn-send-btn svg { width: 17px; height: 17px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.refyn-footer {
    text-align: center; font-size: 10.5px; color: #9ca3af;
    padding: 4px 0 6px; background: #fff;
    letter-spacing: 0.01em; user-select: none; flex-shrink: 0;
}
.refyn-footer a { color: #6b7280; text-decoration: none; font-weight: 500; }
.refyn-footer a:hover { color: var(--refyn-primary); }

/* ==========================================================================
   Error + Lead capture
   ========================================================================== */

.refyn-error {
    background: #fef2f2; color: #b91c1c;
    border: 1px solid #fecaca; border-radius: 12px;
    padding: 9px 13px; font-size: 13px;
    align-self: center; text-align: center; max-width: 88%;
    animation: refyn-msg-in 0.2s ease;
}

.refyn-lead-card {
    align-self: flex-start; width: calc(100% - 34px);
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px;
    padding: 11px 13px; margin-left: 33px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    animation: refyn-msg-in 0.25s ease;
}

/* Collapsed state — just title + two buttons */
.refyn-lead-collapsed { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.refyn-lead-card-title { font-weight: 600; font-size: 13px; color: #111827; flex: 1; min-width: 0; }
.refyn-lead-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.refyn-lead-expand {
    background: var(--refyn-primary); color: #fff; border: none;
    border-radius: 8px; padding: 5px 11px;
    font-family: var(--refyn-font); font-size: 12px; font-weight: 600;
    cursor: pointer; transition: background 0.15s;
    white-space: nowrap;
}
.refyn-lead-expand:hover { background: var(--refyn-primary-dark); }

/* Expanded form — use #refyn-chat-window prefix everywhere to beat theme overrides */
.refyn-lead-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

#refyn-chat-window .refyn-lead-input {
    width: 100% !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 7px 10px !important;
    font-family: var(--refyn-font) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    color: #111827 !important;
    background: #f9fafb !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
#refyn-chat-window .refyn-lead-input:focus {
    border-color: var(--refyn-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1) !important;
}
#refyn-chat-window .refyn-lead-input::placeholder { color: #9ca3af !important; }
#refyn-chat-window .refyn-lead-input.refyn-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

#refyn-chat-window .refyn-lead-submit {
    width: 100% !important;
    background: var(--refyn-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-family: var(--refyn-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    height: auto !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    margin-top: 2px !important;
    box-shadow: none !important;
}
#refyn-chat-window .refyn-lead-submit:hover:not(:disabled) { background: var(--refyn-primary-dark) !important; }
#refyn-chat-window .refyn-lead-submit:disabled { opacity: 0.6 !important; cursor: not-allowed !important; }

.refyn-lead-skip {
    background: none; border: none; color: #9ca3af; font-size: 11px;
    cursor: pointer; padding: 2px 0;
    font-family: var(--refyn-font); transition: color 0.15s;
    white-space: nowrap;
}
.refyn-lead-skip:hover { color: #6b7280; text-decoration: underline; }
.refyn-lead-success {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; background: #f0fdf4;
    border: 1.5px solid #bbf7d0; border-radius: 12px;
    font-size: 13px; color: #15803d; font-weight: 500;
    animation: refyn-msg-in 0.2s ease;
}
.refyn-lead-success svg { flex-shrink: 0; width: 18px; height: 18px; }

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 480px) {
    #refyn-chat-window {
        width: 100vw; height: 88dvh;
        bottom: 0; right: 0;
        border-radius: 16px 16px 0 0;
    }
    #refyn-chat-toggle { bottom: 18px; right: 18px; }
}
