/* Food Clays chatbot — chat shell & premium conversation UI */
#bb-chatbot-root {
  --bb-red: #c41e3a;
  --bb-red-dark: #8f1428;
  --bb-red-soft: rgba(196, 30, 58, 0.12);
  --bb-amber: #f4a261;
  --bb-amber-dark: #e76f51;
  --bb-amber-light: #ffe8d6;
  --bb-cream: #fff8f3;
  --bb-paper: #fffdf9;
  --bb-green: #2a9d8f;
  --bb-gray-bg: #f1f1f1;
  --bb-text: #141414;
  --bb-text-soft: #3d3d3d;
  --bb-muted: #6b6b6b;
  --bb-border: rgba(20, 20, 20, 0.08);
  --bb-surface: #ffffff;
  --bb-surface-chat: #f3f1ef;
  --bb-user-bubble: linear-gradient(145deg, #c41e3a 0%, #9d1830 100%);
  --bb-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --bb-card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
  --bb-radius: 14px;
  --bb-radius-lg: 18px;
  --bb-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --bb-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --bb-menu-bleed: 0px;
  font-family: var(--bb-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

#bb-chatbot-root *,
#bb-chatbot-root *::before,
#bb-chatbot-root *::after {
  box-sizing: inherit;
}

#bb-chatbot-root .bb-offline-banner {
  display: none;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  color: #92400e;
  text-align: center;
  padding: 0.4rem 0.5rem;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #fcd34d;
}

#bb-chatbot-root.bb-offline .bb-offline-banner {
  display: block;
}

#bb-chatbot-root .bb-launcher-wrap {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

#bb-chatbot-root .bb-launcher-wrap .bb-launcher {
  pointer-events: auto;
}

#bb-chatbot-root .bb-launcher-tagline {
  pointer-events: none;
  margin: 0;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #9a3412 0%, #ea580c 45%, #fb923c 100%);
  border-radius: 999px;
  box-shadow:
    0 4px 18px rgba(234, 88, 12, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  max-width: min(220px, 78vw);
  text-align: center;
  line-height: 1.3;
  animation: bb-tagline-nudge 3.5s ease-in-out infinite;
}

@keyframes bb-tagline-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #bb-chatbot-root .bb-launcher-tagline {
    animation: none;
  }
}

#bb-chatbot-root .bb-launcher {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(150deg, #ff8c42 0%, #f97316 35%, #ea580c 70%, #c2410c 100%);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.06) inset,
    0 12px 36px rgba(234, 88, 12, 0.48),
    0 6px 16px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--bb-ease-out), box-shadow 0.25s ease, filter 0.2s ease;
}

#bb-chatbot-root .bb-launcher-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

#bb-chatbot-root .bb-launcher-burger {
  display: block;
  font-size: 32px;
  line-height: 1;
}

#bb-chatbot-root .bb-launcher:hover {
  transform: scale(1.08) translateY(-3px);
  filter: brightness(1.05);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.05) inset,
    0 16px 44px rgba(249, 115, 22, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

#bb-chatbot-root .bb-launcher:active {
  transform: scale(1.02) translateY(-1px);
}

#bb-chatbot-root .bb-launcher.bb-pulse {
  animation: bb-pulse 1.8s ease-in-out 3;
}

#bb-chatbot-root .bb-launcher.bb-launcher--breathe {
  animation: bb-breathe 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  #bb-chatbot-root .bb-launcher.bb-pulse,
  #bb-chatbot-root .bb-launcher.bb-launcher--breathe {
    animation: none !important;
  }
}

@keyframes bb-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55), 0 12px 36px rgba(234, 88, 12, 0.48);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(249, 115, 22, 0), 0 12px 36px rgba(234, 88, 12, 0.48);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0), 0 12px 36px rgba(234, 88, 12, 0.48);
  }
}

@keyframes bb-breathe {
  0%,
  100% {
    box-shadow:
      0 4px 0 rgba(0, 0, 0, 0.06) inset,
      0 12px 36px rgba(234, 88, 12, 0.38),
      0 6px 16px rgba(0, 0, 0, 0.14);
  }
  50% {
    box-shadow:
      0 4px 0 rgba(0, 0, 0, 0.05) inset,
      0 18px 52px rgba(249, 115, 22, 0.55),
      0 10px 28px rgba(0, 0, 0, 0.18);
  }
}

#bb-chatbot-root .bb-launcher-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  display: none;
}

#bb-chatbot-root .bb-launcher-badge.bb-visible {
  display: block;
}

#bb-chatbot-root .bb-panel {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  width: min(100vw - 24px, 400px);
  height: min(580px, calc(100dvh - 100px));
  max-height: calc(100dvh - 100px);
  background: var(--bb-surface);
  border-radius: var(--bb-radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--bb-border);
  z-index: 99999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.32s var(--bb-ease-out), opacity 0.28s ease;
  isolation: isolate;
}

#bb-chatbot-root.bb-open .bb-panel {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}

#bb-chatbot-root .bb-header {
  flex-shrink: 0;
  background: linear-gradient(125deg, #1a0a0c 0%, var(--bb-red-dark) 42%, var(--bb-red) 100%);
  color: #fff;
  padding: 16px 18px 16px 18px;
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

/* Explicit white: WP themes often set h2 { color } which beats inheritance from .bb-header */
#bb-chatbot-root .bb-header .bb-header-title,
#bb-chatbot-root .bb-header h2.bb-header-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ffffff !important;
  -webkit-text-fill-color: #fff;
}

#bb-chatbot-root .bb-header-sub-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#bb-chatbot-root .bb-header .bb-header-sub {
  margin: 0;
  font-size: 12px;
  opacity: 0.88;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
  min-width: 0;
  color: rgba(255, 255, 255, 0.95) !important;
}

#bb-chatbot-root .bb-header .bb-header-sub span {
  color: inherit !important;
}

#bb-chatbot-root .bb-header-sub .bb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #86efac;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

#bb-chatbot-root .bb-header .bb-clear-chat {
  margin: 0 0 0 auto;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff !important;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#bb-chatbot-root .bb-header .bb-clear-chat:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

#bb-chatbot-root .bb-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease;
}

#bb-chatbot-root .bb-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#bb-chatbot-root .bb-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 10px 18px 8px;
  background: linear-gradient(180deg, #faf9f8 0%, var(--bb-surface-chat) 55%, #ebe8e4 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 30, 58, 0.35) transparent;
}

#bb-chatbot-root .bb-messages::-webkit-scrollbar {
  width: 6px;
}

#bb-chatbot-root .bb-messages::-webkit-scrollbar-track {
  background: #ede8e4;
  border-radius: 6px;
}

#bb-chatbot-root .bb-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--bb-red), var(--bb-red-dark));
  border-radius: 6px;
}

#bb-chatbot-root .bb-row {
  display: flex;
  width: 100%;
  margin-bottom: 14px;
}

#bb-chatbot-root .bb-msg-enter {
  animation: bb-msg-in 0.42s var(--bb-ease-out) both;
}

@keyframes bb-msg-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bb-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#bb-chatbot-root .bb-row.bb-typing-out {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s var(--bb-ease-out);
  pointer-events: none;
}

#bb-chatbot-root .bb-row-bot {
  justify-content: flex-start;
}

#bb-chatbot-root .bb-row-user {
  justify-content: flex-end;
}

#bb-chatbot-root .bb-bubble-wrap {
  min-width: 0;
}

#bb-chatbot-root .bb-row-bot .bb-bubble-wrap {
  flex: 1 1 auto;
  max-width: none;
}

#bb-chatbot-root .bb-row-user .bb-bubble-wrap {
  flex: 0 1 auto;
  max-width: min(100%, 360px);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#bb-chatbot-root .bb-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

#bb-chatbot-root .bb-bubble-bot {
  background: var(--bb-surface);
  color: var(--bb-text-soft);
  border-radius: 12px;
  box-shadow: var(--bb-card-shadow);
  border: 1px solid var(--bb-border);
}

#bb-chatbot-root .bb-bubble-user {
  background: var(--bb-user-bubble);
  color: #fff;
  border-radius: 18px 18px 6px 18px;
  box-shadow: 0 6px 20px rgba(157, 24, 48, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#bb-chatbot-root .bb-time {
  font-size: 11px;
  font-weight: 500;
  color: var(--bb-muted);
  margin-top: 6px;
  padding: 0 6px;
  letter-spacing: 0.02em;
}

#bb-chatbot-root .bb-row-user .bb-time {
  text-align: right;
  align-self: flex-end;
  padding-left: 6px;
  padding-right: 0;
}

#bb-chatbot-root .bb-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--bb-surface);
  border-radius: 12px;
  width: fit-content;
  border: 1px solid var(--bb-border);
  box-shadow: var(--bb-card-shadow);
}

#bb-chatbot-root .bb-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bb-red);
  opacity: 0.35;
  animation: bb-typing-dot 1.05s infinite ease-in-out both;
}

#bb-chatbot-root .bb-typing span:nth-child(1) {
  animation-delay: 0ms;
}
#bb-chatbot-root .bb-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
#bb-chatbot-root .bb-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bb-typing-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px) scale(1.15);
  }
}

/* —— Quick replies —— */
#bb-chatbot-root .bb-quick-primary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  padding: 2px 0 4px;
}

#bb-chatbot-root .bb-quick-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 4px;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

#bb-chatbot-root .bb-quick-scroll::-webkit-scrollbar {
  height: 4px;
}

#bb-chatbot-root .bb-quick-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

#bb-chatbot-root .bb-quick-btn {
  flex: 0 0 auto;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  transition: transform 0.18s var(--bb-ease-out), box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

#bb-chatbot-root .bb-quick-btn-hilite {
  flex-direction: column;
  min-height: 76px;
  padding: 10px 8px;
  border-radius: 16px;
  border: 1px solid var(--bb-border);
  background: linear-gradient(180deg, #fff 0%, #f7f6f4 100%);
  color: var(--bb-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

#bb-chatbot-root .bb-quick-btn-hilite::before {
  font-size: 22px;
  line-height: 1;
}

#bb-chatbot-root .bb-quick-btn-hilite[data-qr="menu"]::before {
  content: "📋";
}
#bb-chatbot-root .bb-quick-btn-hilite[data-qr="order"]::before {
  content: "🛒";
}
#bb-chatbot-root .bb-quick-btn-hilite[data-qr="deals"]::before {
  content: "🏷️";
}

#bb-chatbot-root .bb-quick-label {
  display: block;
  margin-top: 2px;
}

#bb-chatbot-root .bb-quick-btn-hilite:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(196, 30, 58, 0.2);
}

#bb-chatbot-root .bb-quick-btn-hilite:active {
  transform: translateY(0);
}

#bb-chatbot-root .bb-quick-btn-ghost {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--bb-border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--bb-text-soft);
  font-size: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#bb-chatbot-root .bb-quick-btn-ghost:hover {
  background: #fff;
  border-color: rgba(196, 30, 58, 0.22);
  color: var(--bb-red);
}

#bb-chatbot-root .bb-quick-btn-ghost:active {
  transform: scale(0.98);
}

#bb-chatbot-root .bb-quick-second {
  margin-top: 6px;
  padding-top: 2px;
  padding-bottom: 2px;
}

#bb-chatbot-root .bb-block {
  margin-top: 12px;
  padding-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #bb-chatbot-root .bb-msg-enter {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  #bb-chatbot-root .bb-typing span {
    animation: none !important;
    opacity: 0.6;
  }
  #bb-chatbot-root .bb-row.bb-typing-out {
    transition: none;
    opacity: 0;
  }
}

/* —— Burger menu cards with images —— */
#bb-chatbot-root .bb-burger-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 2px;
}

#bb-chatbot-root .bb-burger-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fefaf7 100%);
  border: none;
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  box-shadow: var(--bb-card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: bb-slide-up 0.3s ease backwards;
}

#bb-chatbot-root .bb-burger-card:nth-child(1) { animation-delay: 0.02s; }
#bb-chatbot-root .bb-burger-card:nth-child(2) { animation-delay: 0.05s; }
#bb-chatbot-root .bb-burger-card:nth-child(3) { animation-delay: 0.08s; }
#bb-chatbot-root .bb-burger-card:nth-child(4) { animation-delay: 0.11s; }
#bb-chatbot-root .bb-burger-card:nth-child(5) { animation-delay: 0.14s; }
#bb-chatbot-root .bb-burger-card:nth-child(6) { animation-delay: 0.17s; }

@keyframes bb-slide-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#bb-chatbot-root .bb-burger-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--bb-card-shadow-hover);
}

#bb-chatbot-root .bb-burger-card-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

#bb-chatbot-root .bb-burger-image {
  width: 68px;
  min-width: 68px;
  background: linear-gradient(145deg, #fdf4e6, #f7e8d4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#bb-chatbot-root .bb-burger-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#bb-chatbot-root .bb-burger-card:hover .bb-burger-image img {
  transform: scale(1.1);
}

/* Fallback emoji styling */
#bb-chatbot-root .bb-burger-image[data-burger] {
  display: flex;
  align-items: center;
  justify-content: center;
}

#bb-chatbot-root .bb-burger-image[data-burger]::before {
  font-size: 28px;
  transition: transform 0.3s ease;
}

#bb-chatbot-root .bb-burger-card:hover .bb-burger-image[data-burger]::before {
  transform: scale(1.1) rotate(5deg);
}

#bb-chatbot-root .bb-burger-image[data-burger="classic-smash"]::before { content: "🍔"; }
#bb-chatbot-root .bb-burger-image[data-burger="bbq-bacon"]::before { content: "🥓🍔"; }
#bb-chatbot-root .bb-burger-image[data-burger="mushroom-swiss"]::before { content: "🍄🍔"; }
#bb-chatbot-root .bb-burger-image[data-burger="spicy-jalapeno"]::before { content: "🌶️🍔"; }
#bb-chatbot-root .bb-burger-image[data-burger="double-trouble"]::before { content: "🍔🍔"; }
#bb-chatbot-root .bb-burger-image[data-burger="veggie-garden"]::before { content: "🌱🍔"; }

/* Image loading states */
#bb-chatbot-root .bb-burger-image img.loading {
  opacity: 0;
}

#bb-chatbot-root .bb-burger-image img.loaded {
  opacity: 1;
  animation: bb-fade-in 0.3s ease;
}

#bb-chatbot-root .bb-burger-content {
  flex: 1;
  padding: 8px 10px 8px 8px;
}

#bb-chatbot-root .bb-burger-card h4 {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #2c1810;
  line-height: 1.3;
}

#bb-chatbot-root .bb-burger-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(214, 40, 40, 0.25);
}

#bb-chatbot-root .bb-burger-price::before {
  content: "💰";
  font-size: 11px;
  margin-right: 2px;
}

#bb-chatbot-root .bb-burger-desc {
  color: var(--bb-muted);
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#bb-chatbot-root .bb-btn-select {
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--bb-amber) 0%, var(--bb-amber-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(244, 162, 97, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#bb-chatbot-root .bb-btn-select::before {
  content: "🛒";
  font-size: 12px;
}

#bb-chatbot-root .bb-btn-select:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 162, 97, 0.4);
  filter: brightness(1.05);
}

#bb-chatbot-root .bb-btn-select:active {
  transform: translateY(0);
}

/* —— Add-on pills (multi-select) —— */
#bb-chatbot-root .bb-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

#bb-chatbot-root .bb-pill {
  padding: 6px 11px;
  border-radius: 40px;
  border: 2px solid #e8e0dc;
  background: #fff;
  color: var(--bb-text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#bb-chatbot-root .bb-pill::before {
  font-size: 13px;
}

#bb-chatbot-root .bb-pill[data-addon-id="extra-cheese"]::before { content: "🧀"; }
#bb-chatbot-root .bb-pill[data-addon-id="bacon"]::before { content: "🥓"; }
#bb-chatbot-root .bb-pill[data-addon-id="fried-egg"]::before { content: "🍳"; }
#bb-chatbot-root .bb-pill[data-addon-id="avocado"]::before { content: "🥑"; }
#bb-chatbot-root .bb-pill[data-addon-id="onions"]::before { content: "🧅"; }
#bb-chatbot-root .bb-pill[data-addon-id="extra-patty"]::before { content: "🍔"; }
#bb-chatbot-root .bb-pill[data-addon-id="none"]::before { content: "🚫"; }

#bb-chatbot-root .bb-pill:hover {
  border-color: var(--bb-amber);
  color: var(--bb-amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(244, 162, 97, 0.12);
}

#bb-chatbot-root .bb-pill.bb-selected {
  background: linear-gradient(135deg, var(--bb-green) 0%, #238b7e 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.35);
}

#bb-chatbot-root .bb-pill.bb-selected::before {
  filter: brightness(0) invert(1);
}

/* —— Drinks & sides grid with images —— */
#bb-chatbot-root .bb-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin: 6px 0;
}

#bb-chatbot-root .bb-pill-grid .bb-pill {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 11px;
  padding: 6px 5px;
  line-height: 1.25;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  position: relative;
  overflow: hidden;
}

#bb-chatbot-root .bb-pill-grid .bb-pill-image {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2px;
}

#bb-chatbot-root .bb-pill-grid .bb-pill-icon {
  font-size: 20px;
  margin-bottom: 2px;
  display: block;
}

#bb-chatbot-root .bb-pill-grid .bb-pill span {
  opacity: 0.9;
  font-size: 9.5px;
  font-weight: 500;
  display: block;
}

#bb-chatbot-root .bb-pill-grid .bb-pill.bb-selected {
  background: linear-gradient(135deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
  transform: scale(1.01);
}

#bb-chatbot-root .bb-addon-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* —— Order summary (receipt style) —— */
#bb-chatbot-root .bb-summary-card {
  background: linear-gradient(135deg, #fffdf9 0%, #fff8f0 100%);
  border: 2px solid rgba(214, 40, 40, 0.2);
  border-radius: 14px;
  padding: 11px 10px;
  font-family: "SF Mono", "Monaco", "Cascadia Code", monospace;
  font-size: 10px;
  line-height: 1.55;
  color: #2c1810;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

#bb-chatbot-root .bb-summary-card::before {
  content: "🍔 🍟 🥤";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 18px;
  opacity: 0.08;
  font-family: system-ui;
  pointer-events: none;
}

#bb-chatbot-root .bb-summary-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--bb-red) 0px,
    var(--bb-red) 8px,
    var(--bb-amber) 8px,
    var(--bb-amber) 16px
  );
  border-radius: 0 0 18px 18px;
}

#bb-chatbot-root .bb-summary-actions,
#bb-chatbot-root .bb-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

/* —— Button styles —— */
#bb-chatbot-root .bb-btn-red {
  width: 100%;
  padding: 9px 14px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(214, 40, 40, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#bb-chatbot-root .bb-btn-red:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(214, 40, 40, 0.45);
  filter: brightness(1.05);
}

#bb-chatbot-root .bb-btn-red:active:not(:disabled) {
  transform: translateY(1px);
}

#bb-chatbot-root .bb-btn-red:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(214, 40, 40, 0.2);
}

#bb-chatbot-root .bb-btn-red.bb-shake {
  animation: bb-shake 0.4s ease;
}

#bb-chatbot-root .bb-btn-outline {
  padding: 8px 14px;
  border-radius: 40px;
  border: 2px solid var(--bb-red);
  background: #fff;
  color: var(--bb-red);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#bb-chatbot-root .bb-btn-outline:hover {
  background: linear-gradient(135deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(214, 40, 40, 0.25);
}

#bb-chatbot-root .bb-cart-foot a.bb-btn-outline {
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

#bb-chatbot-root .bb-footer {
  flex-shrink: 0;
  padding: 10px 12px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f0edea 100%);
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
}

#bb-chatbot-root .bb-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

#bb-chatbot-root .bb-footer-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

#bb-chatbot-root .bb-chat-meta-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 10px;
  line-height: 1.35;
  color: var(--bb-muted);
  padding: 2px 0 6px;
  margin: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(44, 24, 16, 0.28) rgba(20, 20, 20, 0.06);
}

#bb-chatbot-root .bb-chat-meta-bar::-webkit-scrollbar {
  height: 5px;
}

#bb-chatbot-root .bb-chat-meta-bar::-webkit-scrollbar-track {
  background: rgba(20, 20, 20, 0.06);
  border-radius: 4px;
  margin: 0 2px;
}

#bb-chatbot-root .bb-chat-meta-bar::-webkit-scrollbar-thumb {
  background: rgba(44, 24, 16, 0.28);
  border-radius: 4px;
}

#bb-chatbot-root .bb-chat-meta-bar::-webkit-scrollbar-thumb:hover {
  background: rgba(44, 24, 16, 0.4);
}

#bb-chatbot-root .bb-chat-meta-sep {
  flex-shrink: 0;
  color: rgba(44, 24, 16, 0.22);
  user-select: none;
  padding: 0 3px;
  font-weight: 500;
}

#bb-chatbot-root .bb-chat-meta-link {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6b625c;
  background: transparent;
  border: none;
  padding: 2px 5px;
  margin: 0;
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

#bb-chatbot-root .bb-chat-meta-link:hover {
  color: var(--bb-red);
  background: rgba(214, 40, 40, 0.06);
}

#bb-chatbot-root .bb-chat-meta-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bb-red-soft);
}

#bb-chatbot-root .bb-footer-compose-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

#bb-chatbot-root .bb-footer-compose {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#bb-chatbot-root .bb-mini-cart {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 3;
}

#bb-chatbot-root .bb-mini-cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 12px;
  background: var(--bb-surface);
  color: var(--bb-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s var(--bb-ease-out), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#bb-chatbot-root .bb-mini-cart-badge:hover {
  border-color: rgba(196, 30, 58, 0.35);
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.12);
  transform: translateY(-1px);
}

#bb-chatbot-root .bb-mini-cart-badge:active {
  transform: translateY(0) scale(0.98);
}

#bb-chatbot-root .bb-mini-cart-badge:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bb-red-soft), 0 2px 8px rgba(0, 0, 0, 0.08);
}

#bb-chatbot-root .bb-mini-cart-icon {
  font-size: 16px;
  line-height: 1;
}

#bb-chatbot-root .bb-mini-cart-count-bubble {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #e11d48 0%, #b91c1c 100%);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.45);
  pointer-events: none;
}

#bb-chatbot-root .bb-mini-cart-count {
  min-width: 1em;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
}

#bb-chatbot-root .bb-mini-cart-count-bubble .bb-cart-count-hot {
  color: #fff;
}

/* Full-panel cart preview (same footprint as chat window) */
#bb-chatbot-root .bb-mini-cart-pop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  pointer-events: none;
  padding: 0;
  margin: 0;
}

#bb-chatbot-root .bb-mini-cart-pop.bb-open {
  display: flex;
  pointer-events: auto;
}

#bb-chatbot-root .bb-mini-cart-pop-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(26, 10, 12, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#bb-chatbot-root .bb-mini-cart-pop-sheet {
  position: relative;
  z-index: 1;
  margin: 10px 10px 12px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, #fffdf9 0%, #faf7f4 52%, #f3eeea 100%);
  border: 1px solid rgba(20, 20, 20, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

#bb-chatbot-root .bb-mini-cart-pop-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(125deg, #1a0a0c 0%, var(--bb-red-dark) 45%, var(--bb-red) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#bb-chatbot-root .bb-mini-cart-pop-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

#bb-chatbot-root .bb-mini-cart-pop-close {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

#bb-chatbot-root .bb-mini-cart-pop-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

#bb-chatbot-root .bb-mini-cart-pop-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 8px;
  overflow: hidden;
}

#bb-chatbot-root .bb-mini-cart-line-remove {
  flex: 1 0 100%;
  margin-top: 6px;
  border: none;
  background: none;
  color: var(--bb-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
  text-align: left;
}

#bb-chatbot-root .bb-mini-cart-pop-foot {
  flex-shrink: 0;
  padding: 0 14px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 253, 249, 0.95) 18%);
}

#bb-chatbot-root .bb-mini-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  margin: 0;
}

#bb-chatbot-root .bb-mini-cart-line {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 20, 20, 0.06);
}

#bb-chatbot-root .bb-mini-cart-line:last-child {
  margin-bottom: 0;
}

#bb-chatbot-root .bb-mini-cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#bb-chatbot-root .bb-mini-cart-line-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--bb-text);
  line-height: 1.35;
}

#bb-chatbot-root .bb-mini-cart-line-qty {
  font-size: 11px;
  font-weight: 600;
  color: var(--bb-muted);
}

#bb-chatbot-root .bb-mini-cart-line-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

#bb-chatbot-root .bb-mini-cart-unit {
  font-size: 11px;
  color: var(--bb-muted);
  font-weight: 500;
}

#bb-chatbot-root .bb-mini-cart-sub {
  font-size: 14px;
  font-weight: 800;
  color: var(--bb-red);
}

#bb-chatbot-root .bb-mini-cart-empty {
  font-size: 14px;
  color: var(--bb-muted);
  padding: 24px 8px;
  text-align: center;
}

#bb-chatbot-root .bb-mini-cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 12px;
  margin-top: 0;
  border-top: 1px dashed rgba(20, 20, 20, 0.12);
  font-size: 14px;
  font-weight: 700;
  color: var(--bb-text-soft);
}

#bb-chatbot-root .bb-mini-cart-summary strong {
  font-size: 18px;
  color: var(--bb-red);
}

#bb-chatbot-root .bb-mini-cart-place {
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
}

#bb-chatbot-root .bb-cart-summary-highlight {
  animation: bb-cart-highlight 1.8s ease-out 1;
}

@keyframes bb-cart-highlight {
  0% {
    box-shadow: inset 0 0 0 0 rgba(196, 30, 58, 0);
  }
  25% {
    box-shadow: inset 0 0 0 3px rgba(196, 30, 58, 0.2);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(196, 30, 58, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #bb-chatbot-root .bb-mini-cart-pop-backdrop,
  #bb-chatbot-root .bb-mini-cart-pop-sheet {
    transition: none;
  }
}

#bb-chatbot-root .bb-input {
  flex: 1;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: var(--bb-surface);
  color: var(--bb-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

#bb-chatbot-root .bb-input:focus {
  border-color: rgba(196, 30, 58, 0.45);
  box-shadow: 0 0 0 4px var(--bb-red-soft);
}

#bb-chatbot-root .bb-input:disabled {
  background: #eceae8;
  color: #8a8580;
  border-color: #e0dcd8;
}

#bb-chatbot-root .bb-send {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(145deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(157, 24, 48, 0.35);
  transition: transform 0.18s var(--bb-ease-out), box-shadow 0.2s ease;
}

#bb-chatbot-root .bb-send:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bb-red-soft), 0 6px 18px rgba(157, 24, 48, 0.35);
}

#bb-chatbot-root .bb-send:hover:not(:disabled) {
  transform: scale(1.06);
}

#bb-chatbot-root .bb-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

#bb-chatbot-root .bb-send.bb-shake {
  animation: bb-shake 0.4s ease;
}

@keyframes bb-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

@media (max-width: 520px) {
  #bb-chatbot-root .bb-panel {
    left: max(0px, env(safe-area-inset-left, 0px));
    right: max(0px, env(safe-area-inset-right, 0px));
    width: auto;
    bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    height: min(72dvh, 520px);
    max-height: calc(100dvh - 88px);
    border-radius: 20px 20px 0 0;
  }

  #bb-chatbot-root .bb-launcher-wrap {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }

  #bb-chatbot-root .bb-quick-primary {
    gap: 6px;
  }

  #bb-chatbot-root .bb-quick-btn-hilite {
    min-height: 70px;
    font-size: 12px;
  }

  #bb-chatbot-root .bb-row-user .bb-bubble-wrap {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  #bb-chatbot-root .bb-panel {
    bottom: calc(116px + env(safe-area-inset-bottom, 0px));
  }

  #bb-chatbot-root .bb-burger-image {
    width: 58px;
    min-width: 58px;
  }

  #bb-chatbot-root .bb-burger-image[data-burger]::before {
    font-size: 24px;
  }

  #bb-chatbot-root .bb-pill-grid {
    gap: 6px;
  }

  #bb-chatbot-root .bb-pill-grid .bb-pill {
    min-height: 48px;
    padding: 5px 4px;
  }

  #bb-chatbot-root .bb-pill-grid .bb-pill-image {
    width: 22px;
    height: 22px;
  }

  #bb-chatbot-root .bb-pill-grid .bb-pill-icon {
    font-size: 18px;
  }
}
/* ===== BEAUTIFUL MENU STYLING ===== */
#bb-chatbot-root .bb-menu-container {
  display: flex;
  flex-direction: column;
  max-height: min(58vh, 520px);
  min-height: 0;
  background: linear-gradient(165deg, #fffdf9 0%, #faf7f4 55%, #f5f1ed 100%);
  border-radius: var(--bb-radius-lg);
  padding: 12px 0 0;
  margin: 8px 0 10px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  box-shadow: var(--bb-card-shadow);
  border: 1px solid var(--bb-border);
  text-align: left;
}

#bb-chatbot-root .bb-menu-top {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(250, 247, 244, 0.98) 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

#bb-chatbot-root .bb-menu-scroll {
  flex: 1 1 auto;
  min-height: 72px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 10px 10px;
  margin: 0;
  box-sizing: border-box;
}

#bb-chatbot-root .bb-menu-header {
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  color: var(--bb-red);
  padding: 6px 0 12px;
  margin: 0;
  width: 100%;
  max-width: none;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  letter-spacing: -0.03em;
}

#bb-chatbot-root .bb-menu-nav {
  width: 100%;
  margin: 0;
  padding: 12px 0 10px;
  box-sizing: border-box;
  background: transparent;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 0;
  text-align: left;
}

#bb-chatbot-root .bb-menu-section {
  margin-bottom: 14px;
}

#bb-chatbot-root .bb-menu-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #2c1810;
  padding: 5px 0;
  border-left: 3px solid var(--bb-red);
  padding-left: 8px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(214, 40, 40, 0.05), transparent);
}

#bb-chatbot-root .bb-menu-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#bb-chatbot-root .bb-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bb-surface);
  border-radius: 12px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s var(--bb-ease-out);
  border: 1px solid rgba(20, 20, 20, 0.08);
}

#bb-chatbot-root .bb-menu-item:hover {
  transform: translateX(2px);
  border-color: rgba(196, 30, 58, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

#bb-chatbot-root .bb-menu-item-small {
  padding: 5px 9px;
}

#bb-chatbot-root .bb-menu-item-info {
  flex: 1;
}

#bb-chatbot-root .bb-menu-item-name {
  font-weight: 700;
  color: #2c1810;
  font-size: 12px;
  margin-bottom: 2px;
}

#bb-chatbot-root .bb-menu-item-desc {
  font-size: 10px;
  color: var(--bb-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

#bb-chatbot-root .bb-menu-item-price {
  font-weight: 800;
  color: var(--bb-red);
  font-size: 12px;
  background: linear-gradient(135deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 50px;
  text-align: right;
}

#bb-chatbot-root .bb-menu-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

#bb-chatbot-root .bb-menu-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bb-surface);
  border-radius: 12px;
  padding: 10px 10px;
  text-align: left;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s var(--bb-ease-out);
  border: 1px solid rgba(20, 20, 20, 0.08);
  cursor: pointer;
}

#bb-chatbot-root .bb-menu-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 30, 58, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

#bb-chatbot-root .bb-menu-card-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

#bb-chatbot-root .bb-menu-card-name {
  font-weight: 700;
  font-size: 11px;
  color: #2c1810;
  margin-bottom: 4px;
}

#bb-chatbot-root .bb-menu-card-price {
  font-weight: 800;
  font-size: 11px;
  color: var(--bb-red);
}

#bb-chatbot-root .bb-menu-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding: 10px 10px 12px;
  border-top: 1px dashed rgba(214, 40, 40, 0.2);
  box-sizing: border-box;
}

#bb-chatbot-root .bb-menu-order-btn {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

#bb-chatbot-root .bb-menu-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.35);
}

#bb-chatbot-root .bb-menu-order-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bb-red-soft), 0 6px 20px rgba(214, 40, 40, 0.35);
}
/* ===== MENU IMAGE STYLES ===== */
#bb-chatbot-root .bb-menu-item-image {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
  margin-right: 8px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #fdf4e6, #f7e8d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

#bb-chatbot-root .bb-menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#bb-chatbot-root .bb-menu-card-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 6px 0;
  background: linear-gradient(145deg, #fdf4e6, #f7e8d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

#bb-chatbot-root .bb-menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* —— Delivery choice (pickup vs delivery) —— */
#bb-chatbot-root .bb-delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

#bb-chatbot-root .bb-delivery-pill {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 12px;
  padding: 8px 6px;
  border: 2px solid #e8e0dc;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

#bb-chatbot-root .bb-delivery-pill:hover {
  border-color: var(--bb-amber);
  box-shadow: 0 4px 12px rgba(244, 162, 97, 0.15);
}

#bb-chatbot-root .bb-delivery-pill .bb-pill-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

#bb-chatbot-root .bb-delivery-pill-title {
  font-size: 12px;
  font-weight: 800;
  color: #2c1810;
}

#bb-chatbot-root .bb-delivery-pill-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--bb-muted);
  text-align: center;
  line-height: 1.25;
  padding: 0 4px;
}

/* —— Checkout payment (COD vs card) —— */
#bb-chatbot-root .bb-checkout-pay {
  margin-top: 12px;
  padding: 10px 8px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 243, 0.9) 100%);
  border-radius: 12px;
  border: 1px solid rgba(214, 40, 40, 0.12);
}

#bb-chatbot-root .bb-checkout-pay-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--bb-red-dark);
  text-align: center;
  letter-spacing: 0.02em;
}

#bb-chatbot-root .bb-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#bb-chatbot-root .bb-payment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  min-height: 76px;
  border: 2px solid #e0d8d4;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

#bb-chatbot-root .bb-payment-btn:hover {
  border-color: var(--bb-red);
  box-shadow: 0 4px 12px rgba(214, 40, 40, 0.12);
}

#bb-chatbot-root .bb-payment-btn.bb-selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--bb-red) 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(214, 40, 40, 0.35);
}

#bb-chatbot-root .bb-payment-btn.bb-selected .bb-payment-hint,
#bb-chatbot-root .bb-payment-btn.bb-selected .bb-payment-label {
  color: #fff;
}

#bb-chatbot-root .bb-payment-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}

#bb-chatbot-root .bb-payment-label {
  font-size: 11px;
  font-weight: 800;
  color: #2c1810;
}

#bb-chatbot-root .bb-payment-hint {
  font-size: 9px;
  font-weight: 500;
  color: var(--bb-muted);
  text-align: center;
  line-height: 1.25;
}

#bb-chatbot-root .bb-payment-hint-msg {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--bb-red);
  text-align: center;
}

/* —— Cart count (footer mini-cart badge) —— */
#bb-chatbot-root .bb-cart-count {
  min-width: 1.25em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#bb-chatbot-root .bb-cart-count-hot {
  color: var(--bb-red);
}

/* —— Toast —— */
#bb-chatbot-root .bb-toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) translateY(12px);
  z-index: 100001;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(360px, calc(100vw - 32px));
  text-align: center;
}

#bb-chatbot-root .bb-toast.bb-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— Variant modal —— */
#bb-chatbot-root .bb-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#bb-chatbot-root .bb-modal.bb-modal-open {
  pointer-events: auto;
  opacity: 1;
}

#bb-chatbot-root .bb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#bb-chatbot-root .bb-modal-sheet {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 16px 20px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#bb-chatbot-root .bb-modal.bb-modal-open .bb-modal-sheet {
  transform: translateY(0);
}

#bb-chatbot-root .bb-modal-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  background: #f3f3f3;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

#bb-chatbot-root .bb-modal-title {
  margin: 0 36px 4px 0;
  font-size: 16px;
  font-weight: 800;
  color: #2c1810;
}

#bb-chatbot-root .bb-modal-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--bb-muted);
}

#bb-chatbot-root .bb-var-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  /* Show ~4 variant rows; additional options scroll inside this area */
  max-height: calc(4 * 3rem + 1.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
  min-height: 0;
}

#bb-chatbot-root .bb-var-chip {
  width: 100%;
  flex-shrink: 0;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #e8e0dc;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#bb-chatbot-root .bb-var-chip.bb-selected {
  border-color: var(--bb-red);
  background: var(--bb-red-soft);
}

#bb-chatbot-root .bb-var-footer {
  border-top: 1px dashed #e5e5e5;
  padding-top: 12px;
}

#bb-chatbot-root .bb-var-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--bb-red);
  margin-bottom: 10px;
  text-align: center;
}

#bb-chatbot-root .bb-var-actions {
  display: flex;
  gap: 8px;
}

#bb-chatbot-root .bb-var-actions .bb-btn-outline,
#bb-chatbot-root .bb-var-actions .bb-btn-red {
  flex: 1;
}

/* —— Cart drawer —— */
#bb-chatbot-root .bb-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  overflow: hidden;
  overscroll-behavior: none;
}

#bb-chatbot-root .bb-cart-overlay.bb-cart-overlay-open {
  pointer-events: auto;
  opacity: 1;
}

#bb-chatbot-root .bb-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

#bb-chatbot-root .bb-cart-panel {
  position: relative;
  width: min(380px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  align-self: stretch;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#bb-chatbot-root .bb-cart-overlay.bb-cart-overlay-open .bb-cart-panel {
  transform: translateX(0);
}

#bb-chatbot-root .bb-cart-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 10px 16px;
  border-bottom: 1px solid #eee;
}

#bb-chatbot-root .bb-cart-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

#bb-chatbot-root .bb-cart-back-mini {
  flex-shrink: 0;
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 16px 10px;
  border: none;
  border-bottom: 1px solid #f0ebe8;
  background: #faf8f6;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--bb-red);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

#bb-chatbot-root .bb-cart-back-mini:hover {
  background: #f3eeea;
  color: #9b1c2e;
}

#bb-chatbot-root .bb-cart-back-mini:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--bb-red-soft);
}

#bb-chatbot-root .bb-cart-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
}

#bb-chatbot-root .bb-cart-body {
  flex: 0 0 auto;
  padding: 10px 14px;
  min-height: 80px;
}

#bb-chatbot-root .bb-cart-empty {
  margin: 24px 0;
  text-align: center;
  color: var(--bb-muted);
  font-size: 14px;
}

#bb-chatbot-root .bb-cart-line {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

#bb-chatbot-root .bb-cart-line-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

#bb-chatbot-root .bb-cart-line-name {
  font-weight: 600;
  color: #2c1810;
}

#bb-chatbot-root .bb-cart-line-price {
  font-weight: 800;
  color: var(--bb-red);
  flex-shrink: 0;
}

#bb-chatbot-root .bb-cart-line-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--bb-muted);
}

#bb-chatbot-root .bb-cart-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

#bb-chatbot-root .bb-cart-qty-label {
  font-weight: 600;
  margin-right: 4px;
}

#bb-chatbot-root .bb-cart-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #e8e4e0;
  background: #faf8f6;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #2c1810;
}

#bb-chatbot-root .bb-cart-qty-btn:active {
  transform: scale(0.96);
}

#bb-chatbot-root .bb-cart-qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #2c1810;
}

#bb-chatbot-root .bb-cart-line-remove {
  margin-top: 6px;
  border: none;
  background: none;
  color: var(--bb-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

#bb-chatbot-root .bb-cart-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 14px 18px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

#bb-chatbot-root .bb-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
}

#bb-chatbot-root .bb-cart-total-row strong {
  color: var(--bb-red);
  font-size: 18px;
}

#bb-chatbot-root .bb-cart-stripe:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#bb-chatbot-root .bb-cart-cash {
  font-weight: 700;
  font-size: 13px;
}

#bb-chatbot-root .bb-cart-cash:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* —— Menu tabs + card add buttons —— */
#bb-chatbot-root .bb-menu-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  justify-content: stretch;
  align-items: stretch;
  overflow-x: auto;
  padding: 4px 0 2px;
  margin: 0 0 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

#bb-chatbot-root .bb-menu-tab {
  flex: 1 1 0;
  min-width: 72px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--bb-text-soft);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.18s var(--bb-ease-out), box-shadow 0.2s ease;
  font-family: inherit;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#bb-chatbot-root .bb-menu-tab:hover {
  border-color: rgba(196, 30, 58, 0.28);
  color: var(--bb-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#bb-chatbot-root .bb-menu-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bb-red-soft);
}

#bb-chatbot-root .bb-menu-tab-active {
  background: linear-gradient(135deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(157, 24, 48, 0.28);
}

#bb-chatbot-root .bb-menu-section-sub {
  font-size: 12px;
  font-weight: 800;
  color: #2c1810;
  margin: 10px 0 6px;
}

#bb-chatbot-root .bb-menu-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

#bb-chatbot-root .bb-menu-sale-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(157, 24, 48, 0.25);
}

#bb-chatbot-root .bb-menu-add-cart {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--bb-red) 0%, var(--bb-red-dark) 100%);
  color: #fff;
  font-family: inherit;
  white-space: nowrap;
  transition: transform 0.18s var(--bb-ease-out), box-shadow 0.2s ease, filter 0.2s ease;
}

#bb-chatbot-root .bb-menu-add-cart:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 12px rgba(157, 24, 48, 0.28);
  transform: translateY(-1px);
}

#bb-chatbot-root .bb-menu-add-cart:active {
  transform: translateY(0) scale(0.98);
}

#bb-chatbot-root .bb-menu-add-cart:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bb-red-soft), 0 4px 12px rgba(157, 24, 48, 0.28);
}

#bb-chatbot-root .bb-menu-card .bb-menu-add-cart {
  margin-top: 6px;
  width: 100%;
}

#bb-chatbot-root .bb-menu-card {
  cursor: default;
}

/* —— Burger card dual buttons —— */
#bb-chatbot-root .bb-burger-btns {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

#bb-chatbot-root .bb-burger-btns .bb-btn-select,
#bb-chatbot-root .bb-burger-btns .bb-btn-cart {
  flex: 1;
  font-size: 11px;
  padding: 7px 6px;
}

/* —— Menu search —— */
#bb-chatbot-root .bb-menu-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 6px;
  width: 100%;
}

#bb-chatbot-root .bb-menu-search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--bb-text);
  background: var(--bb-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#bb-chatbot-root .bb-menu-search:focus {
  outline: none;
  border-color: rgba(196, 30, 58, 0.45);
  box-shadow: 0 0 0 3px var(--bb-red-soft);
}

#bb-chatbot-root .bb-menu-search::placeholder {
  color: #8a8078;
}

/* —— Cart checkout details —— */
#bb-chatbot-root .bb-cart-fulfill {
  border-top: 1px solid #eee;
  padding: 12px 14px 10px;
  background: #fffdf9;
}

#bb-chatbot-root .bb-cart-fulfill-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #2c1810;
}

#bb-chatbot-root .bb-cart-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #2c1810;
}

#bb-chatbot-root .bb-cart-field > span {
  font-weight: 700;
  font-size: 11px;
  color: #5c4a42;
}

#bb-chatbot-root .bb-cart-field input,
#bb-chatbot-root .bb-cart-field textarea,
#bb-chatbot-root .bb-cart-field select,
#bb-chatbot-root .bb-fulfill-select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #e8e0dc;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #2c1810;
  background: #fff;
}

#bb-chatbot-root .bb-cart-field select,
#bb-chatbot-root .bb-fulfill-select {
  cursor: pointer;
  appearance: auto;
  min-height: 40px;
}

#bb-chatbot-root .bb-cart-field textarea {
  resize: vertical;
  min-height: 44px;
}

#bb-chatbot-root .bb-cart-field-inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 8px;
}

#bb-chatbot-root .bb-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

#bb-chatbot-root .bb-radio input {
  width: auto;
  margin: 0;
  accent-color: var(--bb-red);
}

/* —— Deals panel (quick reply) —— */
#bb-chatbot-root .bb-deals-container {
  background: linear-gradient(165deg, #fffdf9 0%, #faf7f4 55%, #f5f1ed 100%);
  border-radius: var(--bb-radius-lg);
  padding: 12px 0 14px;
  margin: 8px 0 10px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  box-shadow: var(--bb-card-shadow);
  border: 1px solid var(--bb-border);
  text-align: left;
}

#bb-chatbot-root .bb-deals-header {
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  color: var(--bb-red);
  padding: 4px 2px 12px;
  margin: 0 0 8px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  letter-spacing: -0.03em;
}

#bb-chatbot-root .bb-deals-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#bb-chatbot-root .bb-deal-card {
  padding: 12px 12px;
  border-radius: 12px;
  background: var(--bb-surface);
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

#bb-chatbot-root .bb-deal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

#bb-chatbot-root .bb-deal-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--bb-text);
  line-height: 1.3;
}

#bb-chatbot-root .bb-deal-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--bb-red);
  flex-shrink: 0;
}

#bb-chatbot-root .bb-deal-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bb-red-dark);
  background: var(--bb-red-soft);
  border: 1px solid rgba(196, 30, 58, 0.15);
}

#bb-chatbot-root .bb-deal-desc {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--bb-text-soft);
}

#bb-chatbot-root .bb-deal-card-thumb {
  margin: 0 0 10px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 140px;
  background: rgba(0, 0, 0, 0.04);
}

#bb-chatbot-root .bb-deal-card-thumb img {
  width: 100%;
  height: auto;
  max-height: 140px;
  display: block;
  object-fit: cover;
}

#bb-chatbot-root .bb-deal-card-wc .bb-deal-add-cart {
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

#bb-chatbot-root .bb-deals-prose {
  font-size: 13px;
  line-height: 1.55;
  color: var(--bb-text-soft);
  padding: 4px 2px 8px;
}

#bb-chatbot-root .bb-deals-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(20, 20, 20, 0.1);
}