/* -------------------------------------------------------
   GLOBAL
------------------------------------------------------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f7f7f7;
}

/* -------------------------------------------------------
   TOP BAR + TABS
------------------------------------------------------- */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  color: white;
  padding: 10px;
}

.tab-bar {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
}

.tab {
  padding: 12px 20px;
  margin-right: 10px;
  background: #333;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.tab.active {
  background: #ff4f9a;
}

/* -------------------------------------------------------
   CART ICON
------------------------------------------------------- */
.cart-container {
  position: relative;
  margin-right: 10px;
  cursor: pointer;
  font-size: 26px;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background: #ff4f9a;
  color: white;
  padding: 3px 7px;
  border-radius: 50%;
  font-size: 14px;
}

/* -------------------------------------------------------
   MAIN CONTENT
------------------------------------------------------- */
.content {
  padding: 20px;
  padding-bottom: 800px;
}

.drink-button {
  display: flex;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 10px;
  border: 2px solid #ddd;
  font-size: 20px;
  cursor: pointer;
  width: 100%;
  user-select: none;
  margin-bottom: 10px;
}

.drink-button:hover {
  border-color: #ff4f9a;
}

.drink-button img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
  background: #eee;
}

/* -------------------------------------------------------
   SIZE DROPDOWN (HORIZONTAL)
------------------------------------------------------- */
.size-dropdown {
  width: 100%;
  margin-top: -5px;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 8px;
  border: 1px solid #ccc;

  display: flex;
  flex-direction: row;
  gap: 10px;

  margin-bottom: 10px;
}

.size-option {
  padding: 10px 15px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  flex-shrink: 0;
}

.size-option:hover {
  border-color: #ff4f9a;
}

/* -------------------------------------------------------
   BLEND PANEL
------------------------------------------------------- */
.blend-panel {
  width: 100%;
  background: #e9e9e9;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  margin-top: -5px;
  margin-bottom: 10px;
}

/* SMALLER SWITCH TOGGLES */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  margin-left: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #ff4f9a;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* -------------------------------------------------------
   ADD-ONS + ACCORDION
------------------------------------------------------- */
.addon-section {
  margin-top: 12px;
  font-size: 15px;
}

.addon-group {
  margin-top: 8px;
}

.addon-item {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.addon-header {
  display: flex;
  align-items: center;
}

.addon-header input {
  margin-right: 10px;
  transform: scale(1.2);
}

/* -------------------------------------------------------
   UPDATED: FLAVOR OPTIONS HORIZONTAL
------------------------------------------------------- */
.flavor-box {
  width: 95%;
  border: 1px solid #bbb;
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  margin-left: 20px;
  margin-top: 8px;
}

/* FORCE HORIZONTAL LAYOUT */
.flavor-option {
  display: inline-block;   /* sit next to each other */
  margin-right: 12px;      /* space between options */
  margin-bottom: 6px;      /* small wrap spacing */
  font-size: 14px;
  white-space: nowrap;     /* keep each label on one line */
}

.flavor-option input {
  margin-right: 6px;
  transform: scale(1.1);
}



.summary-line {
  margin-left: 25px;
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}

/* -------------------------------------------------------
   ADD BUTTON
------------------------------------------------------- */
.add-btn {
  margin-top: 12px;
  padding: 10px 15px;
  background: #ff4f9a;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
}

/* -------------------------------------------------------
   CART OVERLAY + DRAWER
------------------------------------------------------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 90;
}

.cart-overlay.show {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 30vw;
  max-width: 480px;
  min-width: 280px;
  height: 80vh;      
  background: #ffffff;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-bottom-left-radius: 12px; /* optional: rounded bottom */
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
  font-weight: bold;
  background: #f5f5f5;
}

.cart-close {
  cursor: pointer;
  font-size: 20px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
}

.cart-item {
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  font-size: 14px;
}

.cart-item-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cart-item-name {
  font-weight: bold;
  font-size: 15px;
}

.cart-item-price {
  font-weight: bold;
}

.cart-item-details {
  color: #555;
  margin-bottom: 4px;
}

.cart-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.cart-btn {
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.cart-btn.edit {
  background: #ff4f9a;
  color: white;
}

.cart-btn.remove {
  background: #ccc;
  color: #222;
}

.cart-footer {
  border-top: 1px solid #ddd;
  padding: 10px 16px;
  background: #f5f5f5;
}

.cart-total {
  font-size: 16px;
  margin-bottom: 8px;
}

.send-btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
  background: #28a745;
  color: white;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.send-btn:hover {
  background: #218838;
}

.checkout-btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
  background: #007bff; /* blue */
  color: white;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.checkout-btn:hover {
  background: #0069d9;
}



/* -------------------------------------------------------
   COOKIE HIGHLIGHT ANIMATION
------------------------------------------------------- */
@keyframes cookieSelectFlash {
  0% {
    background-color: #fff;
    border-color: #ddd;
  }
  40% {
    background-color: #ffe3f0;
    border-color: #ff4f9a;
  }
  100% {
    background-color: #fff;
    border-color: #ff4f9a;
  }
}

.cookie-flash {
  animation: cookieSelectFlash 0.25s ease-out;
}

.kitchen-screen {
  padding: 20px;
}

.kitchen-ticket {
  background: #fff;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.kitchen-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 10px;
}

.kitchen-item {
  margin-bottom: 8px;
}

.kitchen-actions button {
  background: #ff4f9a;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.other-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
}

.other-tile {
  background: #f3f3f3;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #ddd;
  transition: 0.2s;
}

.other-tile:hover {
  border-color: #ff4f9a;
  background: #ffe6f2;
}

.module-screen {
  padding: 20px;
}

.back-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #ff4f9a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* -------------------------------------------------------
   PIN PAD MODAL
------------------------------------------------------- */
.pinpad-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}

.pinpad-inner {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  width: 320px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  text-align: center;
}

.pinpad-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.pinpad-display {
  font-size: 32px;
  letter-spacing: 10px;
  margin: 15px 0;
  padding: 10px;
  background: #f3f3f3;
  border-radius: 8px;
}

.pinpad-name-preview {
  font-size: 16px;
  color: #666;
  height: 20px;
  margin-bottom: 10px;
}

.pinpad-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.pinpad-keypad button {
  padding: 18px;
  font-size: 20px;
  border-radius: 8px;
  background: #eee;
  border: none;
  cursor: pointer;
}

.pinpad-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pinpad-submit,
.pinpad-cancel {
  flex: 1;
  padding: 12px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.pinpad-submit {
  background: #28a745;
  color: white;
}

.pinpad-cancel {
  background: #ccc;
  color: #222;
}