:root {
    --primary-color: #d32f2f;
    --secondary-color: #ffa000;
    --text-color: #333;
    --bg-color: #fff9f0;
    --card-bg: #fff;
    --widget-theme-color: #d32f2f;
    --widget-header-height: 48px;
}

/* --- Global Styles --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, #d32f2f 0%, #b71c1c 100%);
    /* Fallback if img fails */
    background: #fff;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 160, 0, 0.4);
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Fallback style for broken hero image */
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.menu-thumb {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
    font-size: 1.2rem;
}

.menu-thumb::after {
    content: "NO IMAGE";
    position: absolute;
    z-index: 0;
    opacity: 0.3;
}

.menu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.menu-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-title {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.menu-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    flex: 1;
}

.menu-price {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
}

.menu-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-tags li {
    font-size: 0.8rem;
    background: #ffeecc;
    color: #d84315;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

/* Campaigns */
.campaign-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.campaign {
    background: #fff;
    border-left: 6px solid var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.campaign-title {
    font-size: 1.6rem;
    color: #d32f2f;
    margin-bottom: 0.5rem;
}

.campaign-description {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.5rem;
}

.campaign-period {
    font-size: 0.9rem;
    color: #888;
    font-weight: bold;
}

/* Store Info */
#store {
    background: #fff;
}

#store p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.faq-question::before {
    content: "Q.";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.faq-answer {
    color: #555;
    padding-left: 1.5rem;
    margin: 0;
}

/* Footer */
footer {
    background: #212121;
    color: #aaa;
    text-align: center;
    padding: 3rem 0;
    margin-top: auto;
}

/* Responsive */
/* Responsive Mobile Styles */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .brand {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.95rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    /* --- WIDGET MOBILE OPTIMIZATION --- */

    /* Container: Position bottom-right, minimize interference */
    #ai-widget {
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        z-index: 10000;
        flex-direction: column;
        align-items: flex-end;
        padding: 16px;
        pointer-events: none;
        /* Allow clicks to pass through wrapper */
    }

    #ai-widget>* {
        pointer-events: auto;
        /* Re-enable clicks on button/window */
    }

    /* Assistant Portrait (Toggle Button) */
    .assistant-portrait {
        width: 55px;
        /* Much smaller to not oppress content */
        margin-right: 0;
        margin-bottom: 0;
        transition: transform 0.3s ease;
    }

    /* Chat Window: Full Screen Modal on Mobile */
    #chat-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        /* Use dynamic viewport height */
        border-radius: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        z-index: 20000;
        display: none;
        flex-direction: column;

        /* Safe Area for modern phones */
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    /* Ensure the inner container fills the space */
    .chat-inner {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    /* Hide the portrait when chat is open to save space (optional, via JS) 
       or just let it sit behind/under. With z-index 20000, window covers it.
    */

    /* Add a specific "Mobile Close" button visibility if needed, 
       but the header already has a close button.
    */
}


/* --- CONCIERGE WIDGET STYLES --- */
#ai-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: flex-end;
    gap: 0;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#ai-widget.transparent-mode {
    opacity: 0.4;
}

.assistant-portrait {
    width: 170px;
    padding: 0;
    margin-right: -30px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

.assistant-portrait img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.chat-block {
    position: relative;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

#chat-window {
    width: 320px;
    height: 480px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    display: none;
    position: relative;
    flex-direction: column;
    overflow: visible;
    margin-bottom: 0;
    transition: opacity 0.3s ease;
}

.chat-inner {
    width: 100%;
    height: 100%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.06);
    /* Wider, professional shadow */
    position: relative;
    z-index: 10;
}

/* Triangle (Hidden for clean floating card look) */
#chat-window::before,
#chat-window::after {
    display: none;
}

.chat-header {
    height: 48px;
    /* Apple HIG Standard */
    /* Dynamic Apple-like Gradient: Lighter top mix */
    background: linear-gradient(180deg, color-mix(in srgb, var(--widget-theme-color), white 25%) 0%, var(--widget-theme-color) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Spacer approach */
    padding: 0 12px;
    /* Reduced padding */
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
    /* 1px separator */
    position: relative;
    z-index: 20;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    /* Relaxed Brand Gap */
    flex-shrink: 0;
    /* Spacer handles separation */
}

.header-spacer {
    flex: 1;
    min-width: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: flex-end;
    gap: 12px;
    /* Optimized Tool Gap */
}


.header-title {
    color: var(--widget-header-text, rgba(255, 255, 255, 0.9));
    /* 90% White */
    font-size: 15px;
    font-weight: 500;
    /* Medium */
    margin-left: 0;
    text-shadow: none;
    letter-spacing: 0.01em;
    user-select: none;
    line-height: 1;
}

.header-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--widget-header-text, rgba(255, 255, 255, 0.9));
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    color: white;
}

.header-btn:active {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.25);
}

#close-chat {
    margin-left: 0;
}

.header-icon-brand {
    width: 24px;
    height: 24px;
    margin-right: 0;
    cursor: default;
    user-select: none;
    color: var(--widget-header-text, rgba(255, 255, 255, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-line {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-brand {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.color-popup {
    position: absolute;
    top: 52px;
    right: 8px;
    width: 176px;
    background: white;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.color-popup::before {
    display: none;
}

.color-popup.open {
    display: grid;
    animation: popIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.color-option:hover {
    transform: scale(1.15);
    z-index: 1;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #fff;
    scroll-behavior: smooth;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.message-row {
    margin: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.message-bubble {
    max-width: 82%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.64;
    /* +2% line-height */
    word-wrap: break-word;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    position: relative;
}

.user-msg {
    align-items: flex-end;
}

.user-msg .message-bubble {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
    border-bottom-right-radius: 4px;
}

.bot-msg {
    align-items: flex-start;
}

.bot-msg .message-bubble {
    background-color: #f7f7f8;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Input Area (Card Style) */
.input-area {
    padding: 16px;
    background: white;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 30;
    /* box-shadow removed for cleaner look */
    border-radius: 0 0 22px 22px;
}

.chat-input-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

#chat-input {
    width: 100%;
    padding: 10px 46px 10px 14px;
    border: 1px solid #E7E7E7;
    /* Thinner subtle border */
    border-radius: 16px;
    /* Reduced to 16px */
    outline: none;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    line-height: 1.5;
}

#chat-input:focus {
    border-color: var(--widget-theme-color);
    background: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    /* Keep refined natural shadow */
}

#chat-send {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    background: linear-gradient(to bottom, #fff, #f2f2f2);
    /* Apple-like gradient */
    color: var(--widget-theme-color);
    /* Icon color matches theme */
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 4px 10px rgba(0, 0, 0, 0.20);
    /* Premium depth */
    z-index: 2;
}

#chat-send:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(calc(-50% - 2px)) scale(1.05);
    filter: brightness(1.02);
}

#chat-send:active {
    transform: translateY(-50%) scale(0.95);
}

#chat-send svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    margin-left: 0;
}

#stt-btn {
    background: linear-gradient(to bottom, #ffffff, #f2f2f2);
    border: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 18px;
    cursor: pointer;
    color: #555;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 4px 10px rgba(0, 0, 0, 0.20);
}

#stt-btn:hover {
    background-color: #fff;
    color: var(--widget-theme-color);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

#stt-btn:active {
    transform: translateY(0);
}

#stt-btn.listening {
    background-color: #ffebee;
    color: #d32f2f;
    border-color: #ffcdd2;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.2);
}

#stt-btn.listening::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--widget-theme-color);
    z-index: -1;
    animation: mic-pulse 1.2s infinite ease-out;
    pointer-events: none;
}

@keyframes mic-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Product Cards (Premium) */
.chat-product-card {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    margin: 8px 0;
    display: flex;
    gap: 10px;
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.chat-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    /* Stronger hover shadow */
}

.chat-product-card__img-wrapper {
    flex: 0 0 80px;
    max-width: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.chat-product-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-product-card__body {
    flex: 1;
    padding: 8px 10px 10px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-product-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.chat-product-card__price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e53935;
}

.chat-product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.chat-product-card__tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fff3cd;
    color: #a76a00;
}

.chat-product-card__button {
    margin-top: 4px;
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: none;
    background: #ff7043;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s;
    box-shadow: 0 2px 5px rgba(255, 112, 67, 0.3);
}

.chat-product-card__button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Detail Modal */
.chat-detail-modal {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-detail-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.chat-detail-modal__content {
    position: relative;
    max-width: 320px;
    width: 92%;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: chat-detail-modal-in 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-detail-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-detail-modal__close:hover {
    background: rgba(0, 0, 0, 0.6);
}

.chat-detail-modal__img-wrapper {
    width: 100%;
    max-height: 180px;
    overflow: hidden;
}

.chat-detail-modal__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-detail-modal__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-detail-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
}

.chat-detail-modal__price {
    font-size: 1rem;
    font-weight: 600;
    color: #e53935;
}

.chat-detail-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.chat-detail-modal__tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff3cd;
    color: #a76a00;
}

.chat-detail-modal__description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-top: 4px;
}

@keyframes chat-detail-modal-in {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Camera Modal Styles */
.camera-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 320px;
    background: #000;
    z-index: 50;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.camera-modal.active {
    transform: translateY(0);
}

.camera-modal.hidden {
    display: none !important;
}

.camera-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding-bottom: 10px;
}

.camera-ctrl-btn {
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.camera-ctrl-btn.cancel {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.camera-ctrl-btn.shutter {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    padding: 4px;
    background-clip: content-box;
    border: 4px solid rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.shutter-inner {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    transition: transform 0.1s;
}

.camera-ctrl-btn.shutter:active .shutter-inner {
    transform: scale(0.9);
}

.camera-ctrl-btn.flip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.camera-ctrl-btn.flip svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#camera-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-right: 8px;
}

#camera-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--widget-theme-color);
}

#camera-btn svg {
    width: 24px;
    height: 24px;
}

/* --- FINAL MOBILE OVERRIDES --- */
/* --- FINAL MOBILE OVERRIDES --- */
@media (max-width: 768px) {
    #assistant-avatar img {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }
}

/* --- CONSOLIDATED WIDGET SPECIFIC STYLES --- */

/* Quick Actions */
.chat-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 20px 0 12px !important;
    height: 48px !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--widget-theme-color), white 25%) 0%, var(--widget-theme-color) 100%);
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.header-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.header-spacer {
    display: none !important;
}

.quick-actions {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    flex-shrink: 0;
}

.action-chip {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-chip:hover {
    background: var(--widget-theme-color);
    color: white;
    border-color: var(--widget-theme-color);
}

.action-chip svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}

.header-btn {
    background: none;
    border: none;
    color: white;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    /* Ensure flexbox for centering */
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    width: 32px;
    /* Default width */
    height: 32px;
    /* Default height */
    box-sizing: border-box;
    /* Include padding in width */
}

.header-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

#close-chat {
    margin-left: 6px !important;
    padding-left: 10px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 0 !important;
    width: auto !important;
}

#close-chat svg {
    stroke: #fff !important;
    width: 20px;
    height: 20px;
}

.header-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-btn.lang-text-btn {
    font-size: 11px;
    font-weight: 800;
    width: auto;
    min-width: 24px;
    padding: 0 4px;
    letter-spacing: 0.5px;
}

/* Reservation Form inside Chat */
.reservation-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 8px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.res-input-group {
    margin-bottom: 10px;
}

.res-label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.res-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.res-submit {
    width: 100%;
    padding: 10px;
    background: var(--widget-theme-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}

.demo-badge {
    text-align: center;
    font-size: 10px;
    color: #999;
    margin-top: 8px;
}

/* Quick Actions Bar - Added for Language Switch & Chips */
.quick-actions {
    padding: 10px 12px;
    background: #f9f9f9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Firefox */
}

.quick-actions::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.action-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.action-chip:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.action-chip svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}

/* Menu Categories */
.category-section {
    margin-bottom: 3rem;
}

.category-header {
    font-size: 2rem;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Calorie Info */
.menu-calories {
    font-size: 0.85rem;
    color: #888;
    margin-top: auto;
    /* Push to bottom if flex column */
    padding-top: 0.5rem;
    font-weight: 500;
}