/**
 * Alfred Course Ranger - Widget Styles
 *
 * A modern, accessible chat widget for customer support.
 * Supports both light and dark modes.
 */

/* CSS Variables for theming */
:root {
  --alfred-primary: #10B981;
  --alfred-primary-dark: #059669;
  --alfred-primary-light: #34D399;
  --alfred-bg: #ffffff;
  --alfred-bg-secondary: #F3F4F6;
  --alfred-text: #1F2937;
  --alfred-text-secondary: #6B7280;
  --alfred-border: #E5E7EB;
  --alfred-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  --alfred-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --alfred-customer-bg: #10B981;
  --alfred-customer-text: #ffffff;
  --alfred-ai-bg: #3B82F6;
  --alfred-ai-text: #ffffff;
  --alfred-radius: 16px;
  --alfred-radius-sm: 8px;
}

/* Dark mode */
.dark-mode .alfred-ranger-widget,
[data-theme="dark"] .alfred-ranger-widget,
body.dark-mode .alfred-ranger-widget {
  --alfred-bg: #1F2937;
  --alfred-bg-secondary: #374151;
  --alfred-text: #F9FAFB;
  --alfred-text-secondary: #9CA3AF;
  --alfred-border: #4B5563;
  --alfred-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --alfred-ai-bg: #2563EB;
  --alfred-ai-text: #ffffff;
}

/* Dark mode for typing indicator - ensure it works with body.dark-mode */
body.dark-mode .alfred-typing-indicator,
.dark-mode .alfred-typing-indicator {
  background: #2563EB;
}

body.dark-mode .alfred-typing-indicator span,
.dark-mode .alfred-typing-indicator span {
  background: rgba(255, 255, 255, 0.6);
}

/* Dark mode for quick action buttons */
body.dark-mode .alfred-quick-hazard,
.dark-mode .alfred-quick-hazard {
  border-color: #7C2D12;
  background: #431407;
}
body.dark-mode .alfred-quick-hazard svg,
.dark-mode .alfred-quick-hazard svg {
  color: #FB923C;
}
body.dark-mode .alfred-quick-hazard span,
.dark-mode .alfred-quick-hazard span {
  color: #FDBA74;
}

body.dark-mode .alfred-quick-stuck,
.dark-mode .alfred-quick-stuck {
  border-color: #713F12;
  background: #422006;
}
body.dark-mode .alfred-quick-stuck svg,
.dark-mode .alfred-quick-stuck svg {
  color: #FACC15;
}
body.dark-mode .alfred-quick-stuck span,
.dark-mode .alfred-quick-stuck span {
  color: #FDE047;
}

body.dark-mode .alfred-quick-equipment,
.dark-mode .alfred-quick-equipment {
  border-color: #1E3A8A;
  background: #1E293B;
}
body.dark-mode .alfred-quick-equipment svg,
.dark-mode .alfred-quick-equipment svg {
  color: #60A5FA;
}
body.dark-mode .alfred-quick-equipment span,
.dark-mode .alfred-quick-equipment span {
  color: #93C5FD;
}

body.dark-mode .alfred-quick-food,
.dark-mode .alfred-quick-food {
  border-color: #14532D;
  background: #052E16;
}
body.dark-mode .alfred-quick-food svg,
.dark-mode .alfred-quick-food svg {
  color: #4ADE80;
}
body.dark-mode .alfred-quick-food span,
.dark-mode .alfred-quick-food span {
  color: #86EFAC;
}

body.dark-mode .alfred-quick-staff,
.dark-mode .alfred-quick-staff {
  border-color: #475569;
  background: #1E293B;
}
body.dark-mode .alfred-quick-staff svg,
.dark-mode .alfred-quick-staff svg {
  color: #94A3B8;
}
body.dark-mode .alfred-quick-staff span,
.dark-mode .alfred-quick-staff span {
  color: #CBD5E1;
}

body.dark-mode .alfred-quick-question,
.dark-mode .alfred-quick-question {
  border-color: #134E4A;
  background: #042F2E;
}
body.dark-mode .alfred-quick-question svg,
.dark-mode .alfred-quick-question svg {
  color: #2DD4BF;
}
body.dark-mode .alfred-quick-question span,
.dark-mode .alfred-quick-question span {
  color: #5EEAD4;
}

/* Dark mode for messages area */
body.dark-mode .alfred-messages,
.dark-mode .alfred-messages {
  background: #1F2937;
}

/* Dark mode for input area */
body.dark-mode .alfred-input-area,
.dark-mode .alfred-input-area {
  background: #1F2937;
  border-top-color: #4B5563;
}

body.dark-mode .alfred-input,
.dark-mode .alfred-input {
  background: #374151;
  border-color: #4B5563;
  color: #F9FAFB;
}

body.dark-mode .alfred-input::placeholder,
.dark-mode .alfred-input::placeholder {
  color: #9CA3AF;
}

/* Dark mode for welcome screen */
body.dark-mode .alfred-welcome-screen h3,
.dark-mode .alfred-welcome-screen h3 {
  color: #F9FAFB;
}

body.dark-mode .alfred-welcome-screen p,
.dark-mode .alfred-welcome-screen p {
  color: #9CA3AF;
}

/* Dark mode for chat panel */
body.dark-mode .alfred-chat-panel,
.dark-mode .alfred-chat-panel {
  background: #1F2937;
}

/* Dark mode for back to chat button */
body.dark-mode .alfred-back-to-chat,
.dark-mode .alfred-back-to-chat {
  background: #374151;
  border-color: #4B5563;
  color: #F9FAFB;
}

body.dark-mode .alfred-back-to-chat:hover,
.dark-mode .alfred-back-to-chat:hover {
  background: #4B5563;
  border-color: #6B7280;
}

body.dark-mode .alfred-back-to-chat svg,
.dark-mode .alfred-back-to-chat svg {
  color: #9CA3AF;
}

/* Dark mode for options button */
body.dark-mode .alfred-options-btn,
.dark-mode .alfred-options-btn {
  background: #374151;
  border-color: #4B5563;
}

body.dark-mode .alfred-options-btn:hover,
.dark-mode .alfred-options-btn:hover {
  background: #4B5563;
  border-color: #6B7280;
}

body.dark-mode .alfred-options-btn svg,
.dark-mode .alfred-options-btn svg {
  color: #F9FAFB;
}

/* Widget Container */
.alfred-ranger-widget {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

/* Bouncing Animation */
@keyframes alfred-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes alfred-bounce-high {
  0% {
    transform: translateY(0) scale(1);
  }
  20% {
    transform: translateY(-25px) scale(1.1);
  }
  40% {
    transform: translateY(0) scale(0.95);
  }
  60% {
    transform: translateY(-10px) scale(1.05);
  }
  80% {
    transform: translateY(0) scale(0.98);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Floating Chat Button - PuttScores Green Theme */
.alfred-chat-button {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  position: relative;
  touch-action: none;
  user-select: none;
  animation: alfred-float 3s ease-in-out infinite;
}

.alfred-chat-button.dragging {
  cursor: grabbing;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: none;
}

.alfred-chat-button.bounce-high {
  animation: alfred-bounce-high 0.6s ease-out;
}

.alfred-chat-button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

.alfred-chat-button:active {
  transform: scale(0.95);
}

.alfred-chat-button.alfred-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}

.alfred-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: none;
  pointer-events: none;
}

/* Notification Dot */
.alfred-notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #EF4444;
  border-radius: 8px;
  border: 2px solid white;
  animation: alfred-pulse 2s infinite;
}

@keyframes alfred-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* Chat Panel - Fullscreen */
.alfred-chat-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background: var(--alfred-bg);
  border-radius: 8px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: alfred-fade-in 0.2s ease;
  z-index: 10000;
}

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

.alfred-chat-panel.alfred-minimized {
  height: auto;
}

.alfred-chat-panel.alfred-minimized .alfred-messages,
.alfred-chat-panel.alfred-minimized .alfred-input-area {
  display: none;
}

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

/* Header - Black/White Alfred Theme */
.alfred-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #1a1a1a;
  color: white;
  cursor: grab;
  user-select: none;
}

.alfred-chat-header:active {
  cursor: grabbing;
}

.alfred-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alfred-avatar {
  width: 50px;
  height: 50px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.alfred-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.alfred-avatar svg {
  width: 30px;
  height: 30px;
}

.alfred-header-text {
  display: flex;
  flex-direction: column;
}

.alfred-name {
  font-weight: 600;
  font-size: 16px;
}

.alfred-status {
  font-size: 12px;
  opacity: 0.9;
}

.alfred-header-actions {
  display: flex;
  gap: 8px;
}

.alfred-minimize-btn,
.alfred-close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s;
}

.alfred-minimize-btn:hover,
.alfred-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.alfred-minimize-btn svg,
.alfred-close-btn svg {
  width: 16px;
  height: 16px;
}

/* Header Back Button */
.alfred-header-back-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s ease;
  margin-right: 8px;
  flex-shrink: 0;
}

.alfred-header-back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-2px);
}

.alfred-header-back-btn svg {
  width: 20px;
  height: 20px;
}

.alfred-header-back-btn:focus {
  outline: 2px solid var(--alfred-primary-light);
  outline-offset: 2px;
}

/* Messages Area */
.alfred-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--alfred-bg);
  scroll-behavior: smooth;
  position: relative;
}

/* When food panel is open, messages area handles checkout bar positioning */
.alfred-messages:has(.alfred-food-panel),
.alfred-messages.food-panel-open {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Welcome Screen - Fullscreen Optimized */
.alfred-welcome-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  min-height: 100%;
}

.alfred-welcome-screen h3 {
  color: var(--alfred-text);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.alfred-welcome-screen p {
  color: var(--alfred-text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 320px;
}

/* Quick Actions - Improved UI */
.alfred-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px;
  width: 100%;
  max-width: 400px;
}

.alfred-quick-action {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--alfred-bg);
  border: 2px solid var(--alfred-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.alfred-quick-action:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.alfred-quick-action:active {
  transform: scale(0.98);
}

.alfred-quick-action svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.alfred-quick-action span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* Hazard - Red/Orange */
.alfred-quick-hazard {
  border-color: #FED7AA;
  background: #FFF7ED;
}
.alfred-quick-hazard svg {
  color: #EA580C;
}
.alfred-quick-hazard span {
  color: #C2410C;
}
.alfred-quick-hazard:hover {
  background: #EA580C;
  border-color: #EA580C;
}
.alfred-quick-hazard:hover svg,
.alfred-quick-hazard:hover span {
  color: white;
}

/* Ball Stuck - Yellow */
.alfred-quick-stuck {
  border-color: #FEF08A;
  background: #FEFCE8;
}
.alfred-quick-stuck svg {
  color: #CA8A04;
}
.alfred-quick-stuck span {
  color: #A16207;
}
.alfred-quick-stuck:hover {
  background: #EAB308;
  border-color: #EAB308;
}
.alfred-quick-stuck:hover svg,
.alfred-quick-stuck:hover span {
  color: white;
}

/* Equipment - Blue */
.alfred-quick-equipment {
  border-color: #BFDBFE;
  background: #EFF6FF;
}
.alfred-quick-equipment svg {
  color: #2563EB;
}
.alfred-quick-equipment span {
  color: #1D4ED8;
}
.alfred-quick-equipment:hover {
  background: #2563EB;
  border-color: #2563EB;
}
.alfred-quick-equipment:hover svg,
.alfred-quick-equipment:hover span {
  color: white;
}

/* Food - Green */
.alfred-quick-food {
  border-color: #BBF7D0;
  background: #F0FDF4;
}
.alfred-quick-food svg {
  color: #16A34A;
}
.alfred-quick-food span {
  color: #15803D;
}
.alfred-quick-food:hover {
  background: #16A34A;
  border-color: #16A34A;
}
.alfred-quick-food:hover svg,
.alfred-quick-food:hover span {
  color: white;
}

/* Staff - Slate Gray */
.alfred-quick-staff {
  border-color: #CBD5E1;
  background: #F8FAFC;
}
.alfred-quick-staff svg {
  color: #475569;
}
.alfred-quick-staff span {
  color: #334155;
}
.alfred-quick-staff:hover {
  background: #475569;
  border-color: #475569;
}
.alfred-quick-staff:hover svg,
.alfred-quick-staff:hover span {
  color: white;
}

/* Question - Teal */
.alfred-quick-question {
  border-color: #99F6E4;
  background: #F0FDFA;
}
.alfred-quick-question svg {
  color: #0D9488;
}
.alfred-quick-question span {
  color: #0F766E;
}
.alfred-quick-question:hover {
  background: #0D9488;
  border-color: #0D9488;
}
.alfred-quick-question:hover svg,
.alfred-quick-question:hover span {
  color: white;
}

/* Message List */
.alfred-message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Message Bubbles */
.alfred-message {
  max-width: 85%;
  animation: alfred-message-fade 0.3s ease;
}

.alfred-message-new {
  animation: alfred-message-slide 0.3s ease;
}

@keyframes alfred-message-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes alfred-message-slide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alfred-message-customer {
  align-self: flex-end;
  margin-left: auto;
}

.alfred-message-ai,
.alfred-message-staff {
  align-self: flex-start;
}

.alfred-message-system {
  align-self: center;
  max-width: 90%;
}

.alfred-message-content {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.alfred-message-customer .alfred-message-content {
  background: var(--alfred-customer-bg);
  color: var(--alfred-customer-text);
  border-bottom-right-radius: 4px;
}

.alfred-message-ai .alfred-message-content,
.alfred-message-staff .alfred-message-content {
  background: var(--alfred-ai-bg);
  color: var(--alfred-ai-text);
  border-bottom-left-radius: 4px;
}

.alfred-message-system .alfred-message-content {
  background: transparent;
  color: var(--alfred-text-secondary);
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.alfred-message-meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--alfred-text-secondary);
}

.alfred-message-ai .alfred-message-meta,
.alfred-message-staff .alfred-message-meta {
  justify-content: flex-start;
}

/* Typing Indicator */
.alfred-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--alfred-ai-bg);
  border-radius: 8px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.alfred-typing-indicator::before {
  content: attr(data-name);
  font-size: 12px;
  color: var(--alfred-ai-text);
  margin-right: 8px;
}

.alfred-typing-indicator span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  animation: alfred-typing 1.4s infinite;
}

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

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

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

/* Staff Notified Indicator */
.alfred-staff-notified {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 10px 16px;
  margin: 8px auto;
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  animation: alfred-notified-pop 0.3s ease-out;
  transition: opacity 0.3s ease;
}

.alfred-staff-notified.fading {
  opacity: 0;
}

.alfred-notified-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 2px;
}

@keyframes alfred-notified-pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Input Area */
.alfred-input-area {
  display: flex;
  gap: 8px;
  padding: 16px;
  background: var(--alfred-bg);
  border-top: 1px solid var(--alfred-border);
}

.alfred-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--alfred-border);
  border-radius: 8px;
  background: var(--alfred-bg-secondary);
  color: var(--alfred-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.alfred-input::placeholder {
  color: var(--alfred-text-secondary);
}

.alfred-input:focus {
  border-color: var(--alfred-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.alfred-send-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--alfred-primary);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.alfred-send-btn:hover {
  background: var(--alfred-primary-dark);
  transform: scale(1.05);
}

.alfred-send-btn:active {
  transform: scale(0.95);
}

.alfred-send-btn svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Options Button */
.alfred-options-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--alfred-border);
  background: var(--alfred-bg);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.alfred-options-btn:hover {
  background: var(--alfred-bg-secondary);
  border-color: #1a1a1a;
}

.alfred-options-btn:active {
  transform: scale(0.95);
}

.alfred-options-btn svg {
  width: 20px;
  height: 20px;
  color: #1a1a1a;
}

/* Scrollbar Styling */
.alfred-messages::-webkit-scrollbar {
  width: 6px;
}

.alfred-messages::-webkit-scrollbar-track {
  background: transparent;
}

.alfred-messages::-webkit-scrollbar-thumb {
  background: var(--alfred-border);
  border-radius: 8px;
}

.alfred-messages::-webkit-scrollbar-thumb:hover {
  background: var(--alfred-text-secondary);
}

/* Tablet Responsive */
@media (max-width: 768px) {
  .alfred-quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 500px;
  }

  .alfred-quick-action {
    padding: 22px 16px;
  }

  .alfred-quick-action svg {
    width: 38px;
    height: 38px;
  }

  .alfred-quick-action span {
    font-size: 18px;
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .alfred-ranger-widget {
    bottom: 10px;
    right: 10px;
  }

  .alfred-chat-button {
    width: 56px;
    height: 56px;
  }

  .alfred-icon {
    width: 36px;
    height: 36px;
  }

  .alfred-chat-panel {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 8px;
  }

  .alfred-chat-header {
    padding: 12px;
  }

  .alfred-messages {
    padding: 12px;
  }

  .alfred-quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 12px;
    max-width: 100%;
  }

  .alfred-quick-action {
    padding: 18px 12px;
  }

  .alfred-quick-action svg {
    width: 34px;
    height: 34px;
  }

  .alfred-quick-action span {
    font-size: 16px;
  }

  .alfred-input-area {
    padding: 12px;
  }
}

/* List styling in messages */
.alfred-message-content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.alfred-message-content li {
  margin: 4px 0;
}

/* Strong text in messages */
.alfred-message-content strong {
  font-weight: 600;
}

/* Emphasis in messages */
.alfred-message-content em {
  font-style: italic;
}

/* Links in messages */
.alfred-message-content a {
  color: var(--alfred-primary);
  text-decoration: underline;
}

.alfred-message-customer .alfred-message-content a {
  color: white;
}

/* Accessibility */
.alfred-chat-button:focus,
.alfred-minimize-btn:focus,
.alfred-close-btn:focus,
.alfred-quick-action:focus,
.alfred-send-btn:focus {
  outline: 2px solid var(--alfred-primary-light);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .alfred-chat-button,
  .alfred-chat-panel,
  .alfred-message,
  .alfred-quick-action,
  .alfred-send-btn,
  .alfred-notification-dot {
    animation: none;
    transition: none;
  }
}

/* Back to Chat Button */
.alfred-back-to-chat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
  background: var(--alfred-bg-secondary);
  border: 1px solid var(--alfred-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--alfred-text);
  transition: all 0.2s ease;
}

.alfred-back-to-chat:hover {
  background: var(--alfred-border);
  border-color: #1a1a1a;
}

.alfred-back-to-chat:active {
  transform: scale(0.98);
}

.alfred-back-to-chat svg {
  width: 18px;
  height: 18px;
  color: var(--alfred-text-secondary);
}

.alfred-back-to-chat:focus {
  outline: 2px solid var(--alfred-primary-light);
  outline-offset: 2px;
}

/* Message Limit Notice */
.alfred-limit-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 16px;
  margin: 12px 0;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  animation: alfred-notice-pop 0.3s ease-out;
}

.alfred-limit-notice svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #D97706;
}

@keyframes alfred-notice-pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Disabled input styles */
.alfred-input:disabled {
  background: var(--alfred-bg-secondary);
  color: var(--alfred-text-secondary);
  cursor: not-allowed;
  opacity: 0.7;
}

.alfred-send-btn:disabled {
  background: var(--alfred-border);
  cursor: not-allowed;
  opacity: 0.5;
}

.alfred-send-btn:disabled:hover {
  transform: none;
}

/* ============================================
   Food Carousel Styles
   ============================================ */

.alfred-food-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--alfred-text-secondary);
}

.alfred-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--alfred-border);
  border-top-color: var(--alfred-primary);
  border-radius: 8px;
  animation: spin 0.8s linear infinite;
}

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

.alfred-food-error {
  text-align: center;
  padding: 30px 20px;
  color: var(--alfred-text-secondary);
}

.alfred-food-error p {
  margin-bottom: 16px;
}

.alfred-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--alfred-bg-secondary);
  border: 1px solid var(--alfred-border);
  border-radius: 8px;
  color: var(--alfred-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alfred-back-btn:hover {
  background: var(--alfred-border);
}

.alfred-food-panel {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  position: relative;
  padding: 12px 16px 0 16px !important;
  text-align: left;
  justify-content: flex-start;
  align-items: stretch;
}

/* Override welcome screen styles when showing food panel */
.alfred-welcome-screen:has(.alfred-food-panel),
.alfred-welcome-screen.food-panel-open {
  padding: 0 !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  text-align: left !important;
  flex: 1 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.alfred-food-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 0;
}

.alfred-food-header h3 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--alfred-text);
  text-align: center;
}

.alfred-cart-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  background: #ef4444;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

/* Category Tabs - Fixed at top */
.alfred-category-tabs {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  margin-left: -16px;
  margin-right: -16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--alfred-border);
  background: var(--alfred-bg);
}

.alfred-category-tabs::-webkit-scrollbar {
  display: none;
}

.alfred-category-tab {
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--alfred-bg-secondary);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--alfred-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.alfred-category-tab:hover {
  background: var(--alfred-border);
  color: var(--alfred-text);
}

.alfred-category-tab.active {
  background: var(--alfred-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* ========================================
   NEW FOOD PANEL - Vertical List Design
   ======================================== */

/* Scrollable Food List */
.alfred-food-list {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
  min-height: 0 !important;
}

.alfred-food-list::-webkit-scrollbar {
  width: 4px;
}

.alfred-food-list::-webkit-scrollbar-track {
  background: transparent;
}

.alfred-food-list::-webkit-scrollbar-thumb {
  background: var(--alfred-border);
  border-radius: 8px;
}

/* Food Card - Based on card-interactive pattern */
.alfred-food-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--alfred-bg);
  border: 1px solid var(--alfred-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.alfred-food-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--alfred-primary-light);
}

.alfred-food-card:active {
  transform: translateY(0);
}

.alfred-food-card-image {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--alfred-bg-secondary);
}

.alfred-food-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.alfred-food-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--alfred-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.alfred-food-card-desc {
  font-size: 13px;
  color: var(--alfred-text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.alfred-food-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.alfred-food-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--alfred-primary);
}

/* Add Button on Food Card */
.alfred-food-card-add {
  padding: 8px 16px;
  background: var(--alfred-primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.alfred-food-card-add:hover {
  background: var(--alfred-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.alfred-food-card-add:active {
  transform: translateY(0);
}

/* Quantity Controls on Food Card */
.alfred-food-card-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alfred-food-card-qty button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--alfred-border);
  background: var(--alfred-bg-secondary);
  color: var(--alfred-text);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alfred-food-card-qty button:hover {
  background: var(--alfred-primary);
  border-color: var(--alfred-primary);
  color: white;
}

.alfred-food-card-qty span {
  min-width: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--alfred-text);
}

/* STICKY Checkout Bar - Always visible at bottom */
.alfred-food-checkout-bar {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--alfred-bg);
  border-top: 1px solid var(--alfred-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

.alfred-food-checkout-bar.empty {
  opacity: 0.6;
}

.alfred-checkout-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alfred-checkout-count {
  font-size: 13px;
  color: var(--alfred-text-secondary);
}

.alfred-checkout-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--alfred-text);
}

.alfred-food-checkout-bar .alfred-checkout-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--alfred-primary) 0%, var(--alfred-primary-dark) 100%);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.alfred-food-checkout-bar .alfred-checkout-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.alfred-food-checkout-bar .alfred-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ========================================
   END NEW FOOD PANEL
   ======================================== */

.alfred-no-items {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 24px;
  color: var(--alfred-text-secondary);
  font-size: 14px;
}

.alfred-food-carousel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  padding: 4px 0 16px;
  flex: 0 0 auto;
}

.alfred-food-carousel::-webkit-scrollbar {
  display: none;
}

.alfred-food-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: var(--alfred-bg);
  border: 1px solid var(--alfred-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 12px;
  gap: 14px;
}

.alfred-food-item:hover {
  background: var(--alfred-bg-secondary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: var(--alfred-primary-light);
}

.alfred-food-image {
  width: 100px;
  height: 100px;
  min-width: 100px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--alfred-bg-secondary);
}

.alfred-food-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  gap: 6px;
  min-width: 0;
}

.alfred-food-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--alfred-text);
  line-height: 1.3;
}

.alfred-food-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--alfred-primary);
}

.alfred-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--alfred-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 80px;
}

.alfred-add-btn:hover {
  background: var(--alfred-primary-dark);
  transform: scale(1.02);
}

.alfred-food-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 8px;
  background: var(--alfred-bg-secondary);
  border-radius: 8px;
}

.alfred-food-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--alfred-text);
}

.alfred-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--alfred-bg);
  border: 2px solid var(--alfred-border);
  border-radius: 8px;
  color: var(--alfred-text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.alfred-qty-btn:hover {
  background: var(--alfred-primary);
  border-color: var(--alfred-primary);
  color: white;
}

.alfred-cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(135deg, var(--alfred-primary) 0%, var(--alfred-primary-dark) 100%);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  margin: 0;
  /* Sticky at bottom of scrollable area */
  position: sticky;
  bottom: 0;
  z-index: 100;
}

.alfred-cart-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alfred-cart-info span:first-child {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.alfred-cart-total {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.alfred-checkout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: white;
  border: none;
  border-radius: 8px;
  color: var(--alfred-primary-dark);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alfred-checkout-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.02);
}

/* Dark mode adjustments for food carousel */
body.dark-mode .alfred-food-item,
.dark-mode .alfred-food-item {
  background: var(--alfred-bg-secondary);
  border-color: var(--alfred-border);
}

body.dark-mode .alfred-food-image,
.dark-mode .alfred-food-image {
  background-color: #374151;
}

body.dark-mode .alfred-qty-btn,
.dark-mode .alfred-qty-btn {
  background: var(--alfred-bg);
  border-color: var(--alfred-border);
}

/* ============================================
   Order Tracking Styles
   ============================================ */

.alfred-active-order-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  background: linear-gradient(135deg, var(--alfred-primary) 0%, var(--alfred-primary-dark) 100%);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.alfred-active-order-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.alfred-order-pulse {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.alfred-order-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alfred-order-banner-title {
  font-weight: 600;
  font-size: 13px;
}

.alfred-order-banner-status {
  font-size: 12px;
  opacity: 0.9;
}

.alfred-order-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--alfred-text-secondary);
}

.alfred-order-tracking {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  overflow-y: auto;
}

/* Order Header */
.alfred-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  margin-bottom: 10px;
}

.alfred-order-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alfred-order-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--alfred-text);
}

.alfred-order-status-badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.alfred-order-status-badge.received,
.alfred-order-status-badge.pending {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.alfred-order-status-badge.confirmed {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.alfred-order-status-badge.preparing {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

.alfred-order-status-badge.ready,
.alfred-order-status-badge.out_for_delivery {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.alfred-order-status-badge.delivered {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.alfred-order-eta {
  font-size: 13px;
  color: var(--alfred-text-secondary);
  font-weight: 500;
}

/* Progress Bar */
.alfred-progress-container {
  margin-bottom: 16px;
  padding: 0 4px;
}

.alfred-progress-bar {
  position: relative;
  height: 8px;
  background: var(--alfred-border);
  border-radius: 8px;
  overflow: visible;
  margin-bottom: 8px;
}

.alfred-progress-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease, background 0.5s ease;
}

/* Status-based colors and widths */
.alfred-progress-bar[data-status="pending"] .alfred-progress-fill,
.alfred-progress-bar[data-status="received"] .alfred-progress-fill {
  width: 15%;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.alfred-progress-bar[data-status="confirmed"] .alfred-progress-fill {
  width: 35%;
  background: linear-gradient(90deg, #f97316, #eab308);
}

.alfred-progress-bar[data-status="preparing"] .alfred-progress-fill {
  width: 65%;
  background: linear-gradient(90deg, #eab308, #84cc16);
}

.alfred-progress-bar[data-status="ready"] .alfred-progress-fill,
.alfred-progress-bar[data-status="out_for_delivery"] .alfred-progress-fill,
.alfred-progress-bar[data-status="delivered"] .alfred-progress-fill {
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #10b981);
}

.alfred-progress-pizza {
  position: absolute;
  top: -14px;
  font-size: 24px;
  transition: left 0.5s ease;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
  transform: translateX(-50%);
}

.alfred-progress-bar[data-status="pending"] .alfred-progress-pizza,
.alfred-progress-bar[data-status="received"] .alfred-progress-pizza {
  left: 15%;
}

.alfred-progress-bar[data-status="confirmed"] .alfred-progress-pizza {
  left: 35%;
}

.alfred-progress-bar[data-status="preparing"] .alfred-progress-pizza {
  left: 65%;
}

.alfred-progress-bar[data-status="ready"] .alfred-progress-pizza,
.alfred-progress-bar[data-status="out_for_delivery"] .alfred-progress-pizza,
.alfred-progress-bar[data-status="delivered"] .alfred-progress-pizza {
  left: 97%;
}

.alfred-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--alfred-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Items List with Images */
.alfred-order-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.alfred-track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--alfred-bg-secondary);
  border-radius: 8px;
}

.alfred-track-item-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--alfred-bg-secondary);
}

.alfred-track-item-img[src=""],
.alfred-track-item-img[src="null"],
.alfred-track-item-img:not([src]) {
  display: none;
}

.alfred-track-item-img-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--alfred-primary) 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.alfred-track-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.alfred-track-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--alfred-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alfred-track-item-qty {
  font-size: 12px;
  color: var(--alfred-text-secondary);
}

.alfred-track-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--alfred-text);
  flex-shrink: 0;
}

/* Pricing Breakdown */
.alfred-order-pricing {
  background: var(--alfred-bg-secondary);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.alfred-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  color: var(--alfred-text-secondary);
}

.alfred-pricing-row.total {
  border-top: 1px solid var(--alfred-border);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--alfred-text);
}

.alfred-pricing-row.total span:last-child {
  color: var(--alfred-primary);
  font-size: 16px;
}

/* ============================================
   Order Cancellation Styles
   ============================================ */

.alfred-cancel-section {
  margin-top: 10px;
  padding: 10px;
  background: rgba(239, 68, 68, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.alfred-cancel-timer {
  text-align: center;
  font-size: 11px;
  color: #ef4444;
  margin-bottom: 8px;
}

.alfred-cancel-timer span {
  font-weight: 700;
  font-family: 'SF Mono', Monaco, monospace;
}

.alfred-cancel-order-btn {
  width: 100%;
  padding: 10px 14px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alfred-cancel-order-btn:hover {
  background: #dc2626;
}

.alfred-cancel-order-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.alfred-cancel-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
}

.alfred-cancel-success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.alfred-cancel-success h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--alfred-text);
  margin-bottom: 8px;
}

.alfred-cancel-success p {
  font-size: 14px;
  color: var(--alfred-text-secondary);
  line-height: 1.5;
}

/* ============================================
   Checkout View Styles
   ============================================ */

/* Messages area when checkout is open */
.alfred-messages.checkout-open {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.alfred-welcome-screen.checkout-open {
  padding: 0 !important;
  flex: 1 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.alfred-checkout-panel {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.alfred-checkout-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--alfred-border);
  background: var(--alfred-bg);
}

.alfred-checkout-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--alfred-text);
}

.alfred-checkout-content {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px;
  min-height: 0 !important;
  -webkit-overflow-scrolling: touch;
}

.alfred-checkout-footer {
  flex-shrink: 0;
  padding: 12px;
  background: var(--alfred-bg);
  border-top: 1px solid var(--alfred-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.alfred-checkout-section {
  margin-bottom: 16px;
}

.alfred-checkout-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--alfred-text);
  margin-bottom: 12px;
  padding: 0;
}

.alfred-hole-badge {
  padding: 4px 10px;
  background: var(--alfred-primary);
  color: white;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.alfred-hole-badge.finished {
  background: #8b5cf6;
}

/* Prominent Delivery Card */
.alfred-delivery-card {
  background: linear-gradient(135deg, var(--alfred-primary) 0%, #059669 100%);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.alfred-delivery-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.alfred-delivery-icon {
  font-size: 16px;
}

.alfred-delivery-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alfred-delivery-location {
  margin-bottom: 8px;
}

.alfred-delivery-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}

.alfred-delivery-badge.clubhouse {
  background: rgba(139, 92, 246, 0.3);
}

.alfred-delivery-card .alfred-hole-selector {
  position: relative;
  display: inline-block;
}

.alfred-delivery-card .alfred-hole-select {
  appearance: none;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 36px 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.alfred-delivery-card .alfred-hole-select option {
  background: var(--alfred-bg);
  color: var(--alfred-text);
}

.alfred-delivery-card .alfred-hole-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  pointer-events: none;
}

.alfred-delivery-card .alfred-delivery-note {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  padding: 0;
  background: transparent;
  border-radius: 8px;
}

/* Pay Button Content - icon left, text right */
.alfred-pay-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.alfred-pay-btn-content svg {
  flex-shrink: 0;
}

.alfred-checkout-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alfred-checkout-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: var(--alfred-bg-secondary);
  border-radius: 8px;
  border: 1px solid transparent;
}

.alfred-checkout-item-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.alfred-checkout-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.alfred-checkout-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--alfred-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alfred-checkout-item-extras {
  font-size: 12px;
  color: var(--alfred-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alfred-checkout-variant {
  color: var(--alfred-primary);
  font-weight: 500;
}

.alfred-checkout-modifiers {
  font-style: italic;
}

.alfred-checkout-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--alfred-primary);
  white-space: nowrap;
}

.alfred-checkout-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--alfred-border);
}

.alfred-checkout-item-qty {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--alfred-text);
}

.alfred-qty-btn.small {
  width: 28px;
  height: 28px;
  font-size: 16px;
  border-radius: 8px;
  background: var(--alfred-bg);
  border: 1px solid var(--alfred-border);
  color: var(--alfred-text);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alfred-qty-btn.small:hover {
  background: var(--alfred-primary);
  border-color: var(--alfred-primary);
  color: white;
}

.alfred-remove-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.alfred-remove-btn:hover {
  opacity: 1;
}

.alfred-checkout-summary {
  padding: 16px;
  background: var(--alfred-bg-secondary);
  border-radius: 8px;
}

.alfred-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--alfred-text-secondary);
  margin-bottom: 8px;
}

.alfred-summary-row span:last-child {
  color: var(--alfred-text);
  font-weight: 500;
}

.alfred-summary-row.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--alfred-border);
  font-size: 16px;
  font-weight: 700;
  color: var(--alfred-text);
  margin-bottom: 0;
}

.alfred-summary-row.total span:last-child {
  color: var(--alfred-primary);
  font-size: 18px;
}

.alfred-card-input-container {
  padding: 14px 16px;
  background: var(--alfred-bg);
  border: 1px solid var(--alfred-border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.alfred-card-input-container:focus-within {
  border-color: var(--alfred-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.alfred-card-element {
  padding: 8px 0;
}

.alfred-card-errors {
  font-size: 12px;
  color: #ef4444;
  margin-top: 8px;
  min-height: 16px;
}

.alfred-stripe-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  font-size: 12px;
  color: var(--alfred-text-secondary);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.alfred-stripe-badge svg {
  opacity: 0.8;
}

/* Dark mode for card input and payment section */
body.dark-mode .alfred-card-input-container,
.dark-mode .alfred-card-input-container {
  background: #374151;
  border-color: #4B5563;
}

body.dark-mode .alfred-stripe-badge,
.dark-mode .alfred-stripe-badge {
  color: #9CA3AF;
}

body.dark-mode .alfred-stripe-badge svg,
.dark-mode .alfred-stripe-badge svg {
  opacity: 0.7;
}

body.dark-mode .alfred-payment-divider,
.dark-mode .alfred-payment-divider {
  color: #6B7280;
}

body.dark-mode .alfred-payment-divider::before,
body.dark-mode .alfred-payment-divider::after,
.dark-mode .alfred-payment-divider::before,
.dark-mode .alfred-payment-divider::after {
  border-bottom-color: #4B5563;
}

.alfred-stripe-badge svg {
  opacity: 0.8;
}

.alfred-payment-request-container {
  margin-bottom: 12px;
}

.alfred-payment-request-container:empty {
  display: none;
}

.alfred-payment-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0;
  font-size: 12px;
  color: #9ca3af;
}

.alfred-payment-divider::before,
.alfred-payment-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--alfred-border);
}

.alfred-payment-divider span {
  padding: 0 10px;
}

/* Payment Info Section - Stripe Checkout */
.alfred-payment-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--alfred-bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--alfred-border);
}

.alfred-payment-methods {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--alfred-text);
}

.alfred-payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--alfred-primary);
  color: white;
  border-radius: 8px;
}

/* Footer Payment Icons */
.alfred-footer-payment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
}

.alfred-footer-secure {
  font-size: 11px;
  color: var(--alfred-text-secondary);
  white-space: nowrap;
}

.alfred-footer-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.alfred-footer-icons svg {
  border-radius: 8px;
  opacity: 0.9;
}

/* Dark mode for footer payment */
body.dark-mode .alfred-footer-secure,
.dark-mode .alfred-footer-secure {
  color: #9ca3af;
}

body.dark-mode .alfred-footer-icons svg path[fill="#1f2937"],
.dark-mode .alfred-footer-icons svg path[fill="#1f2937"] {
  fill: #e5e7eb;
}

body.dark-mode .alfred-footer-icons svg path[fill="#e5e7eb"],
.dark-mode .alfred-footer-icons svg path[fill="#e5e7eb"] {
  fill: #374151;
}

.alfred-place-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 24px;
  background: linear-gradient(135deg, var(--alfred-primary) 0%, var(--alfred-primary-dark) 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.alfred-place-order-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.alfred-place-order-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.alfred-spinner-small {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 8px;
  animation: spin 0.8s linear infinite;
}

/* Dark mode for checkout panel */
body.dark-mode .alfred-checkout-panel,
.dark-mode .alfred-checkout-panel {
  background: var(--alfred-bg);
}

body.dark-mode .alfred-checkout-header,
.dark-mode .alfred-checkout-header {
  background: #1F2937;
  border-bottom-color: #374151;
}

body.dark-mode .alfred-checkout-header h3,
.dark-mode .alfred-checkout-header h3 {
  color: #F9FAFB;
}

body.dark-mode .alfred-checkout-footer,
.dark-mode .alfred-checkout-footer {
  background: #1F2937;
  border-top-color: #374151;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .alfred-checkout-label,
.dark-mode .alfred-checkout-label {
  color: #F9FAFB;
}

body.dark-mode .alfred-checkout-item,
.dark-mode .alfred-checkout-item {
  background: #374151;
}

body.dark-mode .alfred-checkout-item-name,
.dark-mode .alfred-checkout-item-name {
  color: #F9FAFB;
}

body.dark-mode .alfred-checkout-item-extras,
.dark-mode .alfred-checkout-item-extras {
  color: #9CA3AF;
}

body.dark-mode .alfred-checkout-variant,
.dark-mode .alfred-checkout-variant {
  color: #34D399;
}

body.dark-mode .alfred-checkout-item-qty,
.dark-mode .alfred-checkout-item-qty {
  color: #F9FAFB;
}

body.dark-mode .alfred-qty-btn.small,
.dark-mode .alfred-qty-btn.small {
  background: #374151;
  border-color: #4B5563;
  color: #F9FAFB;
}

body.dark-mode .alfred-qty-btn.small:hover,
.dark-mode .alfred-qty-btn.small:hover {
  background: var(--alfred-primary);
  border-color: var(--alfred-primary);
  color: white;
}

body.dark-mode .alfred-checkout-item-controls,
.dark-mode .alfred-checkout-item-controls {
  border-top-color: #4B5563;
}

body.dark-mode .alfred-checkout-summary,
.dark-mode .alfred-checkout-summary {
  background: #374151;
}

body.dark-mode .alfred-summary-row,
.dark-mode .alfred-summary-row {
  color: #9CA3AF;
}

body.dark-mode .alfred-summary-row.total,
.dark-mode .alfred-summary-row.total {
  color: #F9FAFB;
  border-top-color: #4B5563;
}

body.dark-mode .alfred-delivery-note,
.dark-mode .alfred-delivery-note {
  background: #374151;
  color: #9CA3AF;
}

body.dark-mode .alfred-hole-badge,
.dark-mode .alfred-hole-badge {
  background: var(--alfred-primary);
  color: white;
}

/* Dark Mode - Payment Info Section */
body.dark-mode .alfred-payment-info,
.dark-mode .alfred-payment-info {
  background: #374151;
  border-color: #4B5563;
}

body.dark-mode .alfred-payment-methods,
.dark-mode .alfred-payment-methods {
  color: #F9FAFB;
}

body.dark-mode .alfred-payment-info .alfred-stripe-badge,
.dark-mode .alfred-payment-info .alfred-stripe-badge {
  border-top-color: #4B5563;
  color: #9CA3AF;
}

/* Dark Mode - New Food Panel Styles */
body.dark-mode .alfred-food-card,
.dark-mode .alfred-food-card {
  background: #1F2937;
  border-color: #374151;
}

body.dark-mode .alfred-food-card:hover,
.dark-mode .alfred-food-card:hover {
  background: #283548;
  border-color: var(--alfred-primary-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .alfred-food-card-image,
.dark-mode .alfred-food-card-image {
  background: #374151;
}

body.dark-mode .alfred-food-card-name,
.dark-mode .alfred-food-card-name {
  color: #F9FAFB;
}

body.dark-mode .alfred-food-card-desc,
.dark-mode .alfred-food-card-desc {
  color: #9CA3AF;
}

body.dark-mode .alfred-food-card-price,
.dark-mode .alfred-food-card-price {
  color: var(--alfred-primary);
}

body.dark-mode .alfred-food-card-add,
.dark-mode .alfred-food-card-add {
  background: var(--alfred-primary);
  color: white;
}

body.dark-mode .alfred-food-card-qty button,
.dark-mode .alfred-food-card-qty button {
  background: #374151;
  border-color: #4B5563;
  color: #F9FAFB;
}

body.dark-mode .alfred-food-card-qty button:hover,
.dark-mode .alfred-food-card-qty button:hover {
  background: var(--alfred-primary);
  border-color: var(--alfred-primary);
  color: white;
}

body.dark-mode .alfred-food-card-qty span,
.dark-mode .alfred-food-card-qty span {
  color: #F9FAFB;
}

body.dark-mode .alfred-food-checkout-bar,
.dark-mode .alfred-food-checkout-bar {
  background: #1F2937;
  border-top-color: #374151;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .alfred-checkout-count,
.dark-mode .alfred-checkout-count {
  color: #9CA3AF;
}

body.dark-mode .alfred-checkout-total,
.dark-mode .alfred-checkout-total {
  color: #F9FAFB;
}

body.dark-mode .alfred-food-list::-webkit-scrollbar-thumb,
.dark-mode .alfred-food-list::-webkit-scrollbar-thumb {
  background: #4B5563;
}

/* Order Success */
.alfred-order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  height: 100%;
}

.alfred-success-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.alfred-order-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--alfred-text);
  margin: 0 0 8px;
}

.alfred-order-success p {
  font-size: 14px;
  color: var(--alfred-text-secondary);
  margin: 0 0 6px;
}

.alfred-success-message {
  margin-top: 12px !important;
  margin-bottom: 20px !important;
}

/* ============================================
   Food Detail Modal Styles
   ============================================ */

.alfred-food-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.alfred-food-detail-modal.visible {
  opacity: 1;
}

.alfred-food-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
}

.alfred-food-detail-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--alfred-bg, #ffffff);
  z-index: 1;
  overflow: hidden;
}

.alfred-food-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 10;
  transition: all 0.2s ease;
}

.alfred-food-detail-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.alfred-food-detail-close svg {
  width: 20px;
  height: 20px;
}

.alfred-food-detail-image {
  flex: 1;
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  background-color: var(--alfred-bg-secondary, #f3f4f6);
}

.alfred-food-detail-info {
  padding: 24px 20px;
  background: var(--alfred-bg, #ffffff);
}

.alfred-food-detail-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--alfred-text, #1f2937);
  margin: 0 0 8px;
  line-height: 1.3;
}

.alfred-food-detail-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--alfred-primary, #10b981);
  margin: 0 0 12px;
}

.alfred-food-detail-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--alfred-text-secondary, #6b7280);
  margin: 0 0 12px;
}

.alfred-food-detail-category {
  display: inline-block;
  padding: 6px 12px;
  background: var(--alfred-bg-secondary, #f3f4f6);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--alfred-text-secondary, #6b7280);
  margin-bottom: 16px;
}

/* Variants Selection (Size options) */
.alfred-food-variants {
  margin: 16px 0;
  padding: 16px;
  background: var(--alfred-bg-secondary, #f3f4f6);
  border-radius: 8px;
}

.alfred-variants-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--alfred-text, #1f2937);
  margin: 0 0 12px;
}

.alfred-variants-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alfred-variant-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--alfred-bg, #ffffff);
  border: 2px solid var(--alfred-border, #e5e7eb);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 80px;
  justify-content: space-between;
}

.alfred-variant-option:hover {
  border-color: var(--alfred-primary, #10b981);
}

.alfred-variant-option.selected {
  border-color: var(--alfred-primary, #10b981);
  background: rgba(16, 185, 129, 0.08);
}

.alfred-variant-option input[type="radio"] {
  display: none;
}

.alfred-variant-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--alfred-text, #1f2937);
}

.alfred-variant-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--alfred-primary, #10b981);
}

/* Modifiers Selection (Add-ons) */
.alfred-food-modifiers {
  margin: 16px 0;
  padding: 16px;
  background: var(--alfred-bg-secondary, #f3f4f6);
  border-radius: 8px;
}

.alfred-modifiers-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--alfred-text, #1f2937);
  margin: 0 0 12px;
}

.alfred-modifiers-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alfred-modifier-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--alfred-bg, #ffffff);
  border: 2px solid var(--alfred-border, #e5e7eb);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alfred-modifier-option:hover {
  border-color: var(--alfred-primary-light, #34d399);
}

.alfred-modifier-option:has(input:checked) {
  border-color: var(--alfred-primary, #10b981);
  background: rgba(16, 185, 129, 0.08);
}

.alfred-modifier-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--alfred-primary, #10b981);
  cursor: pointer;
}

.alfred-modifier-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--alfred-text, #1f2937);
}

.alfred-modifier-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--alfred-primary, #10b981);
}

.alfred-food-detail-actions {
  margin-top: 16px;
}

.alfred-food-detail-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--alfred-primary, #10b981);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alfred-food-detail-add-btn:hover {
  background: var(--alfred-primary-dark, #059669);
  transform: scale(1.02);
}

.alfred-food-detail-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0;
}

.alfred-food-detail-qty span {
  min-width: 40px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--alfred-text, #1f2937);
}

.alfred-food-detail-qty .alfred-qty-btn {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

/* Dark mode adjustments for food detail modal */
body.dark-mode .alfred-food-detail-content,
.dark-mode .alfred-food-detail-content {
  background: #1F2937;
}

body.dark-mode .alfred-food-detail-image,
.dark-mode .alfred-food-detail-image {
  background-color: #374151;
}

body.dark-mode .alfred-food-detail-info,
.dark-mode .alfred-food-detail-info {
  background: #1F2937;
}

body.dark-mode .alfred-food-detail-name,
.dark-mode .alfred-food-detail-name {
  color: #F9FAFB;
}

body.dark-mode .alfred-food-detail-price,
.dark-mode .alfred-food-detail-price {
  color: #34D399;
}

body.dark-mode .alfred-food-detail-desc,
.dark-mode .alfred-food-detail-desc {
  color: #9CA3AF;
}

body.dark-mode .alfred-food-detail-category,
.dark-mode .alfred-food-detail-category {
  background: var(--alfred-bg-secondary);
  color: #9CA3AF;
}

body.dark-mode .alfred-food-detail-qty span,
.dark-mode .alfred-food-detail-qty span {
  color: #F9FAFB;
}

body.dark-mode .alfred-food-detail-qty .alfred-qty-btn,
.dark-mode .alfred-food-detail-qty .alfred-qty-btn {
  background: var(--alfred-bg);
  border-color: var(--alfred-border);
  color: #F9FAFB;
}

body.dark-mode .alfred-food-detail-qty .alfred-qty-btn:hover,
.dark-mode .alfred-food-detail-qty .alfred-qty-btn:hover {
  background: var(--alfred-primary);
  border-color: var(--alfred-primary);
  color: white;
}

/* Dark mode - Variants selection */
body.dark-mode .alfred-food-variants,
.dark-mode .alfred-food-variants {
  background: #374151;
}

body.dark-mode .alfred-variants-label,
.dark-mode .alfred-variants-label {
  color: #F9FAFB;
}

body.dark-mode .alfred-variant-option,
.dark-mode .alfred-variant-option {
  background: #1F2937;
  border-color: #4B5563;
}

body.dark-mode .alfred-variant-option:hover,
.dark-mode .alfred-variant-option:hover {
  border-color: #10B981;
}

body.dark-mode .alfred-variant-option.selected,
.dark-mode .alfred-variant-option.selected {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.15);
}

body.dark-mode .alfred-variant-name,
.dark-mode .alfred-variant-name {
  color: #F9FAFB;
}

body.dark-mode .alfred-variant-price,
.dark-mode .alfred-variant-price {
  color: #34D399;
}

/* Dark mode - Modifiers selection */
body.dark-mode .alfred-food-modifiers,
.dark-mode .alfred-food-modifiers {
  background: #374151;
}

body.dark-mode .alfred-modifiers-label,
.dark-mode .alfred-modifiers-label {
  color: #F9FAFB;
}

body.dark-mode .alfred-modifier-option,
.dark-mode .alfred-modifier-option {
  background: #1F2937;
  border-color: #4B5563;
}

body.dark-mode .alfred-modifier-option:hover,
.dark-mode .alfred-modifier-option:hover {
  border-color: #34D399;
}

body.dark-mode .alfred-modifier-option:has(input:checked),
.dark-mode .alfred-modifier-option:has(input:checked) {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.15);
}

body.dark-mode .alfred-modifier-name,
.dark-mode .alfred-modifier-name {
  color: #F9FAFB;
}

body.dark-mode .alfred-modifier-price,
.dark-mode .alfred-modifier-price {
  color: #34D399;
}

/* Make food image and info clickable */
.alfred-food-image {
  cursor: pointer;
}

.alfred-food-info {
  cursor: pointer;
}

/* ============================================
   Order History Button Styles
   ============================================ */

/* Order History - Purple */
.alfred-quick-history {
  border-color: #DDD6FE;
  background: #F5F3FF;
}
.alfred-quick-history svg {
  color: #7C3AED;
}
.alfred-quick-history span {
  color: #6D28D9;
}
.alfred-quick-history:hover {
  background: #7C3AED;
  border-color: #7C3AED;
}
.alfred-quick-history:hover svg,
.alfred-quick-history:hover span {
  color: white;
}

/* Dark mode for order history button */
body.dark-mode .alfred-quick-history,
.dark-mode .alfred-quick-history {
  border-color: #4C1D95;
  background: #2E1065;
}
body.dark-mode .alfred-quick-history svg,
.dark-mode .alfred-quick-history svg {
  color: #A78BFA;
}
body.dark-mode .alfred-quick-history span,
.dark-mode .alfred-quick-history span {
  color: #C4B5FD;
}

/* ============================================
   Order History Panel Styles
   ============================================ */

.alfred-order-history-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 16px;
  overflow: hidden;
}

.alfred-order-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 4px 0;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.alfred-order-history-list::-webkit-scrollbar {
  display: none;
}

.alfred-order-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--alfred-bg);
  border: 1px solid var(--alfred-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alfred-order-history-item:hover {
  background: var(--alfred-bg-secondary);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.alfred-order-history-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--alfred-bg-secondary);
  border-radius: 8px;
  flex-shrink: 0;
}

.alfred-order-history-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alfred-order-history-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alfred-order-history-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--alfred-text);
}

.alfred-order-history-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.alfred-order-history-status.pending,
.alfred-order-history-status.received {
  background: #FEF3C7;
  color: #92400E;
}

.alfred-order-history-status.confirmed,
.alfred-order-history-status.preparing {
  background: #DBEAFE;
  color: #1E40AF;
}

.alfred-order-history-status.ready {
  background: #D1FAE5;
  color: #065F46;
}

.alfred-order-history-status.out_for_delivery {
  background: #E0E7FF;
  color: #3730A3;
}

.alfred-order-history-status.delivered,
.alfred-order-history-status.picked_up {
  background: #D1FAE5;
  color: #065F46;
}

.alfred-order-history-status.cancelled {
  background: #FEE2E2;
  color: #991B1B;
}

.alfred-order-history-details {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--alfred-text-secondary);
}

.alfred-order-history-dot {
  opacity: 0.4;
}

.alfred-order-history-chevron {
  color: var(--alfred-text-secondary);
  flex-shrink: 0;
  opacity: 0.5;
}

/* ============================================
   Order Receipt Styles
   ============================================ */

.alfred-order-receipt {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.alfred-receipt-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--alfred-bg-secondary);
}

.alfred-receipt-status.pending,
.alfred-receipt-status.received {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.alfred-receipt-status.confirmed,
.alfred-receipt-status.preparing {
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
}

.alfred-receipt-status.ready {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

.alfred-receipt-status.out_for_delivery {
  background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
}

.alfred-receipt-status.delivered,
.alfred-receipt-status.picked_up {
  background: linear-gradient(135deg, #D1FAE5 0%, #6EE7B7 100%);
}

.alfred-receipt-status.cancelled {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
}

.alfred-receipt-status-icon {
  font-size: 36px;
}

.alfred-receipt-status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alfred-receipt-status-label {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
}

.alfred-receipt-eta {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.alfred-receipt-section {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--alfred-bg-secondary);
  border-radius: 8px;
}

.alfred-receipt-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--alfred-text-secondary);
  margin-bottom: 12px;
}

.alfred-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.alfred-receipt-label {
  font-size: 13px;
  color: var(--alfred-text-secondary);
}

.alfred-receipt-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--alfred-text);
}

.alfred-receipt-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alfred-receipt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--alfred-border);
}

.alfred-receipt-item:last-child {
  border-bottom: none;
}

.alfred-receipt-item-qty {
  font-size: 12px;
  font-weight: 700;
  color: var(--alfred-primary);
  min-width: 28px;
}

.alfred-receipt-item-name {
  flex: 1;
  font-size: 14px;
  color: var(--alfred-text);
}

.alfred-receipt-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--alfred-text);
}

.alfred-receipt-summary {
  background: var(--alfred-bg);
  border: 1px solid var(--alfred-border);
}

.alfred-receipt-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 2px solid var(--alfred-border);
}

.alfred-receipt-total .alfred-receipt-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--alfred-text);
}

.alfred-receipt-total .alfred-receipt-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--alfred-primary);
}

.alfred-receipt-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.alfred-receipt-payment.paid {
  background: #D1FAE5;
  color: #065F46;
}

.alfred-receipt-payment.pending {
  background: #FEF3C7;
  color: #92400E;
}

.alfred-receipt-payment.refunded {
  background: #DBEAFE;
  color: #1E40AF;
}

/* Dark mode for order history */
body.dark-mode .alfred-order-history-item,
.dark-mode .alfred-order-history-item {
  background: var(--alfred-bg-secondary);
  border-color: var(--alfred-border);
}

body.dark-mode .alfred-order-history-icon,
.dark-mode .alfred-order-history-icon {
  background: var(--alfred-bg);
}

body.dark-mode .alfred-receipt-status-label,
.dark-mode .alfred-receipt-status-label {
  color: #1F2937;
}

body.dark-mode .alfred-receipt-eta,
.dark-mode .alfred-receipt-eta {
  color: #374151;
}

/* Dark mode status colors need darker text */
body.dark-mode .alfred-order-history-status.pending,
body.dark-mode .alfred-order-history-status.received,
.dark-mode .alfred-order-history-status.pending,
.dark-mode .alfred-order-history-status.received {
  background: #78350F;
  color: #FDE68A;
}

body.dark-mode .alfred-order-history-status.confirmed,
body.dark-mode .alfred-order-history-status.preparing,
.dark-mode .alfred-order-history-status.confirmed,
.dark-mode .alfred-order-history-status.preparing {
  background: #1E3A8A;
  color: #BFDBFE;
}

body.dark-mode .alfred-order-history-status.ready,
.dark-mode .alfred-order-history-status.ready {
  background: #064E3B;
  color: #A7F3D0;
}

body.dark-mode .alfred-order-history-status.out_for_delivery,
.dark-mode .alfred-order-history-status.out_for_delivery {
  background: #312E81;
  color: #C7D2FE;
}

body.dark-mode .alfred-order-history-status.delivered,
body.dark-mode .alfred-order-history-status.picked_up,
.dark-mode .alfred-order-history-status.delivered,
.dark-mode .alfred-order-history-status.picked_up {
  background: #064E3B;
  color: #6EE7B7;
}

body.dark-mode .alfred-order-history-status.cancelled,
.dark-mode .alfred-order-history-status.cancelled {
  background: #7F1D1D;
  color: #FECACA;
}

body.dark-mode .alfred-receipt-payment.paid,
.dark-mode .alfred-receipt-payment.paid {
  background: #064E3B;
  color: #6EE7B7;
}

body.dark-mode .alfred-receipt-payment.pending,
.dark-mode .alfred-receipt-payment.pending {
  background: #78350F;
  color: #FDE68A;
}

body.dark-mode .alfred-receipt-payment.refunded,
.dark-mode .alfred-receipt-payment.refunded {
  background: #1E3A8A;
  color: #BFDBFE;
}

/* ============================================
   Hole Selector Styles
   ============================================ */

.alfred-hole-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.alfred-hole-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--alfred-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 4px 28px 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.alfred-hole-select:hover {
  background: var(--alfred-primary-dark);
}

.alfred-hole-select:focus {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.alfred-hole-select-arrow {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: white;
  width: 14px;
  height: 14px;
}

/* Dark mode for hole selector */
body.dark-mode .alfred-hole-select,
.dark-mode .alfred-hole-select {
  background: var(--alfred-primary);
  color: white;
}

body.dark-mode .alfred-hole-select:hover,
.dark-mode .alfred-hole-select:hover {
  background: var(--alfred-primary-dark);
}

body.dark-mode .alfred-hole-select option,
.dark-mode .alfred-hole-select option {
  background: #374151;
  color: #F9FAFB;
}

/* ============================================
   Alfred Introduction Popup
   ============================================ */

.alfred-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  animation: alfredOverlayIn 0.3s ease-out;
}

@keyframes alfredOverlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.alfred-intro-overlay-hiding {
  animation: alfredOverlayOut 0.3s ease-in forwards;
}

@keyframes alfredOverlayOut {
  to {
    opacity: 0;
  }
}

.alfred-intro-popup {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 320px;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border-radius: 8px;
  padding: 28px 24px;
  color: white;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
  animation: alfredIntroIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10001;
}

.alfred-intro-popup::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 28px;
  width: 24px;
  height: 24px;
  background: #1e293b;
  transform: rotate(45deg);
  border-radius: 8px;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.2);
}

.alfred-intro-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.alfred-intro-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  animation: alfredAvatarBounce 0.6s ease-out 0.3s both;
}

.alfred-intro-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.alfred-intro-wave {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 24px;
  animation: waveHand 1s ease-in-out infinite;
}

@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-10deg); }
}

@keyframes alfredAvatarBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.alfred-intro-title h3 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.alfred-intro-title p {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

.alfred-intro-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.alfred-intro-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.alfred-intro-feature:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(4px);
}

.alfred-feature-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 8px;
}

.alfred-feature-text {
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 500;
}

.alfred-intro-btn {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alfred-intro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.alfred-intro-btn:active {
  transform: scale(0.98);
}

.alfred-intro-btn svg {
  transition: transform 0.2s ease;
}

.alfred-intro-btn:hover svg {
  transform: translateX(4px);
}

@keyframes alfredIntroIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.alfred-intro-hiding {
  animation: alfredIntroOut 0.3s ease-in forwards;
}

@keyframes alfredIntroOut {
  to {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
  }
}

/* Mobile adjustments for intro popup */
@media (max-width: 480px) {
  .alfred-intro-popup {
    width: calc(100vw - 40px);
    max-width: 300px;
    right: 20px;
    bottom: 90px;
    padding: 24px 20px;
  }

  .alfred-intro-header {
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .alfred-intro-avatar {
    width: 52px;
    height: 52px;
  }

  .alfred-intro-wave {
    font-size: 20px;
  }

  .alfred-intro-title h3 {
    font-size: 20px;
  }

  .alfred-intro-title p {
    font-size: 13px;
  }

  .alfred-intro-features {
    gap: 8px;
    margin-bottom: 20px;
  }

  .alfred-intro-feature {
    padding: 10px 12px;
    gap: 12px;
  }

  .alfred-feature-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .alfred-feature-text {
    font-size: 13px;
  }

  .alfred-intro-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* ============================================
   Food Carousel - Tablet Responsive (768px)
   ============================================ */
@media (max-width: 768px) {
  .alfred-food-panel {
    padding: 10px 14px 0 14px !important;
  }

  .alfred-food-header {
    margin-bottom: 6px;
  }

  .alfred-food-header h3 {
    font-size: 18px;
  }

  .alfred-category-tabs {
    gap: 6px;
    padding: 8px 14px;
    margin-bottom: 10px;
    margin-left: -14px;
    margin-right: -14px;
  }

  .alfred-category-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  .alfred-food-carousel {
    gap: 10px;
    padding: 2px 0 14px;
  }

  .alfred-food-item {
    padding: 10px;
    gap: 12px;
    border-radius: 8px;
  }

  .alfred-food-image {
    width: 85px;
    height: 85px;
    min-width: 85px;
    border-radius: 8px;
  }

  .alfred-food-name {
    font-size: 14px;
  }

  .alfred-food-price {
    font-size: 16px;
  }

  .alfred-add-btn {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    min-width: 70px;
  }

  .alfred-food-qty {
    gap: 8px;
    padding: 5px 6px;
    border-radius: 8px;
  }

  .alfred-food-qty span {
    min-width: 24px;
    font-size: 15px;
  }

  .alfred-qty-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .alfred-cart-summary {
    padding: 14px;
    border-radius: 8px;
  }

  .alfred-cart-total {
    font-size: 18px;
  }

  .alfred-checkout-btn {
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 8px;
  }
}

/* ============================================
   Food Carousel - Mobile Responsive (480px)
   ============================================ */
@media (max-width: 480px) {
  .alfred-food-panel {
    padding: 8px 12px 0 12px !important;
  }

  .alfred-food-header {
    gap: 10px;
    margin-bottom: 4px;
  }

  .alfred-food-header h3 {
    font-size: 16px;
  }

  .alfred-cart-badge {
    min-width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .alfred-category-tabs {
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    margin-left: -12px;
    margin-right: -12px;
  }

  .alfred-category-tab {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    min-height: 44px;
  }

  .alfred-food-carousel {
    gap: 8px;
    padding: 2px 0 12px;
  }

  .alfred-food-item {
    padding: 8px;
    gap: 10px;
    border-radius: 8px;
  }

  .alfred-food-image {
    width: 75px;
    height: 75px;
    min-width: 75px;
    border-radius: 8px;
  }

  .alfred-food-info {
    gap: 4px;
  }

  .alfred-food-name {
    font-size: 12px;
    line-height: 1.2;
  }

  .alfred-food-price {
    font-size: 14px;
  }

  .alfred-add-btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    min-width: 56px;
    gap: 4px;
  }

  .alfred-add-btn svg {
    width: 14px;
    height: 14px;
  }

  .alfred-food-qty {
    gap: 6px;
    padding: 4px 5px;
    border-radius: 8px;
  }

  .alfred-food-qty span {
    min-width: 20px;
    font-size: 13px;
  }

  .alfred-qty-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
    border-width: 1.5px;
  }

  .alfred-cart-summary {
    padding: 12px;
    border-radius: 8px;
  }

  .alfred-cart-info span:first-child {
    font-size: 11px;
  }

  .alfred-cart-total {
    font-size: 16px;
  }

  .alfred-checkout-btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 8px;
    gap: 6px;
  }

  .alfred-checkout-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   Food Carousel - Extra Small Mobile (375px)
   ============================================ */
@media (max-width: 375px) {
  .alfred-food-panel {
    padding: 6px 10px 0 10px !important;
  }

  .alfred-food-header h3 {
    font-size: 15px;
  }

  .alfred-category-tabs {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .alfred-category-tab {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 40px;
  }

  .alfred-food-item {
    padding: 6px;
    gap: 8px;
  }

  .alfred-food-image {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 8px;
  }

  .alfred-food-name {
    font-size: 12px;
  }

  .alfred-food-price {
    font-size: 13px;
  }

  .alfred-add-btn {
    padding: 6px 10px;
    font-size: 11px;
    min-width: 48px;
  }

  .alfred-food-qty span {
    min-width: 18px;
    font-size: 12px;
  }

  .alfred-qty-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .alfred-cart-summary {
    padding: 10px;
  }

  .alfred-cart-total {
    font-size: 14px;
  }

  .alfred-checkout-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* =====================================================
   CONFETTI CELEBRATION
   ===================================================== */
.alfred-confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.alfred-confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  opacity: 1;
  animation: alfred-confetti-fall 2s ease-out forwards;
}

.alfred-confetti:nth-child(odd) {
  border-radius: 8px;
}

.alfred-confetti:nth-child(even) {
  border-radius: 8px;
  transform: rotate(45deg);
}

@keyframes alfred-confetti-fall {
  0% {
    top: -10px;
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
  25% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
    transform: translateX(calc(var(--drift, 30px) * (1 - 2 * var(--direction, 0)))) rotate(720deg);
  }
}

.alfred-confetti:nth-child(3n) {
  --drift: 50px;
  --direction: 1;
}

.alfred-confetti:nth-child(3n+1) {
  --drift: 40px;
  --direction: 0;
}

.alfred-confetti:nth-child(3n+2) {
  --drift: 60px;
  --direction: 1;
}
