/* Legacy Future2000 chatbot styles (chat-only scope) */
/* Hardcode the original site CSS variables so this works independently of the rebuild's :root */
:root {
    --accent-color: #1e3a8a;
    --accent-secondary-color: #2563eb;
    --white-color: #FFFFFF;
    --divider-color: #EEEEEE;
    --secondary-color: #F8F8F8;
    --body-color: #1a1a1a;
}
/* AI Chat Widget Styles */

/* Chat Toggle Button - La Sala Style */
.chat-widget-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 8px;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 999999;
    transition: all 0.3s ease;
    border: none;
    animation: chatBounce 3s ease-in-out infinite;
}

@keyframes chatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.chat-widget-toggle:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.2);
    animation: none;
}

.chat-toggle-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: visible;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
    padding: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-avatar img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white-color);
    padding: 2px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transform-origin: bottom center;
}

.chat-toggle-avatar img:hover {
    transform: scale(2.5);
    z-index: 99999;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.chat-toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--body-color);
    white-space: nowrap;
}

.chat-toggle-close {
    display: none;
    width: 24px;
    height: 24px;
    fill: var(--body-color);
}

.chat-widget-toggle.active {
    padding: 12px;
    border-radius: 50%;
    animation: none;
}

.chat-widget-toggle.active .chat-toggle-avatar,
.chat-widget-toggle.active .chat-toggle-label {
    display: none;
}

.chat-widget-toggle.active .chat-toggle-close {
    display: block;
}

/* Chat Container */
.chat-widget-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 650px;
    max-height: calc(100vh - 150px);
    background: var(--white-color);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.chat-widget-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-widget-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
    color: var(--white-color);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-widget-avatar {
    width: 55px;
    height: 55px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 5px;
}

.chat-widget-avatar img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transform-origin: top center;
}

.chat-widget-avatar img:hover {
    transform: scale(2.5);
    z-index: 99999;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.chat-widget-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chat-widget-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
}

.chat-widget-close {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-widget-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-widget-close svg {
    width: 16px;
    height: 16px;
    fill: var(--white-color);
}

/* Chat Messages */
.chat-widget-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    background: #f8f9fa;
}

.chat-widget-messages > * {
    width: 100%;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    background: #1e3a8a;
    color: var(--white-color);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant {
    background: var(--white-color);
    color: #1a1a1a;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bot message row with avatar */
.chat-message-row.assistant {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 85%;
    margin-right: auto;
}
.chat-message-row.assistant .chat-message.assistant {
    max-width: 100%;
    margin-right: 0;
}
.chat-msg-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: contain;
    background: var(--white-color);
}

/* Smart navigation links in chat */
.chat-message.assistant .chat-link {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chat-message.assistant .chat-link:hover {
    color: var(--accent-secondary-color);
    text-decoration: underline;
}

/* WhatsApp Handoff Button */
.whatsapp-handoff {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 12px;
    animation: fadeInUp 0.3s ease;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    color: #128C7E;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #075E54;
}

.whatsapp-btn svg {
    flex-shrink: 0;
}

.whatsapp-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
}

/* Lead Confirmation Card */
.lead-confirmation-card {
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fff;
}
.lead-card-header {
    background: #1e3a8a;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.lead-card-body {
    padding: 10px 12px;
}
.lead-card-row {
    padding: 4px 0;
    font-size: 0.82rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.lead-card-row:last-child {
    border-bottom: none;
}
.lead-label {
    font-weight: 600;
    color: #1e3a8a;
}

/* Smart Image Gallery in Chat */
.chat-image-gallery {
    display: flex;
    gap: 0;
    margin: -12px -16px 12px -16px;
    overflow: hidden;
    padding-bottom: 0;
    border-radius: 18px 18px 0 0;
}

.chat-image-card {
    flex: 1 1 100%;
    min-width: 0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: block;
}

.chat-image-card:hover {
    transform: none;
    box-shadow: none;
    opacity: 0.9;
}

.chat-image-card img {
    width: 100%;
    height: 126px;
    object-fit: cover;
    display: block;
}

.chat-image-label {
    display: block;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-image-card:hover .chat-image-label {
    color: var(--accent-color);
}

/* Scrollbar styling for image gallery */
.chat-image-gallery::-webkit-scrollbar {
    height: 4px;
}

.chat-image-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.chat-image-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.typing {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
}

.chat-message.typing span {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.chat-message.typing span:nth-child(1) { animation-delay: 0s; }
.chat-message.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-message.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input */
.chat-widget-input {
    padding: 15px 20px;
    background: var(--white-color);
    border-top: 1px solid var(--divider-color);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-widget-footer {
    text-align: center;
    padding: 6px 12px;
    font-size: 0.72rem;
    color: #999;
    background: var(--white-color);
    border-top: 1px solid var(--divider-color);
    letter-spacing: 0.01em;
}

.chat-widget-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.chat-widget-footer a:hover {
    text-decoration: underline;
}

.chat-widget-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--divider-color);
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
    color: #1a1a1a;
}

.chat-widget-input input:focus {
    border-color: var(--accent-color);
}

.chat-widget-input input::placeholder {
    color: #666;
}

.chat-widget-send {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-widget-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.chat-widget-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-widget-send svg {
    width: 20px;
    height: 20px;
    fill: var(--white-color);
}

/* Mic button (STT) */
.chat-widget-mic {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--divider-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-widget-mic:hover {
    border-color: var(--accent-color);
    background: rgba(30, 58, 138, 0.05);
}

.chat-widget-mic svg {
    width: 18px;
    height: 18px;
    fill: #666;
    transition: fill 0.3s ease;
}

.chat-widget-mic:hover svg {
    fill: var(--accent-color);
}

.chat-widget-mic.recording {
    border-color: var(--accent-color);
    background: var(--accent-color);
    animation: mic-pulse 1s infinite;
}

.chat-widget-mic.recording svg {
    fill: #fff;
}

@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.5); }
    50%       { box-shadow: 0 0 0 8px rgba(30, 58, 138, 0); }
}

/* Mute button (TTS) */
.chat-widget-mute {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.75;
}

.chat-widget-mute:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.chat-widget-mute svg {
    width: 18px;
    height: 18px;
    fill: var(--white-color);
}

/* Scrollbar styling */
.chat-widget-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-widget-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-widget-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-widget-messages::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    /* Keep the chat button above the mobile bottom nav bar (~74px tall) */
    .chat-widget-toggle {
        bottom: calc(84px + env(safe-area-inset-bottom));
        right: 20px;
    }
}

@media (max-width: 767px) {
    .chat-widget-toggle {
        bottom: calc(84px + env(safe-area-inset-bottom));
        right: 20px;
    }

	.chat-widget-container {
		height: 585px;
		max-height: calc(100vh - 135px);
	}

    /* Open chat sits above navbar (z-index 10001) */
    .chat-widget-container.active {
        z-index: 10002;
    }
}

@media (max-width: 480px) {
    .chat-widget-toggle {
        bottom: calc(84px + env(safe-area-inset-bottom));
        right: 16px;
        padding: 6px 14px 6px 6px;
        z-index: 10002;
    }

	.chat-widget-container {
		height: 585px;
		max-height: calc(100vh - 120px);
	}

    .chat-toggle-avatar {
        width: 44px;
        height: 44px;
    }

    .chat-toggle-label {
        font-size: 14px;
    }

    .chat-widget-toggle.active {
        padding: 10px;
    }

    /* Hidden: never block touches */
    .chat-widget-container {
        pointer-events: none;
    }

    /* Full-screen ONLY when open � covers navbar */
    .chat-widget-container.active {
        pointer-events: auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        z-index: 10002;
    }

    .chat-widget-header {
        padding: 15px;
    }

    .chat-widget-messages {
        padding: 15px;
    }

    .chat-widget-input {
        padding: 12px 15px;
    }
}

/* SMART CHAT FEATURES STYLES
======================================== */

/* Business Hours / Status Indicator */
.returning-badge {
    background: #27ae60;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: normal;
    vertical-align: middle;
}

.chat-widget-info p {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Quick Reply Chips */
.quick-reply-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    margin-top: 10px;
}

.quick-reply-chip {
    background: linear-gradient(135deg, var(--secondary-color), #1e3c4a);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-reply-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #1e3c4a, var(--secondary-color));
}

/* Typing Suggestions Dropdown */
.typing-suggestions {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 0 15px 8px;
    max-height: 120px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.typing-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.typing-suggestion:last-child {
    border-bottom: none;
}

.typing-suggestion:hover {
    background: #f5f5f5;
    color: var(--secondary-color);
}

/* FAQ Suggestions */
.faq-suggestions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.faq-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-chip {
    display: inline-block;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin: 4px 4px 4px 0;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.faq-chip:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Service Comparison Cards */
.comparison-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.comparison-card h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-card h4::before {
    content: "??";
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-label {
    color: #666;
    flex: 1;
}

.comparison-value {
    color: #333;
    font-weight: 500;
    flex: 1;
    text-align: right;
}

/* Service Carousel */
.service-carousel {
    margin: 15px -10px;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.service-carousel::-webkit-scrollbar {
    height: 4px;
}

.service-carousel::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 2px;
}

.carousel-item {
    display: inline-block;
    width: 160px;
    margin: 0 8px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    vertical-align: top;
    white-space: normal;
    cursor: pointer;
}

.carousel-item:hover {
    transform: translateY(-5px);
}

.carousel-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}

.carousel-item .carousel-content {
    padding: 12px;
}

.carousel-item h5 {
    font-size: 13px;
    margin-bottom: 6px;
    color: #333;
}

.carousel-item p {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* Video Embed */
.chat-video-embed {
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.video-placeholder {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
}

.video-placeholder .play-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.video-placeholder .play-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 4px;
}

.video-placeholder p {
    color: white;
    font-size: 13px;
}

.chat-video-embed iframe {
    width: 100%;
    height: 160px;
    border: none;
}

/* Scheduler Widget */
.scheduler-widget {
    background: linear-gradient(135deg, var(--secondary-color), #1e3c4a);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    color: white;
}

.scheduler-widget h4 {
    margin-bottom: 10px;
    font-size: 15px;
}

.scheduler-widget p {
    font-size: 12px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.scheduler-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.scheduler-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.scheduler-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Transcript Email Widget */
.transcript-widget {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px dashed #ccc;
    text-align: center;
}

.transcript-widget p {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.transcript-input-group {
    display: flex;
    gap: 8px;
}

.transcript-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
}

.transcript-input:focus {
    border-color: var(--secondary-color);
}

.transcript-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.transcript-btn:hover {
    background: #1e3c4a;
}

/* Expandable Content */
.expandable {
    display: block;
}

.expandable-preview {
    display: inline;
}

.expandable-full {
    display: none;
}

.expand-toggle {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 12px;
    cursor: pointer;
    padding: 0 4px;
    text-decoration: underline;
}

.expand-toggle:hover {
    color: var(--accent-color);
}

/* Lead Score Badge (internal, shown subtly) */
.lead-score-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(39, 174, 96, 0.9);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
    display: none; /* Hidden by default, enable for debugging */
}

/* Chat Image Gallery Enhancements */
.chat-image-gallery {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-image-thumb {
    width: 100%;
    max-width: 240px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.chat-image-thumb:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.chat-image-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* Chat Widget � Mobile Full-Screen */
@media (max-width: 768px) {
    .chat-widget-container.active {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        transform: none;
    }
    .chat-widget-toggle.active {
        display: none;
    }
}

/* Mobile Responsive - Smart Features */
@media (max-width: 480px) {
    .quick-reply-chips {
        gap: 6px;
    }
    
    .quick-reply-chip {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .comparison-card {
        padding: 15px;
    }
    
    .comparison-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .comparison-value {
        text-align: left;
    }
    
    .carousel-item {
        width: 140px;
    }
    
    .scheduler-widget {
        padding: 15px;
    }
    
    .transcript-input-group {
        flex-direction: column;
    }
    
    .typing-suggestions {
        margin: 0 10px 6px;
    }
}

