/* =============================================
   Car-Search.ai — Chat Widget
   Brand: #EC660A orange | #151515 dark | #38B6A3 teal | #ffffff white
   ============================================= */

/* ---- Widget container (must be transparent) ---- */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent !important;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/* ---- Backdrop ---- */
.chatbot-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5) !important;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.chatbot-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* ---- Floating Trigger Button ---- */
.chatbot-trigger {
    position: relative;
    height: 52px;
    padding: 0 20px 0 16px;
    border-radius: 26px;
    background: #EC660A !important;
    border: 2px solid #EC660A;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 0 rgba(236,102,10,0);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease;
    animation: chatPulse 3s ease-in-out infinite;
}
@keyframes chatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 0 rgba(236,102,10,0.5); }
    50%       { box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 8px rgba(236,102,10,0); }
}
.chatbot-trigger:hover {
    background: #d45a08 !important;
    border-color: #d45a08;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(236,102,10,0.4);
    animation: none;
}
.chatbot-trigger.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
}
.chatbot-trigger__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #ffffff;
    transition: color 0.3s;
}
.chatbot-trigger__label { line-height: 1; }

/* ---- Badge ---- */
.chatbot-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: #38B6A3 !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* ---- Chat Window ---- */
.chatbot-window {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 40px);
    background: #1e1e1e !important;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}
.chatbot-window.size-small  { width: 380px; height: 600px; }
.chatbot-window.size-medium { width: 760px; height: 600px; }
.chatbot-window.size-large  {
    width: 80vw; height: 90vh;
    top: 50%; left: 50%; right: auto; bottom: auto;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.chatbot-window.size-large.open { transform: translate(-50%, -50%) scale(1); }
.chatbot-window.open { opacity: 1; transform: scale(1) translateY(0); pointer-events: all; }
.chatbot-window.minimized .chatbot-body,
.chatbot-window.minimized .chatbot-footer { display: none; }
.chatbot-window.minimized { height: auto; }

/* ---- Large mode: transparent internals ---- */
.chatbot-window.size-large .chatbot-header {
    background: rgba(25, 25, 25, 0.6) !important;
    border-radius: 20px 20px 0 0;
}
.chatbot-window.size-large .chatbot-body {
    background: transparent !important;
}
.chatbot-window.size-large .chatbot-footer {
    background: rgba(25, 25, 25, 0.4) !important;
}

/* ---- Header ---- */
.chatbot-header {
    background: #252525 !important;
    color: #ffffff !important;
    padding: 12px 20px;
    border-bottom: 2px solid #EC660A;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    border-bottom: none;
}
.chatbot-header-left { display: flex; align-items: center; gap: 12px; }
.chatbot-logo {
    height: 28px;
    width: auto;
    max-width: 120px;
    border-radius: 0;
    background: transparent !important;
    padding: 0;
    object-fit: contain;
    display: block;
}
.chatbot-header-text h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.02em;
}
.chatbot-status {
    font-size: 11px;
    color: rgba(255,255,255,0.7) !important;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.status-dot {
    width: 6px; height: 6px;
    background: #38B6A3 !important;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.chatbot-header-actions { display: flex; gap: 4px; }
.chatbot-minimize,
.chatbot-close {
    background: transparent !important;
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    color: rgba(255,255,255,0.8) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    opacity: 0.8;
}
.chatbot-minimize:hover,
.chatbot-close:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
    opacity: 1;
}

/* ---- Body ---- */
.chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #151515 !important;
    position: relative;
    overflow: hidden;
}


/* ---- Welcome Screen ---- */
.chatbot-welcome { text-align: center; padding: 24px 20px; }
.chatbot-welcome h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}
.chatbot-welcome p {
    margin: 0 0 20px;
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
}
.welcome-suggestions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.suggestion-btn {
    background: #1e1e1e !important;
    border: 1px solid #EC660A;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    text-align: left;
    color: #ffffff !important;
}
.suggestion-btn:hover {
    background: #EC660A !important;
    border-color: #EC660A;
    color: #ffffff !important;
    transform: translateX(4px);
}

/* ---- Messages ---- */
.chatbot-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: #151515 !important;
    scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-track { background: #151515 !important; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #EC660A !important; border-radius: 4px; }
.messages-container { display: flex; flex-direction: column; gap: 16px; }
.messages-spacer { height: 18px; flex-shrink: 0; }

.message { display: flex; gap: 12px; animation: slideIn 0.3s ease; max-width: 100%; overflow: visible; }
.message.price-vectors-message { overflow: visible; }
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.message-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #EC660A !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
    border: 1px solid #EC660A;
}
.message.user .message-avatar {
    background: #38B6A3 !important;
    color: #ffffff !important;
    border-color: #38B6A3;
}
.message-content {
    flex: 1;
    min-width: 0;
    background: #2a2a2a !important;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    line-height: 1.6;
    font-size: 14px;
    color: #e0e0e0 !important;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    overflow-x: auto;
    max-width: 100%;
}
.message.user .message-content {
    background: #EC660A !important;
    color: #ffffff !important;
}

/* ---- AI-Generated Content ---- */
.message-content div:not([class^="pv-"]), .message-content .ai-response { color: inherit; background: transparent !important; }
.message-content h1,.message-content h2,.message-content h3,
.message-content h4,.message-content h5,.message-content h6 {
    color: #ffffff !important;
    margin: 0.75rem 0 0.4rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}
.message-content h1 { font-size: 1.4em; }
.message-content h2 { font-size: 1.25em; }
.message-content h3 { font-size: 1.1em; }
.message-content p  { color: #e0e0e0 !important; margin: 0.4rem 0; line-height: 1.6; }
.message-content ul,.message-content ol { color: #e0e0e0 !important; margin: 0.4rem 0; padding-left: 1.5rem; }
.message-content li { color: #e0e0e0 !important; margin: 0.2rem 0; }
.message-content a  { color: #EC660A !important; text-decoration: underline; }
.message-content a:hover { color: #38B6A3 !important; }
.message-content strong, .message-content b { color: #ffffff !important; font-weight: 700; }
.message-content em, .message-content i { color: #e0e0e0 !important; }
.message-content code { background: #383838 !important; color: #EC660A !important; padding: 0.2em 0.4em; border-radius: 4px; font-size: 0.88em; }
.message-content pre  { background: #0d0d0d !important; color: #e0e0e0 !important; padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 0.75rem 0; }
.message-content pre code { background: transparent !important; color: #e0e0e0 !important; padding: 0; }
.message-content blockquote { background: #2a2a2a !important; color: rgba(255,255,255,0.7) !important; border-left: 3px solid #EC660A; padding: 0.75rem 1rem; margin: 0.75rem 0; border-radius: 0 6px 6px 0; }
.message-content table { border-collapse: collapse; min-width: 400px; margin: 0.75rem 0; background: #2a2a2a !important; table-layout: fixed; max-width: 100%; }
.message-content th { background: #EC660A !important; color: #ffffff !important; font-weight: 600; padding: 0.5rem; border: 1px solid #383838; text-align: left; word-wrap: break-word; overflow-wrap: break-word; }
.message-content td { background: #2a2a2a !important; color: #e0e0e0 !important; padding: 0.5rem; border: 1px solid #383838; word-wrap: break-word; overflow-wrap: break-word; }
.message-content hr { border: none; border-top: 1px solid #383838; margin: 1rem 0; }
.message-content span { color: inherit; }
.message-content button { background: #EC660A !important; color: #ffffff !important; border: none; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.message-content button:hover { opacity: 0.85; }

/* Images */
.message-content img { max-width: 100%; height: auto; display: block; border-radius: 8px; margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.message-content .image-container { max-width: 350px; margin: 0.75rem 0; }
.message-content .image-container img { max-width: 100%; width: 100%; }
.message-content > div:has(> .image-container + .image-container),
.message-content .images-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }
.message-content > div:has(> .image-container + .image-container) .image-container,
.message-content .images-grid .image-container { flex: 1 1 calc(50% - 0.5rem); min-width: 200px; max-width: 280px; margin: 0; }
.message-content .image-text-flex { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; }
.chatbot-window.size-small .message-content .image-container { max-width: 100%; }
.chatbot-window.size-small .message-content > div:has(> .image-container + .image-container) .image-container,
.chatbot-window.size-small .message-content .images-grid .image-container { flex: 1 1 100%; max-width: 100%; }
.chatbot-window.size-medium .message-content .image-container { max-width: 300px; }
.chatbot-window.size-medium .message-content > div:has(> .image-container + .image-container) .image-container,
.chatbot-window.size-medium .message-content .images-grid .image-container { flex: 1 1 calc(50% - 0.5rem); max-width: 240px; }
.chatbot-window.size-large .message-content .image-container { max-width: 350px; }
.chatbot-window.size-large .message-content > div:has(> .image-container + .image-container) .image-container,
.chatbot-window.size-large .message-content .images-grid .image-container { flex: 1 1 calc(33.333% - 0.75rem); max-width: 280px; }
.chatbot-window.size-medium .message-content .image-text-flex,
.chatbot-window.size-large  .message-content .image-text-flex { flex-direction: row; align-items: flex-start; }
.chatbot-window.size-medium .message-content .image-text-flex img,
.chatbot-window.size-large  .message-content .image-text-flex img { max-width: 250px; flex-shrink: 0; }

/* User message text always white */
.message.user .message-content h1,.message.user .message-content h2,
.message.user .message-content h3,.message.user .message-content h4,
.message.user .message-content p,.message.user .message-content li,
.message.user .message-content strong,.message.user .message-content em,
.message.user .message-content span,.message.user .message-content div,
.message.user .message-content a { color: #ffffff !important; }
.message.user .message-content code { background: rgba(255,255,255,0.15) !important; color: #ffffff !important; }
.message.user .message-content pre  { background: rgba(255,255,255,0.1) !important; color: #ffffff !important; }

/* ---- Scroll to Bottom ---- */
.scroll-to-bottom {
    position: absolute;
    bottom: 80px; right: 20px;
    width: 36px; height: 36px;
    background: #2a2a2a !important;
    border: 1px solid #EC660A;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s;
    color: #EC660A !important;
}
.scroll-to-bottom:hover { background: #EC660A !important; color: #ffffff !important; transform: translateY(-2px); }
.scroll-to-bottom.hidden { opacity: 0; pointer-events: none; }

/* ---- Footer ---- */
.chatbot-footer {
    padding: 14px 16px;
    background: #1e1e1e !important;
    border-top: 1px solid #383838;
    border-radius: 0 0 16px 16px;
    flex-shrink: 0;
}
.chatbot-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chatbot-form { display: flex; gap: 8px; align-items: flex-end; }

/* ---- Input ---- */
.chatbot-input {
    flex: 1;
    border: 1.5px solid #383838;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 16px !important;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    resize: none;
    min-height: 42px;
    max-height: 100px;
    outline: none;
    transition: border-color 0.2s;
    background: #151515 !important;
    color: #e0e0e0 !important;
    overflow-y: hidden;
}
.chatbot-input:focus { border-color: #EC660A; }
.chatbot-input::placeholder { color: #666; }

/* ---- Send Button ---- */
.chatbot-send {
    width: 42px; height: 42px;
    background: #EC660A !important;
    border: none;
    border-radius: 22px;
    color: #ffffff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.chatbot-send:hover:not(:disabled) { background: #d45a08 !important; color: #ffffff !important; transform: scale(1.05); }

/* ---- Branding Footer ---- */
.chatbot-branding {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.6;
}
.chatbot-branding em {
    font-style: normal;
    color: rgba(255,255,255,0.6) !important;
}
.chatbot-branding a {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.chatbot-branding a:hover {
    color: #EC660A !important;
}
.chatbot-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Tool Indicators ---- */
.tool-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(236, 102, 10, 0.1) !important;
    border-left: 3px solid #EC660A;
    border-radius: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.7) !important;
}

.tool-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #EC660A;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.tool-spinner.complete {
    border: 2px solid #38B6A3;
    border-top-color: #38B6A3;
    animation: none;
    position: relative;
}

.tool-spinner.complete::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #38B6A3;
    font-size: 12px;
    font-weight: bold;
}

.tool-spinner.error {
    border: 2px solid #dc3545;
    border-top-color: #dc3545;
    animation: none;
    position: relative;
}

.tool-spinner.error::after {
    content: '\2717';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #dc3545;
    font-size: 12px;
    font-weight: bold;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tool-name {
    font-weight: 500;
    color: #ffffff !important;
}

.chatbot-powered { text-align: center; font-size: 10px; color: rgba(255,255,255,0.4) !important; margin-top: 8px; font-family: 'Space Grotesk', sans-serif; }

/* ---- Suggestion chips in footer ---- */
.chatbot-suggestions .suggestion-chip {
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #EC660A;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.chatbot-suggestions .suggestion-chip:hover {
    background: #EC660A !important;
    color: #ffffff !important;
}

/* ---- Vehicle Card Grid ---- */
.model-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
}

.model-card {
    background: #2a2a2a !important;
    border: 1px solid #383838;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    will-change: transform;
    contain: layout style paint;
    backface-visibility: hidden;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-color: #EC660A;
}

.model-card::after {
    content: 'Click to learn more \2192';
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.75rem;
    color: #EC660A;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: #2a2a2a;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.model-card:hover::after {
    opacity: 1;
}

/* Disable hover effects during streaming to prevent animation conflicts */
.message.streaming .model-card {
    cursor: default;
    pointer-events: none;
}

.message.streaming .model-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-color: #383838;
}

.message.streaming .model-card::after {
    display: none;
}

.model-image-container {
    width: 100%;
    height: 180px;
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    contain: strict;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.model-image-container::before {
    content: 'No Image';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #555;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.model-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
}

.model-image-container img:hover {
    opacity: 0.95;
}

.model-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.model-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
}

.model-type {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6) !important;
    font-weight: 500;
}

.model-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.model-specs li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: #e0e0e0 !important;
    border-bottom: 1px solid #383838;
}

.model-specs li:last-child {
    border-bottom: none;
}

/* ---- Vehicle Detail Layout (card + description side by side) ---- */
.vehicle-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0.75rem 0;
}

.vehicle-detail-description {
    background: #2a2a2a;
    border: 1px solid #383838;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75) !important;
    line-height: 1.6;
}

.vehicle-detail-description p {
    margin: 0;
    color: rgba(255,255,255,0.75) !important;
}

/* ---- Vehicle Features Section ---- */
.vehicle-features-section {
    background: #2a2a2a;
    border: 1px solid #383838;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
}

.vehicle-features-heading {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.vehicle-features-count {
    font-weight: 400;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.vehicle-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vehicle-feature-link {
    display: inline-flex;
    align-items: center;
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 4px 10px;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.vehicle-feature-link:hover {
    background: #3a3a3a;
    border-color: #EC660A;
    color: #fff !important;
}

.vehicle-feature-link::after {
    content: none;
}

.feature-image-indicator {
    font-size: 0.65rem;
    margin-right: 4px;
    opacity: 0.7;
}

.vehicle-feature-link:hover .feature-image-indicator {
    opacity: 1;
}

.vehicle-features-category {
    margin-bottom: 10px;
}

.vehicle-features-category:last-child {
    margin-bottom: 0;
}

.vehicle-features-category-heading {
    margin: 0 0 6px 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-features-show-all {
    display: inline-block;
    margin-top: 10px;
    color: #EC660A !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.vehicle-features-show-all:hover {
    color: #ff8533 !important;
    text-decoration: underline !important;
}

/* ---- Vehicle Detail View ---- */
.vehicle-detail {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #383838;
    margin: 0;
    max-width: 600px;
}

.vehicle-detail .model-image-container {
    height: auto !important;
    aspect-ratio: 16 / 10;
    border-radius: 12px 12px 0 0;
}

.vehicle-detail-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #EC660A #2a2a2a;
    gap: 2px;
}

.gallery-scroll::-webkit-scrollbar {
    height: 6px;
}
.gallery-scroll::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 3px;
}
.gallery-scroll::-webkit-scrollbar-thumb {
    background: #EC660A;
    border-radius: 3px;
}

.gallery-scroll img {
    flex: 0 0 85%;
    max-width: 85%;
    height: 220px;
    object-fit: cover;
    scroll-snap-align: start;
    border-radius: 0;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.gallery-scroll img:hover {
    opacity: 0.9;
}

.gallery-scroll img:first-child {
    border-radius: 12px 0 0 0;
}

.vehicle-detail-info {
    padding: 1rem 1.25rem;
}

.vehicle-detail-info h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
}

.vehicle-detail-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #EC660A !important;
    margin: 0.5rem 0 0.75rem 0;
}

.vehicle-description {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7) !important;
    line-height: 1.5;
    margin: 0.75rem 0 0 0;
    border-top: 1px solid #383838;
    padding-top: 0.75rem;
}

/* ---- Image Card (vehicle detail images) ---- */
.image-card {
    background: #2a2a2a;
    border: 1px solid #383838;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: zoom-in;
}

.image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: #EC660A;
}

.image-card::after {
    content: 'Click to enlarge';
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.7rem;
    color: #EC660A;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: rgba(30,30,30,0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.image-card:hover::after {
    opacity: 1;
}

.image-card .model-image-container {
    cursor: zoom-in;
    height: 160px;
}

.image-card .model-info {
    padding: 0.5rem 0.75rem;
}

.image-card .model-info .model-type {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Image Lightbox ---- */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

/* Image card grid sizes */
.chatbot-window.size-medium .image-card .model-image-container {
    height: 180px;
}

.chatbot-window.size-large .image-card .model-image-container {
    height: 220px;
}

/* ---- Suggestion Chips in AI Response ---- */
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.message-content .suggestion-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
    border: 1px solid #EC660A;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.message-content .suggestion-chip:hover {
    background: #EC660A !important;
    color: #ffffff !important;
    border-color: #EC660A;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(236, 102, 10, 0.25);
}

/* ---- AI Response Wrapper ---- */
.ai-response {
    width: 100%;
}

/* ---- Contact Gate Form ---- */
.contact-gate-container {
    background: linear-gradient(135deg, #EC660A 0%, #d45a08 100%) !important;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    color: white;
}

.contact-gate-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff !important;
}

.contact-gate-message {
    margin: 0 0 20px 0;
    opacity: 0.95;
    line-height: 1.5;
    color: #ffffff !important;
}

.contact-gate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-input,
.contact-textarea {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px !important;
    font-family: 'DM Sans', sans-serif;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1A1A1A !important;
    transition: all 0.2s;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #666;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.contact-textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-submit {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #EC660A !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Space Grotesk', sans-serif;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #ffffff !important;
}

.contact-privacy-note {
    margin: 16px 0 0 0;
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
    color: #ffffff !important;
}

/* ---- Size-specific vehicle card adjustments ---- */
.chatbot-window.size-medium .model-grid {
    grid-template-columns: repeat(2, 1fr);
}

.chatbot-window.size-medium .model-image-container {
    height: 200px;
}

.chatbot-window.size-large .model-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    max-width: 1400px;
}

.chatbot-window.size-large .model-image-container {
    height: 220px;
}

.chatbot-window.size-medium .gallery-scroll img {
    flex: 0 0 60%;
    max-width: 60%;
    height: 260px;
}

.chatbot-window.size-large .gallery-scroll img {
    flex: 0 0 45%;
    max-width: 45%;
    height: 320px;
}

/* Vehicle detail layout per window size */
.chatbot-window.size-medium .vehicle-detail {
    max-width: none;
    display: flex;
    flex-direction: row;
}

.chatbot-window.size-medium .vehicle-detail .model-image-container {
    flex: 0 0 40%;
    border-radius: 12px 0 0 12px;
    aspect-ratio: 16 / 10;
}

.chatbot-window.size-medium .vehicle-detail .vehicle-detail-info {
    flex: 1;
    min-width: 0;
}

.chatbot-window.size-medium .vehicle-detail-layout {
    flex-direction: column;
}

.chatbot-window.size-medium .vehicle-detail-description {
    min-width: 0;
}

.chatbot-window.size-large .vehicle-detail {
    max-width: none;
    display: flex;
    flex-direction: row;
}

.chatbot-window.size-large .vehicle-detail .model-image-container {
    flex: 0 0 45%;
    border-radius: 12px 0 0 12px;
    aspect-ratio: 16 / 10;
}

.chatbot-window.size-large .vehicle-detail .vehicle-detail-info {
    flex: 1;
    min-width: 0;
}

.chatbot-window.size-large .vehicle-detail-layout {
    flex-direction: column;
}

.chatbot-window.size-large .vehicle-detail-description {
    min-width: 0;
}

/* Image card grid: 2 columns in medium/large windows */
.chatbot-window.size-medium .model-grid .image-card .model-image-container {
    height: 180px;
}

.chatbot-window.size-large .model-grid .image-card .model-image-container {
    height: 200px;
}

/* ---- Service Grid ---- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
}

.service-card {
    background: #2a2a2a !important;
    border: 1px solid #383838;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    padding: 1rem;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: #EC660A;
}

.service-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif;
}

.service-card p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7) !important;
    line-height: 1.5;
}

/* ---- Wide Content Scrolling ---- */
.message-content div[style*="width"] {
    max-width: 100%;
    overflow-x: auto;
}

/* Horizontal scrollbar styling */
.message-content::-webkit-scrollbar,
.message-content table::-webkit-scrollbar {
    height: 6px;
}

.message-content::-webkit-scrollbar-track,
.message-content table::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 3px;
}

.message-content::-webkit-scrollbar-thumb,
.message-content table::-webkit-scrollbar-thumb {
    background: #383838;
    border-radius: 3px;
}

.message-content::-webkit-scrollbar-thumb:hover,
.message-content table::-webkit-scrollbar-thumb:hover {
    background: #EC660A;
}

/* ---- Mobile ---- */
@media (max-width: 900px) {
    .chatbot-trigger { display: none !important; }
    .chatbot-widget { bottom: 80px; }
    .chatbot-window,
    .chatbot-window.size-small,
    .chatbot-window.size-medium,
    .chatbot-window.size-large {
        width: 100% !important; height: 100dvh !important;
        max-width: 100vw !important; max-height: 100dvh !important;
        bottom: 0 !important; right: 0 !important; top: 0 !important; left: 0 !important;
        border-radius: 0 !important; transform: none !important; position: fixed !important;
    }
    .chatbot-window.size-large.open { transform: none !important; }
    .chatbot-backdrop { display: none !important; }
    .chatbot-header { border-radius: 0; padding: 12px 16px; }
    .chatbot-footer { border-radius: 0; padding: 12px 16px; }
    .chatbot-messages { padding: 12px; }
    .chatbot-minimize { display: none !important; }
    .service-grid { grid-template-columns: 1fr !important; gap: 0.75rem; margin: 0.75rem 0; }
    .model-grid { grid-template-columns: 1fr !important; }
    .model-image-container { height: auto !important; aspect-ratio: 16 / 10; }
    .image-card .model-image-container { height: 180px !important; aspect-ratio: auto; }
    .vehicle-detail { max-width: 100% !important; flex-direction: column !important; }
    .vehicle-detail .model-image-container { flex: none !important; border-radius: 12px 12px 0 0 !important; width: 100% !important; }
    .vehicle-detail .vehicle-detail-info { width: 100% !important; }
    .vehicle-detail-layout { flex-direction: column !important; }
    .vehicle-detail-description { font-size: 0.85rem; }
    .messages-container { gap: 12px; }
    .pv-gauges { gap: 6px; }
    .pv-gauge { min-width: 70px; padding: 8px 4px 6px; }
    .pv-gauge-heading { font-size: 9px; }
    .pv-gauge-label { font-size: 9px; }
    .pv-gauge-value { font-size: 10px; }
    .message-content .image-container { max-width: 100%; }
    .message-content > div:has(> .image-container + .image-container) .image-container,
    .message-content .images-grid .image-container { flex: 1 1 100%; max-width: 100%; }
    .message-content .image-text-flex { flex-direction: column !important; }
    .message-content { overflow-x: auto; max-width: 100%; }
    .message-content table { min-width: 400px; display: block; overflow-x: auto; }
    .vehicle-features-section { max-width: 100%; overflow: hidden; box-sizing: border-box; }
    .vehicle-features-list { max-width: 100%; overflow: hidden; }
    .vehicle-feature-link { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}

/* Contact capture form */
.contact-capture-form input {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 16px !important;
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #383838 !important;
}

.contact-capture-form button {
    background: #EC660A !important;
    color: #ffffff !important;
}

.contact-capture-form button:hover {
    opacity: 0.9;
}

/* System messages */
.message.system .message-content {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* ---- Price Vector Gauges ---- */
.pv-container {
    width: 100%;
    max-width: 600px;
    padding: 0;
    overflow: visible;
}
.pv-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--csa-text-primary, #e4e4e4);
    margin: 0 0 2px 0;
}
.pv-subtitle {
    font-size: 11px;
    color: var(--csa-text-secondary, #999);
    margin: 0 0 12px 0;
}
.pv-gauges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}
.pv-gauge {
    flex: 1 1 80px;
    min-width: 80px;
    max-width: 180px;
    text-align: center;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px;
    padding: 10px 8px 8px;
}
.pv-gauge-heading {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--csa-text-secondary, #999);
    margin-bottom: 4px;
}
.pv-gauge-svg {
    width: 100%;
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
    overflow: visible;
}
.pv-gauge-baseline {
    stroke: var(--csa-border, rgba(255,255,255,0.1));
    stroke-width: 1;
    stroke-dasharray: 3 3;
}
.pv-gauge-arrow {
    stroke-width: 3;
    stroke-linecap: round;
}
.pv-gauge-arrowhead {
    stroke: none;
}
.pv-gauge-label {
    font-size: 10px;
    font-weight: 600;
    margin-top: 6px;
    word-break: break-word;
}
.pv-gauge-value {
    font-size: 11px;
    font-weight: 700;
    color: #e4e4e4 !important;
    margin-top: 2px;
}
.pv-gauge-note {
    font-size: 9px;
    color: #777 !important;
}

/* Price vectors message overrides */
.price-vectors-message .message-content {
    overflow: visible;
    padding: 14px;
}

/* Signal colors */
.pv-strong-up .pv-gauge-arrow { stroke: #22c55e !important; }
.pv-strong-up .pv-gauge-arrowhead { fill: #22c55e !important; }
.pv-strong-up .pv-gauge-label { color: #22c55e !important; }
.pv-slight-up .pv-gauge-arrow { stroke: #4ade80 !important; }
.pv-slight-up .pv-gauge-arrowhead { fill: #4ade80 !important; }
.pv-slight-up .pv-gauge-label { color: #4ade80 !important; }
.pv-flat .pv-gauge-arrow { stroke: #a3e635 !important; }
.pv-flat .pv-gauge-arrowhead { fill: #a3e635 !important; }
.pv-flat .pv-gauge-label { color: #a3e635 !important; }
.pv-slow-down .pv-gauge-arrow { stroke: #facc15 !important; }
.pv-slow-down .pv-gauge-arrowhead { fill: #facc15 !important; }
.pv-slow-down .pv-gauge-label { color: #facc15 !important; }
.pv-moderate-down .pv-gauge-arrow { stroke: #f97316 !important; }
.pv-moderate-down .pv-gauge-arrowhead { fill: #f97316 !important; }
.pv-moderate-down .pv-gauge-label { color: #f97316 !important; }
.pv-steep-down .pv-gauge-arrow { stroke: #ef4444 !important; }
.pv-steep-down .pv-gauge-arrowhead { fill: #ef4444 !important; }
.pv-steep-down .pv-gauge-label { color: #ef4444 !important; }
.pv-very-steep-down .pv-gauge-arrow { stroke: #dc2626 !important; }
.pv-very-steep-down .pv-gauge-arrowhead { fill: #dc2626 !important; }
.pv-very-steep-down .pv-gauge-label { color: #dc2626 !important; }

/* ---- Canned Chart Components (csa-chart) ---- */
.csa-chart { background: transparent !important; }
.csa-chart-title {
    font-size: 1em !important;
    font-weight: 700 !important;
    color: var(--csa-text-primary) !important;
    margin: 0 0 12px 0 !important;
}

/* Stats chart */
.csa-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}
.csa-stat-card {
    background: var(--csa-bg-tertiary) !important;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.csa-stat-icon { font-size: 1.3em; }
.csa-stat-value {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--csa-text-primary) !important;
}
.csa-stat-label {
    font-size: 0.75em;
    color: var(--csa-text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bar chart */
.csa-bar-area {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 200px;
    padding: 0 4px;
    border-bottom: 2px solid var(--csa-border-color);
}
.csa-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    height: 100%;
    justify-content: flex-end;
}
.csa-bar-fill {
    width: 100%;
    max-width: 40px;
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height 0.5s ease;
}
.csa-bar-value {
    font-size: 0.65em;
    color: var(--csa-text-secondary) !important;
    white-space: nowrap;
}
.csa-bar-label {
    font-size: 0.7em;
    color: var(--csa-text-secondary) !important;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.csa-axis-label {
    text-align: center;
    font-size: 0.75em;
    color: var(--csa-text-secondary) !important;
    margin-top: 8px;
}

/* Line chart */
.csa-chart-svg {
    width: 100%;
    height: auto;
    overflow: visible !important;
}
.csa-grid-line {
    stroke: var(--csa-border-color);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}
.csa-y-label {
    font-size: 11px;
    fill: var(--csa-text-secondary);
    text-anchor: end;
}
.csa-x-label {
    font-size: 11px;
    fill: var(--csa-text-secondary);
    text-anchor: middle;
}
.csa-data-point {
    cursor: pointer;
    transition: r 0.15s ease;
}
.csa-data-point:hover {
    r: 6;
}

/* Legend */
.csa-chart-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}
.csa-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: var(--csa-text-secondary) !important;
}
.csa-legend-swatch,
.dark .csa-legend-swatch,
html .csa-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    background-color: var(--swatch-color, #00d4ff) !important;
}

/* Override .dark * for chart SVG elements */
.csa-chart-svg *,
.dark .csa-chart-svg *,
html .csa-chart-svg * {
    background-color: transparent !important;
    background-image: none !important;
}
.csa-chart-svg polyline,
.dark .csa-chart-svg polyline {
    stroke: var(--line-color, #00d4ff);
}
.csa-chart-svg circle,
.dark .csa-chart-svg circle {
    fill: var(--point-color, #00d4ff);
}
.csa-grid-line,
.dark .csa-grid-line {
    stroke: var(--csa-border-color, rgba(255,255,255,0.1)) !important;
}
.csa-y-label,
.dark .csa-y-label {
    fill: var(--csa-text-secondary, rgba(255,255,255,0.5)) !important;
    color: var(--csa-text-secondary, rgba(255,255,255,0.5)) !important;
}
.csa-x-label,
.dark .csa-x-label {
    fill: var(--csa-text-secondary, rgba(255,255,255,0.5)) !important;
    color: var(--csa-text-secondary, rgba(255,255,255,0.5)) !important;
}

/* Legacy inline charts */
.message-content svg { overflow: visible !important; max-width: 100%; }

/* ---- Location Indicator ---- */
.chatbot-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    flex: 1;
    justify-content: center;
    min-width: 0;
}
.chatbot-location svg {
    color: var(--gold, #EC660A);
    flex-shrink: 0;
}
.chatbot-location-change {
    background: none;
    border: none;
    color: var(--gold, #EC660A);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 2px;
    flex-shrink: 0;
}
.chatbot-location-change:hover {
    color: #fff;
}
#chatbotLocationText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}
