/* Clean Footer with Action Buttons */
.action-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.footer-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-feedback {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.feedback-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(102, 126, 234, 0.2);
  opacity: 0.8;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px; /* Ensure minimum touch target size */
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedback-btn:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  opacity: 1;
}

.feedback-btn:active {
  transform: translateY(0);
}

/* Mobile touch support for feedback buttons */
@media (hover: none) and (pointer: coarse) {
  .feedback-btn {
    opacity: 1; /* Remove opacity fade on touch devices */
    padding: 0.5rem 1rem; /* Slightly larger padding for easier touch */
  }
  
  .feedback-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  }
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.75rem;
  color: #666;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Feedback Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.2rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.btn-secondary,
.btn-primary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: #f8f9fa;
  color: #6c757d;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Version History Styles */
.version-history {
  max-height: 400px;
  overflow-y: auto;
}

.version-entry {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #ddd;
}

.version-entry:nth-child(1) { border-left-color: #2196f3; }
.version-entry:nth-child(2) { border-left-color: #4caf50; }
.version-entry:nth-child(3) { border-left-color: #ff9800; }
.version-entry:nth-child(4) { border-left-color: #9c27b0; }

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.version-entry ul {
  font-size: 0.9rem;
  line-height: 1.4;
}

.version-entry li {
  margin-bottom: 0.25rem;
}

.footer-btn {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  user-select: none;
  touch-action: manipulation;
  max-width: 200px;
}

.clear-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #ff4757 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.clear-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

.clear-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 71, 87, 0.4);
}

.view-btn {
  background: linear-gradient(135deg, #26d0ce 0%, #1dd1a1 50%, #00d2d3 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 209, 161, 0.4);
}

.view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 209, 161, 0.5);
}

.view-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(29, 209, 161, 0.4);
}

.siao-onz-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}
.siao-onz-top-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.siao-onz-top-row .coffee-name {
  flex: 1;
  padding-right: 1rem;
}
.siao-onz-top-row .quantity-controls {
  flex-shrink: 0;
}
.siao-onz-row .custom-order-input {
  margin-top: 0.5rem !important;
  width: 100% !important;
  font-size: 1.125rem !important;
}
.quantity-controls-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.siao-onz-textarea-row {
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
}

/* styles.css */
/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body and typography */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  padding: 1rem;
  background: linear-gradient(135deg, #f5f3f0 0%, #e8e5e1 100%);
  color: #2c1810;
  min-height: 100vh;
  padding-bottom: 150px; /* Increased base padding for better footer clearance */
}

/* Header styling */
header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  color: #8b4513;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

header p:first-of-type {
  font-size: 1.1rem;
  color: #5d4037;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.version {
  font-size: 0.7em; /* 30% smaller than parent */
  opacity: 0.8;
}

header p:last-of-type {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
}

/* Main content */
main {
  margin-bottom: 1rem; /* Reduced top spacing */
}

main h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #5d4037;
  font-size: 1.8rem;
}

/* Category sections */
.category-section {
  margin-bottom: 1rem;
}

.category-header {
  padding: 0.75rem 1rem;
  margin: 0;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  color: white;
}

/* Coffee category - brown colors */
.category-header[data-category="coffee"] {
  background: #8b4513;
}

.category-header[data-category="coffee"]:hover,
.category-header[data-category="coffee"].expanded {
  background: #a0522d;
}

/* Tea category - green colors */
.category-header[data-category="tea"] {
  background: #2e7d32;
}

.category-header[data-category="tea"]:hover,
.category-header[data-category="tea"].expanded {
  background: #388e3c;
}

/* Specialty category - blue colors */
.category-header[data-category="specialty"] {
  background: #1976d2;
}

.category-header[data-category="specialty"]:hover,
.category-header[data-category="specialty"].expanded {
  background: #1e88e5;
}

/* Soft drinks category - pink/magenta colors */
.category-header[data-category="soft-drinks"] {
  background: #c2185b;
}

.category-header[data-category="soft-drinks"]:hover,
.category-header[data-category="soft-drinks"].expanded {
  background: #d81b60;
}

/* Other category - gray colors */
.category-header[data-category="other"] {
  background: #666;
}

.category-header[data-category="other"]:hover,
.category-header[data-category="other"].expanded {
  background: #777;
}

.category-content[data-category="other"] {
  border-color: #666;
}

.category-header:active {
  transform: scale(0.98);
}

.category-header.collapsed {
  border-radius: 0.5rem;
}

.category-header.expanded {
  border-radius: 0.5rem 0.5rem 0 0;
}

.category-toggle {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.category-header.expanded .category-toggle {
  transform: rotate(180deg);
}

/* Category content */
.category-content {
  background: #fff;
  border: 2px solid #ddd;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Different border colors for each category */
.category-content[data-category="coffee"] {
  border-color: #8b4513;
}

.category-content[data-category="tea"] {
  border-color: #2e7d32;
}

.category-content[data-category="specialty"] {
  border-color: #1976d2;
}

.category-content[data-category="soft-drinks"] {
  border-color: #c2185b;
}

.category-content:not(.expanded) {
  max-height: 0 !important;
  border: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.category-content.expanded {
  max-height: 2000px; /* Large enough to fit content */
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0.5rem;
  margin: 0;
}

/* Individual coffee items - touch-optimized */
.coffee-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.coffee-item.selected {
  border-color: #4caf50;
  background: #f8fff8;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
}

/* Coffee name/label with category styling */
.coffee-name {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  color: #5d4037;
  text-transform: capitalize;
  padding-right: 1rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Different colors for different drink categories */
.coffee-name[data-category="coffee"] {
  color: #5d4037;
}

.coffee-name[data-category="tea"] {
  color: #2e7d32;
}

.coffee-name[data-category="specialty"] {
  color: #1976d2;
}

.coffee-name[data-category="soft-drink"] {
  color: #c2185b;
}

/* Quantity controls container */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* For kopi/teh items with modify button */
.coffee-item[data-variant="kopi"] .quantity-controls,
.coffee-item[data-variant="teh"] .quantity-controls {
  gap: 0.3rem;
}

/* Remove button (left side) - better color for removal action */
.btn-remove {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #ff9800;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-remove:active {
  transform: scale(0.95);
  background: #f57c00;
}

.btn-remove:disabled {
  background: #e0e0e0;
  color: #bdbdbd;
  cursor: not-allowed;
  transform: none;
}

/* Quantity display */
.quantity-display {
  min-width: 60px;
  height: 48px;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: bold;
  color: #333;
  transition: all 0.2s ease;
}

.coffee-item.selected .quantity-display {
  background: #e8f5e8;
  border-color: #4caf50;
  color: #2e7d32;
}

/* Add a subtle pulse effect when quantity changes */
.quantity-display.updated {
  animation: quantityPulse 0.3s ease;
}

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

/* Success state for items when added */
.coffee-item.just-added {
  background: #e8f5e8 !important;
  border-color: #4caf50 !important;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.coffee-item.just-added .coffee-name {
  color: #2e7d32 !important;
}

/* Success state for add button */
.btn-add.just-added {
  background: #4caf50 !important;
  color: white;
  transform: scale(0.95);
  transition: all 0.2s ease;
}

.btn-add.success-text {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

/* Add success indicator text */
.add-success-indicator {
  position: absolute;
  right: 70px; /* Position it to the left of the add button */
  top: 50%;
  transform: translateY(-50%);
  color: #4caf50;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeInOut 1.5s ease;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-50%) translateX(10px); }
  30% { opacity: 1; transform: translateY(-50%) translateX(0px); }
  70% { opacity: 1; transform: translateY(-50%) translateX(0px); }
  100% { opacity: 0; transform: translateY(-50%) translateX(-10px); }
}

/* Mobile-specific adjustments for success feedback */
@media (max-width: 480px) {
  .add-success-indicator {
    right: 60px; /* Adjusted for mobile */
    font-size: 0.8rem;
  }
  
  .coffee-item.just-added {
    transform: scale(1.01); /* Slightly less scaling on mobile */
  }
  
  .btn-add.success-text {
    font-size: 0.8rem !important;
  }
}

/* Add/modify button styling */
.btn-add {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #4caf50;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-add:active {
  transform: scale(0.95);
  background: #388e3c;
}

/* Modify button for kopi/teh */
.btn-modify {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #2196f3;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  margin-left: 0.5rem;
}

/* Modify icon styling */
.modify-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  /* Removed filters to preserve detail */
}

/* Category icon styling */
.category-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.3rem;
}

.btn-modify:active {
  transform: scale(0.95);
  background: #1976d2;
}

/* Modifier Modal Styles */
.modifier-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modifier-modal.show {
  opacity: 1;
  visibility: visible;
}

.modifier-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modifier-content {
  position: relative;
  background: white;
  border-radius: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modifier-modal.show .modifier-content {
  transform: translateY(0);
}

.modifier-header {
  padding: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modifier-header h3 {
  margin: 0;
  color: #5d4037;
  font-size: 1.5rem;
}

.modifier-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modifier-close:hover {
  background: #f0f0f0;
  color: #333;
}

.modifier-body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modifier-group {
  margin-bottom: 2rem;
}

.modifier-group:last-child {
  margin-bottom: 0;
}

.modifier-group-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #5d4037;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.modifier-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modifier-option {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5d4037;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.modifier-option:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}

.modifier-option.selected {
  background: #2196f3;
  border-color: #2196f3;
  color: white;
}

.modifier-footer {
  padding: 1.5rem;
  border-top: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modifier-preview {
  flex: 1;
}

.preview-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: #5d4037;
}

.modifier-done {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.modifier-done:hover {
  background: linear-gradient(135deg, #45a049 0%, #4caf50 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.modifier-done:active {
  transform: translateY(0);
}

/* Custom order specific styles */
.custom-order-item {
  flex-direction: column;
  align-items: stretch;
  min-height: auto;
}

.custom-order-container {
  width: 100%;
}

.custom-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.custom-order-item .coffee-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.custom-notes {
  width: 100%;
}

.notes-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.2s ease;
  line-height: 1.4;
}

.notes-input:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1);
}

.notes-input::placeholder {
  color: #999;
  font-style: italic;
}

/* Custom Order Input Styles */
.custom-order-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 80px;
  margin-top: 0.5rem;
  transition: border-color 0.2s ease;
  line-height: 1.4;
  background-color: #fafafa;
}

.custom-order-input:focus {
  outline: none;
  border-color: #8b4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
  background-color: white;
}

.custom-order-input::placeholder {
  color: #b0b0b0;
  font-style: normal;
  font-size: 1.125rem !important;
  font-family: inherit;
  opacity: 1;
}

/* Order summary section with total counter */
#order-summary {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem; /* Reduced to allow body padding to handle footer clearance */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#order-summary h2 {
  color: #5d4037;
  margin-bottom: 1rem;
  text-align: left;
  font-size: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total {
  font-size: 0.9rem;
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  color: #666;
  font-weight: normal;
}

#summary-list {
  list-style: none;
  min-height: 50px;
}

#summary-list li {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
  border-left: 4px solid #4caf50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.summary-drink-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-drink-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-notes {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 0.25rem;
}

.summary-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.summary-btn-add,
.summary-btn-remove {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.summary-btn-add {
  background: #4caf50;
  color: white;
}

.summary-btn-add:hover {
  background: #45a049;
}

.summary-btn-add:active {
  transform: scale(0.95);
  background: #388e3c;
}

.summary-btn-remove {
  background: #ff9800;
  color: white;
}

.summary-btn-remove:hover {
  background: #f57c00;
}

.summary-btn-remove:active {
  transform: scale(0.95);
  background: #ef6c00;
}

.summary-quantity {
  min-width: 40px;
  height: 36px;
  background: #e0e0e0;
  border: 2px solid #ccc;
  border-radius: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.empty-summary {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 1rem;
  background: #f8f9fa !important;
  border-left: none !important;
}

/* Submit button */
#submit-order {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 1rem;
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

#submit-order:hover {
  background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

#submit-order:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(139, 69, 19, 0.3);
}

#submit-order:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive design for larger screens */
@media (min-width: 768px) {
  body {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 180px; /* Increased desktop footer clearance */
  }
  
  .coffee-list {
    gap: 1rem;
  }
  
  .coffee-item {
    min-height: 80px;
    padding: 1rem;
  }
  
  .coffee-name {
    font-size: 1.2rem;
  }
  
  /* Fix modal height on larger screens to account for footer */
  .modal-content {
    max-height: calc(100vh - 120px); /* Account for footer height */
  }
  
  /* Desktop-specific spacing for order summary - reduced */
  #order-summary {
    margin-bottom: 2rem; /* Consistent with base, let body padding handle clearance */
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
    padding-bottom: 140px; /* Adequate mobile footer clearance */
  }
  
  header {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header p:first-of-type {
    font-size: 1rem;
  }
  
  header p:last-of-type {
    font-size: 0.8rem;
  }
  
  .coffee-item {
    min-height: 65px;
    padding: 0.5rem;
  }
  
  .coffee-name {
    font-size: 0.95rem;
  }
  
  .btn-add, .btn-remove {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  
  .btn-modify {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  
  .quantity-display {
    min-width: 50px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  #submit-order {
    font-size: 1.1rem;
    padding: 0.875rem;
  }
  
  #order-summary {
    padding: 1rem;
    margin-bottom: 2rem; /* Consistent with base, let body padding handle clearance */
  }
  
  #order-summary h2 {
    font-size: 1.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .order-total {
    font-size: 0.85rem;
  }
  
  .notes-input {
    font-size: 0.85rem;
    min-height: 50px;
  }
  
  .custom-order-item {
    padding: 0.75rem;
  }
  
  /* Modifier modal mobile styles */
  .modifier-content {
    width: 95vw;
    max-height: 85vh;
  }
  
  .modifier-header {
    padding: 1rem;
  }
  
  .modifier-header h3 {
    font-size: 1.3rem;
  }
  
  .modifier-body {
    padding: 0.75rem 1rem;
  }
  
  .modifier-group-title {
    font-size: 1rem;
  }
  
  .modifier-option {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .modifier-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .modifier-preview {
    text-align: center;
  }
  
  .modifier-done {
    width: 100%;
  }
  
  /* Smaller FAB buttons on mobile */
  .fab-btn-stack {
    right: 1rem;
    bottom: 3rem;
    max-width: 130px;
  }
  
  .fab-basic,
  .fab-clear-mini {
    width: 130px;
    max-width: 130px;
    height: 42px;
    font-size: 0.8rem;
    padding: 0.5em 1em;
  }
  
  /* Summary controls mobile */
  #summary-list li {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  
  .summary-drink-name {
    font-size: 1rem;
  }
  
  .summary-notes {
    font-size: 0.8rem;
  }
  
  .summary-btn-add,
  .summary-btn-remove {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .summary-quantity {
    min-width: 35px;
    height: 32px;
    font-size: 1rem;
  }
}

/* Focus indicators for accessibility - touch-optimized */
.btn-add:focus,
.btn-remove:focus,
.btn-modify:focus,
.summary-btn-add:focus,
.summary-btn-remove:focus,
#submit-order:focus {
  outline: 3px solid #4caf50;
  outline-offset: 2px;
}

.btn-modify:focus {
  outline-color: #2196f3;
}

.summary-btn-remove:focus {
  outline-color: #ff9800;
}

/* Ensure touch targets are large enough */
.btn-add,
.btn-remove {
  min-width: 44px;
  min-height: 44px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .coffee-item {
    border-width: 3px;
  }
  
  .coffee-item:hover {
    border-width: 4px;
  }
}

/* Hidden checkbox for form state */
.coffee-item input[type="checkbox"] {
  display: none;
}
