/* ===== TumuTrip Chat Concierge ("一句话下单") =====
   Namespace: .tumu-chat-*
   Reuses common.css variables (--primary-color etc.).
   z-index kept at 90 so jQuery UI autocomplete (.ui-autocomplete, 100+)
   is never obscured by the chat panel. */

.tumu-chat-root {
    --tc-z: 90;
    --tc-header-h: 60px;
    --tc-composer-h: 64px;
    font-family: var(--font-primary);
}

/* ---------- Floating launcher ---------- */
.tumu-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: var(--tc-z);
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.tumu-chat-launcher:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(108, 92, 231, 0.5);
}

.tumu-chat-launcher:active {
    transform: translateY(0) scale(0.98);
}

.tumu-chat-launcher .tumu-chat-launcher-icon-close { display: none; }
.tumu-chat-root.is-open .tumu-chat-launcher .tumu-chat-launcher-icon-chat { display: none; }
.tumu-chat-root.is-open .tumu-chat-launcher .tumu-chat-launcher-icon-close { display: inline; }

/* soft attention pulse until first open */
.tumu-chat-launcher::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.5);
    animation: tumu-chat-pulse 2.8s infinite;
    pointer-events: none;
}
.tumu-chat-root.is-open .tumu-chat-launcher::after,
.tumu-chat-root.is-touched .tumu-chat-launcher::after {
    animation: none;
}
@keyframes tumu-chat-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.45); }
    70%  { box-shadow: 0 0 0 16px rgba(108, 92, 231, 0); }
    100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); }
}

/* ---------- Panel (drawer) ---------- */
.tumu-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 92px;
    width: 380px;
    height: 560px;
    max-height: calc(100vh - 120px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: var(--tc-z);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.24s;
    border: 1px solid rgba(108, 92, 231, 0.1);
}
.tumu-chat-root.is-open .tumu-chat-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ---------- Header ---------- */
.tumu-chat-header {
    height: var(--tc-header-h);
    flex: 0 0 auto;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    position: relative;
}
.tumu-chat-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 18%, rgba(255,255,255,0.18), transparent 46%);
    pointer-events: none;
}
.tumu-chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,0.28);
}
.tumu-chat-header-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tumu-chat-header-title { font-size: 15px; font-weight: 700; letter-spacing: 0.2px; }
.tumu-chat-header-sub {
    font-size: 11.5px;
    opacity: 0.86;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tumu-chat-status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #7CFFB2;
    box-shadow: 0 0 0 3px rgba(124, 255, 178, 0.25);
    flex: 0 0 auto;
}
.tumu-chat-header-close {
    margin-left: auto;
    background: rgba(255,255,255,0.16);
    border: none;
    color: var(--white);
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    flex: 0 0 auto;
}
.tumu-chat-header-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }

.tumu-chat-modes { display: flex; flex: 0 0 auto; padding: 8px 14px; gap: 8px; border-bottom: 1px solid var(--border-color); }
.tumu-chat-modes button { flex: 1; min-width: 0; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--white); color: var(--text-color); padding: 9px 6px; font: inherit; font-size: 12px; cursor: pointer; }
.tumu-chat-modes button[aria-pressed="true"] { border-color: var(--primary-color); color: var(--primary-color); font-weight: 700; }
.tumu-chat-modes button:disabled { opacity: .55; cursor: not-allowed; }
.tumu-chat-root button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.tumu-chat-root.is-lookup .tumu-chat-composer { display: none; }
.tumu-lookup-form h3 { margin: 0 0 10px; font-size: 17px; color: var(--text-color); }
.tumu-lookup-hint { font-size: 12px; line-height: 1.65; color: var(--text-color); margin-bottom: 14px; }
.tumu-lookup-verified { font-size: 12px; font-weight: 600; color: var(--primary-color); }
#tumuLookupStatus { margin: 12px 0 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#tumuLookupChallenge { margin-top: 14px; }
#tumuLookupChallenge[hidden] { display: none; }
.tumu-lookup-order { border: 1px solid var(--border-color); border-left: 3px solid var(--primary-color); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; background: var(--white); overflow-wrap: anywhere; }
.tumu-lookup-order-type { font-size: 11px; font-weight: 600; color: var(--primary-color); }
.tumu-lookup-order h4 { font-size: 14px; margin: 6px 0 10px; }
.tumu-lookup-order p { font-size: 12px; line-height: 1.5; margin: 5px 0; }
.tumu-lookup-status { display: inline-block; margin-top: 8px; padding: 3px 8px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 11px; }

/* ---------- Message stream ---------- */
.tumu-chat-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 14px 8px;
    background:
        linear-gradient(180deg, rgba(108,92,231,0.035), rgba(108,92,231,0) 120px),
        var(--light-gray);
    -webkit-overflow-scrolling: touch;
}
.tumu-chat-body::-webkit-scrollbar { width: 6px; }
.tumu-chat-body::-webkit-scrollbar-thumb { background: rgba(108,92,231,0.28); border-radius: 3px; }

.tumu-chat-msg-row {
    display: flex;
    margin-bottom: 12px;
    animation: tumu-chat-msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes tumu-chat-msg-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tumu-chat-msg-row.bot { justify-content: flex-start; }
.tumu-chat-msg-row.user { justify-content: flex-end; }

.tumu-chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.tumu-chat-msg-row.bot .tumu-chat-bubble {
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 5px;
}
.tumu-chat-msg-row.user .tumu-chat-bubble {
    background: var(--gradient-primary);
    color: var(--white);
    border-bottom-right-radius: 5px;
}
.tumu-chat-bubble a { color: inherit; text-decoration: underline; font-weight: 600; }
.tumu-chat-msg-row.bot .tumu-chat-bubble a { color: var(--primary-color); }

.tumu-chat-time {
    display: block;
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
}

/* ---------- Typing indicator ---------- */
.tumu-chat-typing .tumu-chat-bubble {
    display: flex; align-items: center; gap: 5px;
    padding: 12px 16px;
}
.tumu-chat-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary-light);
    animation: tumu-chat-bounce 1.3s infinite ease-in-out;
}
.tumu-chat-dot:nth-child(2) { animation-delay: 0.18s; }
.tumu-chat-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes tumu-chat-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ---------- Cards (quote / confirm / success) ---------- */
.tumu-chat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    width: 100%;
    animation: tumu-chat-msg-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tumu-chat-card-row { margin-bottom: 12px; }

/* quote card */
.tumu-chat-quote {
    display: flex;
    gap: 12px;
    padding: 12px;
    align-items: center;
    transition: var(--transition);
}
.tumu-chat-quote:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tumu-chat-quote.recommended {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.16), var(--shadow-sm);
    position: relative;
}
.tumu-chat-quote-img {
    width: 62px; height: 46px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--light-gray);
    flex: 0 0 auto;
}
.tumu-chat-quote-main { flex: 1 1 auto; min-width: 0; }
.tumu-chat-quote-name {
    font-size: 14px; font-weight: 700; color: var(--text-color);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.tumu-chat-badge-rec {
    font-size: 10px; font-weight: 700;
    background: var(--gradient-accent); color: var(--white);
    padding: 1px 7px; border-radius: 10px; letter-spacing: 0.3px;
}
.tumu-chat-quote-meta {
    font-size: 12px; color: var(--medium-gray);
    margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap;
}
.tumu-chat-quote-meta i { margin-right: 4px; color: var(--primary-light); }
.tumu-chat-quote-right { text-align: right; flex: 0 0 auto; }
.tumu-chat-quote-price {
    font-size: 17px; font-weight: 800; color: var(--primary-color); line-height: 1;
}
.tumu-chat-select-btn {
    margin-top: 8px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.tumu-chat-select-btn:hover { box-shadow: 0 4px 12px rgba(108,92,231,0.35); transform: translateY(-1px); }
.tumu-chat-select-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* summary block inside confirm card */
.tumu-chat-summary {
    background: linear-gradient(135deg, rgba(108,92,231,0.07), rgba(9,132,227,0.05));
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}
.tumu-chat-summary-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.6px; color: var(--primary-color); margin-bottom: 8px;
}
.tumu-chat-summary-line {
    font-size: 13px; color: var(--text-color); margin-bottom: 5px;
    display: flex; align-items: flex-start; gap: 8px;
}
.tumu-chat-summary-line i { color: var(--primary-light); margin-top: 3px; width: 14px; flex: 0 0 auto; }
.tumu-chat-summary-line strong { font-weight: 700; }

/* confirm form */
.tumu-chat-form { padding: 12px 14px 14px; }
.tumu-chat-form-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.6px; color: var(--medium-gray); margin-bottom: 10px;
}
.tumu-chat-field { margin-bottom: 10px; }
.tumu-chat-field label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text-light); margin-bottom: 4px;
}
.tumu-chat-field label .tumu-chat-opt { color: var(--medium-gray); font-weight: 400; }
.tumu-chat-field .req { color: var(--danger-color); }
.tumu-chat-field input,
.tumu-chat-field textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: var(--font-primary);
    transition: var(--transition);
    box-sizing: border-box;
    background: var(--white);
}
.tumu-chat-field textarea { min-height: 54px; resize: vertical; }
.tumu-chat-field input:focus,
.tumu-chat-field textarea:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}
.tumu-chat-field.tc-error input,
.tumu-chat-field.tc-error textarea { border-color: var(--danger-color); }
.tumu-chat-field-err {
    display: block; color: var(--danger-color); font-size: 11px; margin-top: 3px;
}
.tumu-chat-form-actions { margin-top: 12px; }

/* generic chat buttons */
.tumu-chat-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    padding: 11px 18px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-decoration: none;
    text-align: center;
}
.tumu-chat-btn:hover { box-shadow: 0 6px 18px rgba(108,92,231,0.38); transform: translateY(-1px); }
.tumu-chat-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.tumu-chat-btn.ghost {
    background: transparent; color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}
.tumu-chat-btn.ghost:hover { background: rgba(108,92,231,0.06); box-shadow: none; }
.tumu-chat-btn.accent { background: var(--gradient-accent); }
.tumu-chat-btn + .tumu-chat-btn { margin-top: 8px; }

.tumu-chat-link-fallback {
    display: inline-block; margin-top: 10px;
    font-size: 12.5px; color: var(--primary-color);
    text-decoration: underline; cursor: pointer; font-weight: 600;
}

/* success card */
.tumu-chat-success { text-align: center; padding: 22px 18px; }
.tumu-chat-success-icon {
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--white); font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 0 0 6px rgba(0,184,148,0.15);
    animation: tumu-chat-pop 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes tumu-chat-pop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.tumu-chat-success-title { font-size: 16px; font-weight: 800; color: var(--text-color); margin-bottom: 6px; }
.tumu-chat-success-msg { font-size: 13px; color: var(--text-light); line-height: 1.55; margin-bottom: 12px; }
.tumu-chat-orderno {
    display: inline-block; font-size: 13px; font-weight: 700;
    color: var(--primary-color); background: rgba(108,92,231,0.08);
    padding: 6px 14px; border-radius: var(--radius-xl); margin-bottom: 14px;
    letter-spacing: 0.4px;
}

/* pending / attention card */
.tumu-chat-pending { padding: 18px 16px; text-align: center; }
.tumu-chat-pending-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(253,203,110,0.2); color: #E0A800; font-size: 22px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.tumu-chat-pending-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-color); }
.tumu-chat-pending-text { font-size: 12.5px; color: var(--text-light); line-height: 1.5; margin-bottom: 14px; }

/* ---------- Composer ---------- */
.tumu-chat-composer {
    flex: 0 0 auto;
    min-height: var(--tc-composer-h);
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
    background: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tumu-chat-input {
    flex: 1 1 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 10px 16px;
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition);
    min-width: 0;
    background: var(--light-gray);
}
.tumu-chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
    background: var(--white);
}
.tumu-chat-input:disabled { opacity: 0.6; cursor: not-allowed; }
.tumu-chat-send {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.tumu-chat-send:hover { box-shadow: 0 4px 12px rgba(108,92,231,0.4); transform: scale(1.06); }
.tumu-chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.tumu-chat-hidden { display: none !important; }

/* ---------- Format hint card (input guide) ---------- */
.tumu-chat-format-hint {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(108,92,231,0.04) 0%, rgba(0,184,148,0.03) 100%);
    border: 1px solid rgba(108,92,231,0.12);
    border-radius: var(--radius-md);
}
.tumu-chat-format-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tumu-chat-format-title i {
    font-size: 13px;
    opacity: 0.85;
}
.tumu-chat-format-template {
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.6;
    padding: 7px 10px;
    background: var(--white);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.2px;
}
.tumu-chat-format-examples {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tumu-chat-format-example {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-light);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}
.tumu-chat-format-example:hover {
    background: rgba(108,92,231,0.06);
    border-color: rgba(108,92,231,0.18);
    color: var(--primary-color);
}
.tumu-chat-format-example:active {
    transform: scale(0.98);
}
.tumu-chat-format-example i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 9px;
    color: var(--primary-light);
}
.tumu-chat-format-example span {
    flex: 1 1 auto;
    word-break: break-word;
}

/* ---------- Shake animation (empty input hint) ---------- */
@keyframes tumu-chat-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(5px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    90% { transform: translateX(1px); }
}
.tumu-chat-shake {
    animation: tumu-chat-shake 0.45s ease-in-out;
}

/* ---------- Toggle button group (Meet & Greet) ---------- */
.tumu-chat-toggle-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tumu-chat-toggle-group {
    display: flex;
    gap: 8px;
}
.tumu-chat-toggle-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--light-gray);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tumu-chat-toggle-btn:hover {
    border-color: var(--primary-light);
    background: rgba(108, 92, 231, 0.04);
}
.tumu-chat-toggle-btn.active {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.15);
}

/* ---------- Stepper control (child seat count) ---------- */
.tumu-chat-stepper-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tumu-chat-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: fit-content;
}
.tumu-chat-step-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-gray);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.tumu-chat-step-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}
.tumu-chat-step-btn:active {
    background: rgba(108, 92, 231, 0.18);
}
.tumu-chat-stepper input[type="number"] {
    width: 44px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    background: var(--white);
    -moz-appearance: textfield;
}
.tumu-chat-stepper input[type="number"]::-webkit-inner-spin-button,
.tumu-chat-stepper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---------- Hint text ---------- */
.tumu-chat-hint {
    font-size: 11.5px;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 2px;
}

/* ---------- Toast bubble (transient hint) ---------- */
.tumu-chat-toast {
    background: rgba(108, 92, 231, 0.08) !important;
    border: 1px solid rgba(108, 92, 231, 0.18);
    color: var(--primary-color) !important;
    font-size: 12.5px;
    font-weight: 500;
    animation: tumu-chat-toast-in 0.25s ease-out;
}
@keyframes tumu-chat-toast-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Recommended badge ---------- */
.tumu-chat-badge-rec {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: var(--radius-xl);
    margin-left: 8px;
    vertical-align: middle;
}

/* ---------- Quote card recommended highlight ---------- */
.tumu-chat-quote.recommended {
    border-color: var(--primary-light);
    background: rgba(108, 92, 231, 0.02);
    box-shadow: 0 2px 12px rgba(108, 92, 231, 0.1);
}

/* ---------- Mobile (<= 375px full screen, <= 480 near-full) ---------- */
@media (max-width: 480px) {
    .tumu-chat-launcher { right: 16px; bottom: 16px; }
    .tumu-chat-panel {
        right: 0; left: 0; bottom: 0; top: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        transform: translateY(20px);
        z-index: 101;
    }
    .tumu-chat-root.is-open .tumu-chat-panel { transform: translateY(0); }
    .tumu-chat-root.is-open .tumu-chat-launcher { display: none; }
    .tumu-chat-bubble { max-width: 88%; }
}
