* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Neutral defaults - organizations MUST set branding in dashboard */
  --brand-color: #000000;           /* Black (neutral, forces branding setup) */
  --brand-hover: #1a1a1a;           /* Slightly lighter black */
  
  /* Backgrounds */
  --bg-main: #ffffff;               /* White */
  --bg-surface: #ffffff;            /* White */
  
  /* Text colors */
  --text: #000000;                  /* Black text */
  --text-muted: #666666;            /* Gray text */
  
  /* Borders */
  --border: #e5e7eb;                /* Light gray borders */
  
  /* Messages */
  --msg-user-bg: #f3f4f6;           /* Light gray bubble for user */
  /* Note: Bot messages have no background */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-surface);
  height: 100vh;
  overflow: hidden;
}

#chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 100%;
  margin: 0 auto;
  background: var(--bg-main);
}

/* Modern header */
#chat-header {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
#chat-header > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

#org-logo {
  max-height: 60px;
  width: auto;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  display: none; /* Hidden by default, shown via JS when logo exists */
  margin: 0 auto;  /* Center the logo */
}

#org-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  text-align: center;  /* Center text */
}

#org-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  #org-logo {
    max-height: 55px;
    max-width: 180px;
  }
  
  #org-name {
    font-size: 1.125rem;
  }
  
  #chat-header {
    padding: 0.5rem 1rem;
    min-height: 75px;
  }
}

/* Messages area - like Claude/ChatGPT */
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0;
  background: var(--bg-main);
  /* Dynamic padding based on input height */
  padding-bottom: calc(var(--input-height, 60px) + 20px);
}

.message-wrapper {
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
}

.message-wrapper:hover {
  background: var(--bg-surface);
  border-color: var(--border);
}

.message {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 1rem;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.message.user .message-avatar {
  background: var(--brand-color);
  color: white;
}

.message.bot .message-avatar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.message-content {
  flex: 1;
  line-height: 1.6;
  color: var(--text);
  font-size: 0.95rem;
  word-wrap: break-word;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

#chat-messages .message-wrapper:last-child {
  /* 5% of viewport height + base spacing */
  margin-bottom: calc(5vh + 10px);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }

}

/* Input area - modern style */
#chat-input-container {
  border-top: 1px solid var(--border);
  padding: 1rem;
  background: var(--bg-main);
  /* Store height for other elements to use */
  --input-actual-height: 60px;
}

.input-wrapper {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

#chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  padding-left: 1.25rem;  /* Add more left padding */
  padding-right: 1.25rem;  /* Balance right padding */
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color 0.2s;
  text-align: start;  /* Uses left for LTR, right for RTL automatically */

}

#chat-input:focus {
  border-color: var(--brand-color);
}

#send-btn {
  padding: 0.75rem;
  background: var(--brand-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  min-width: 44px;
  height: 44px;
}

#send-btn:hover:not(:disabled) {
  background: var(--brand-hover);
}

#send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Quick replies */
.quick-replies {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-reply {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-main);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-reply:hover {
  background: var(--bg-surface);
  border-color: var(--brand-color);
}



/* Mobile responsive */
@media (max-width: 768px) {
  #chat-header {
    padding: 0.75rem 1rem;
  }

  #chat-messages {
    padding: 1rem 0;
    padding-bottom: 30px; /* More padding on mobile */
  }
  
  .message {
    padding: 0 0.75rem;
    max-width: 100%;
  }
  
  .message-avatar {
    width: 28px;
    height: 28px;
  }
  
  .message-content {
    font-size: 0.9rem;
  }
  
  #chat-input-container {
    padding: 0.5rem 0.75rem;  /* Better container spacing */
  }
  
  .input-wrapper {
    max-width: 100%;
    padding: 0;
  }

  #chat-input {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.625rem 0.875rem;
    padding-left: 1.25rem;  /* Add more left padding */
    padding-right: 1.25rem;  /* Balance right padding */
    min-height: 40px;
  }
   
  #send-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.625rem;
  }

  .quick-replies {
    padding: 0.5rem 0.75rem 0;
    max-width: 100%;
  }

}

/* Very small screens */
@media (max-width: 375px) {
  .message {
    gap: 0.5rem;
  }
  
  .message-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  
  .message-content {
    font-size: 0.875rem;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  #chat-container {
    max-width: 100%;
  }
  
  .message,
  .input-wrapper,
  .quick-replies {
    max-width: 36rem;
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  #chat-header {
    padding: 0.5rem 1rem;
  }
  
  #chat-messages {
    padding: 0.5rem 0;
  }
  
  #chat-input-container {
    padding: 0.5rem;
  }
  
  #chat-input {
    min-height: 36px;
    max-height: 60px;
  }
}

/* Desktop enhancements */
@media (min-width: 1024px) {
  #chat-container {
    max-width: 100%;
    height: 100vh;
    box-shadow: none;
  }
  
  .message-wrapper {
    transition: background 0.2s;
  }
}

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

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

#chat-messages::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
  opacity: 0.5;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
  opacity: 0.7;
}
/* === ADD THESE NEW STYLES AT THE END OF THE FILE === */

/* Better message differentiation */
.message-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.message-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.message.user {
  flex-direction: row;
}

.message.user .message-content {
  align-items: flex-end;
}

.message.user .message-avatar {
  background: #4f46e5;
  color: white;
  margin-right: 1rem; /* Keep same margin as bot */
  margin-left: 0;
}

.message.bot .message-avatar {
  background: var(--brand-color);
  color: white;
  margin-right: 1rem;
}

/* Better header alignment */
#chat-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#chat-header > div {
  text-align: center;
}

#org-name {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Message wrapper hover effect */
.message-wrapper {
  transition: background 0.2s;
}

.message-wrapper:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Fix for mobile browser viewport height */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari */
  #chat-container {
    height: 100vh;
    height: -webkit-fill-available;
  }
}

/* Android Chrome fix */
#chat-container {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* iOS Safari keyboard fixes */
.keyboard-open #chat-container {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.keyboard-open #chat-messages {
    padding-bottom: 2rem;
}

.input-focused #chat-input-container {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: var(--bg-main);
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    #chat-container {
        height: 100vh;
        height: -webkit-fill-available;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    #chat-messages {
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }
    
    #chat-input-container {
        position: sticky;
        bottom: 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .input-wrapper {
        padding-bottom: 0.5rem;
    }
}

/* Ensure input is always visible on small screens */
@media (max-height: 600px) {
    #chat-header {
        padding: 0.5rem 1rem;
    }
    
    .keyboard-open #chat-header {
        display: none;
    }
    
    .keyboard-open #chat-messages {
        height: calc(100vh - 120px);
    }
}

/* === MODERN CHAT ANIMATIONS & IMPROVEMENTS === */

/* Send button loading state */
#send-btn.sending {
    position: relative;
    color: transparent;
}

#send-btn.sending::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

/* Disabled input state */
#chat-input:disabled {
    background-color: rgba(0, 0, 0, 0.02);
    cursor: not-allowed;
}

/* Better typing indicator */
.typing-content {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 4px;
}

.typing-content span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9ca3af;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-content span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-content span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Smooth message appearance */
.message-wrapper {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent double-tap zoom on iOS */
button, input, textarea {
    touch-action: manipulation;
}

/* Better scroll performance */
#chat-messages {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Simple mobile keyboard fix */
@media (max-width: 768px) {
  #chat-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  #chat-messages {
    flex: 1;
    overflow-y: auto;
  }
  
  #chat-input-container {
    flex-shrink: 0;
  }
}

/* Ensure input is visible on iOS */
#chat-input {
  font-size: 16px; /* Prevents zoom on iOS */
  transform: translate3d(0,0,0); /* Force GPU acceleration */
}

/* Adjust for different screen sizes */
@media (max-height: 600px) {
  /* Smaller screens need more relative space */
  #chat-messages .message-wrapper:last-child {
    margin-bottom: calc(8vh + 10px);
  }
}

@media (min-height: 800px) {
  /* Larger screens need less relative space */
  #chat-messages .message-wrapper:last-child {
    margin-bottom: calc(3vh + 10px);
  }
}

/* Safe area for iOS devices with home indicator */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #chat-messages .message-wrapper:last-child {
    margin-bottom: calc(5vh + env(safe-area-inset-bottom) + 10px);
  }
}
/* Mobile Order Button - Fixed bottom right */
.mobile-order-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: var(--brand-color);  /* Use dynamic color instead of gradient */
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.mobile-order-btn.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.mobile-order-btn:active {
    transform: scale(0.92);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);

}

.order-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* Bottom Sheet */
.order-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.order-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    padding: 12px;
    cursor: grab;
}

.handle-bar {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto;
}

.sheet-header {
    padding: 8px 20px 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sheet-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
}

.sheet-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    padding: 4px 8px;
    cursor: pointer;
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Overlay */
.sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 199;
}

.sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Order Items Styling */
.order-item {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
    background: #ffffff;
}

.order-item-qty {
    min-width: 30px;
    font-weight: 600;
    color: var(--brand-color);
}

.order-item-name {
    flex: 1;
    color: var(--text);
}

.order-item-price {
    font-weight: 500;
    color: var(--text);
}

#order-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    color: #000;
}
/* Desktop - Hide mobile elements */
@media (min-width: 769px) {
    .mobile-order-btn,
    .order-sheet,
    .sheet-overlay {
        display: none !important;
    }
}



.order-item {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.item-main {
    display: flex;
    width: 100%;
}

.item-modifiers {
    margin-top: 8px;
    padding-left: 38px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modifier {
    font-size: 14px;
    color: #666;
    display: block;
}

.item-notes {
    margin-top: 8px;
    padding-left: 38px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}
/* Menu Button */
.menu-btn {
    position: fixed;
    top: 20px;
    right: 80px;
    background: var(--brand-color);
    color: white;
    border: none;
    padding: 10px 20px;
    height: 44px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 90;
    transition: transform 0.2s;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.menu-btn.hidden {
    display: none;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);  /* ADD THIS for blur effect */
    -webkit-backdrop-filter: blur(8px);  /* ADD THIS for Safari */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;  /* ADD smooth fade */
    z-index: 95;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Menu Panel */
.menu-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80%;
    max-width: 400px;
    background: white;
    border-radius: 0 20px 20px 0;  /* ADD THIS */
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.08), 10px 0 40px rgba(0, 0, 0, 0.05);  /* UPDATE THIS */
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 96;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-panel.active {
    transform: translateX(0);
}

.menu-header {
    padding: 20px;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);  /* ADD soft shadow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.menu-search {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);  /* Much softer line */
}

.menu-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
}

.menu-categories {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);  /* Much softer line */
}

.category-tab {
    background: none;
    border: 1px solid var(--border);
    color: #333;  /* ADD THIS LINE - Black text */
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: all 0.2s;
}

.category-tab.active {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
}

.menu-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.menu-item {
    display: flex;
    padding: 15px;
    border: none;  /* REMOVE border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);  /* ADD soft shadow */
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.menu-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-right: 15px;
}

.menu-item-details {
    flex: 1;
}

.menu-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-item-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.menu-item-price {
    font-weight: 600;
    color: var(--brand-color);
}

.menu-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ============================================
   LANGUAGE TOGGLE STYLES
   ============================================ */

button#language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: block;
  visibility: visible;
  opacity: 1;
  padding: 10px 16px;
  min-width: 50px;
  height: 44px;
  background: var(--brand-color);
  border: none;
  border-radius: 22px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

button#language-toggle:hover {
  background: var(--brand-color);
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  button#language-toggle {
    right: 20px;
    padding: 6px 12px;
    min-width: 45px;
    height: 36px;
  }
}

/* ============================================
   MODERN CHAT BUBBLE DESIGN
   ============================================ */

/* Hide ALL avatar squares */
.message-avatar {
    display: none !important;
}

/* Remove the "You" label for user messages */
.message.user .message-label {
    display: none !important;
}

/* Style user messages with bubble */
.message.user .message-content {
    background: #f8f8f8 !important;
    border-radius: 18px !important;
    padding: 12px 16px !important;
    display: inline-block !important;
    max-width: 80% !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Remove the background from the message-text inside user bubble */
.message.user .message-text {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Keep bot messages as is, but adjust spacing since avatar is gone */
.message.bot .message-content {
    margin-left: 0 !important;
}

/* Adjust message wrapper spacing */
.message {
    gap: 0 !important;
}

/* Indent user messages slightly */
.message.user {
    margin-left: 20px !important;
}

/* ============================================
   Order Confirmation Card - Mobile First
   ============================================ */

.order-confirmation-card {
    background: #ffffff;
    border: 2px solid var(--brand-color);
    border-radius: 12px;
    padding: 0;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 100%;
}

/* Header - matches chat header style */
.confirmation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--brand-color);
}

.confirmation-icon {
    font-size: 24px;
    animation: bounceIn 0.5s ease-out;
}

.confirmation-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

/* Order number - big and centered */
.order-number {
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    padding: 20px 16px;
    letter-spacing: 1px;
    background: #ffffff;
}

/* Order details container */
.order-details {
    padding: 16px;
    background: #ffffff;
}

/* Detail rows - like order-item style */
.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-row:last-child {
    border-bottom: none;
}

/* Highlight important info (pickup time) */
.detail-row.highlight {
    background: var(--msg-user-bg);
    padding: 12px;
    margin: 4px -12px;
    border-radius: 8px;
    border-bottom: none;
}

.detail-label {
    font-size: 18px;
    min-width: 28px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    font-size: 15px;
    color: #000000;
    font-weight: 500;
}

/* Footer message */
.confirmation-footer {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    padding: 16px;
    background: #ffffff;
}

/* Location link in confirmation card */
.order-confirmation-card .location-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.order-confirmation-card .location-link:hover {
    color: #0056b3;
}

/* Animation for icon */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tablet and up - slightly larger */
@media (min-width: 768px) {
    .order-number {
        font-size: 36px;
    }
    
    .confirmation-title {
        font-size: 18px;
    }
}

/* ============================================
   SUGGESTIONS
   ============================================ */

.suggestions-container {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.5rem;
}

.suggestions-label {
    font-size: 12px;
    color: var(--text-muted, #9CA3AF);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    font-size: 16px;
    color: var(--text, #000000);
    cursor: pointer;
    padding: 8px 0;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.suggestion-item:active {
    opacity: 0.6;
}

/* Fade out animation */
.suggestions-hiding {
    animation: suggestionsFadeOut 0.3s ease forwards;
}

@keyframes suggestionsFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
/* ============================================
   CHAT IMAGE STYLES
   ============================================ */
.message-media {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    object-fit: cover;
}

.chat-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.chat-document {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f0e8;
    border: 1px solid #e0d9cf;
    border-radius: 10px;
    text-decoration: none;
    color: #2d2d2d;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 280px;
}
.chat-document:hover {
    background: #ebe5d9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.doc-icon {
    font-size: 1.4em;
    flex-shrink: 0;
}
.doc-name {
    flex: 1;
    font-size: 0.88em;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.doc-action {
    font-size: 0.78em;
    color: #6b5d54;
    font-weight: 600;
    flex-shrink: 0;
}

