/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: #2b2b2b url("images/background.webp") center center / cover no-repeat fixed;
  color: #333;
  overflow-x: hidden;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* Convert rpx to px (1rpx = 0.5px on standard screens) */
.container {
  padding: 0;
  padding-bottom: 0;
  min-height: 100vh;
  background: transparent;
  position: relative;
}

.header {
  text-align: center;
  margin-bottom: 15px;
  padding: 15px 0;
}

.title {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #006260;
  margin-bottom: 8px;
}

.subtitle {
  display: block;
  font-size: 14px;
  color: #7d6a56;
}

.menu-list {
  margin-bottom: 10px;
}

.menu-item {
  background: #fefbf0;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.item-icon {
  font-size: 48px;
  flex-shrink: 0;
  align-self: center;
}

.item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40px;
}

.item-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
  transform: translateY(32.5px);
}

.item-name {
  font-size: 18px;
  font-weight: 600;
  color: #006260;
  line-height: 1.3;
}

.item-desc {
  font-size: 15px;
  color: #7d6a56;
  line-height: 1.4;
}

.item-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.item-price {
  font-size: 18px;
  color: #006260;
  font-weight: bold;
  margin-bottom: 6px;
  text-align: right;
}

.price-btn-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.select-spec-btn {
  position: relative;
  background: #006260;
  color: white;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.select-spec-btn:active {
  transform: scale(0.95);
  opacity: 0.9;
}

.count-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ff6b6b;
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  border: 1px solid #fefbf0;
}

/* Bottom Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: transparent;
  padding: 0 16px 0 12px;
  display: flex;
  align-items: center;
  z-index: 100;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.bottom-bar.show {
  transform: translateY(0);
  opacity: 1;
}

.bag-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding-left: 18px;
}

.bag-icon-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bag-icon-image {
  width: 92px;
  height: auto;
  filter: brightness(0) invert(1);  /* make cart image white */
}

.bag-count {
  position: absolute;
  top: 38%;
  left: 27%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  pointer-events: none;
  z-index: 1;
}

.bag-price {
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.checkout-btn {
  height: 44px;
  padding: 0 22px;
  background: transparent;
  color: #F5EDD6;
  border: 1.5px solid #F5EDD6;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.checkout-btn:active {
  background: rgba(245, 237, 214, 0.15);
}


/* Cart Popup */
.cp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99;
  animation: fadeIn 0.2s ease-in-out;
}

.cp-sheet {
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 65vh;
  background: #1e1e1e;
  border: 1.5px solid rgba(245, 237, 214, 0.35);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

.cp-header {
  padding: 16px 18px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(245, 237, 214, 0.2);
  flex-shrink: 0;
}

.cp-title {
  font-size: 15px;
  font-weight: 700;
  color: #F5EDD6;
  letter-spacing: 0.5px;
}

.cp-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-tag {
  padding: 3px 10px;
  border: 1px solid rgba(245, 237, 214, 0.5);
  border-radius: 20px;
  font-size: 12px;
  color: #F5EDD6;
  opacity: 0.75;
}

.cp-close-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #F5EDD6;
  opacity: 0.6;
  background: rgba(245, 237, 214, 0.1);
  border-radius: 50%;
  cursor: pointer;
}

.cp-close-btn:active { opacity: 1; }

.cp-trash {
  font-size: 18px;
  cursor: pointer;
  padding: 2px 4px;
}

.cp-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 8px;
}

/* Each cart item row */
.cp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(245, 237, 214, 0.1);
}

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

.cp-item-drink-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
}

.cp-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cp-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #F5EDD6;
}

.cp-item-specs {
  font-size: 12px;
  color: #F5EDD6;
  opacity: 0.55;
}

.cp-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.cp-item-price {
  font-size: 16px;
  font-weight: 700;
  color: #F5EDD6;
}

.cp-item-counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-counter-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #F5EDD6;
  background: rgba(245, 237, 214, 0.12);
  border: 1px solid rgba(245, 237, 214, 0.3);
  cursor: pointer;
  line-height: 1;
}

.cp-counter-btn.solid {
  background: #F5EDD6;
  color: #2b2016;
  border-color: #F5EDD6;
}

.cp-counter-btn:active { opacity: 0.7; }

.cp-counter-value {
  font-size: 15px;
  font-weight: 600;
  color: #F5EDD6;
  min-width: 18px;
  text-align: center;
}

.cp-item-edit {
  font-size: 16px;
  padding: 4px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.6;
}

.cp-item-edit:active { opacity: 1; }



/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-in-out;
}

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

.popup-container {
  width: 100%;
  max-height: 80vh;
  background: #1e1e1e;
  border: 1.5px solid rgba(245, 237, 214, 0.35);
  border-radius: 18px 18px 0 0;
  padding: 18px 18px 28px;
  animation: slideUp 0.3s ease-out;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.popup-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 237, 214, 0.2);
}

.popup-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup-icon {
  width: 30px;
  height: 30px;
  font-size: 24px;
}

.popup-title {
  font-size: 16px;
  font-weight: 700;
  color: #F5EDD6;
  letter-spacing: 0.5px;
}

.popup-content {
  margin-bottom: 10px;
}

.popup-section {
  margin-bottom: 16px;
}

.ice-level-section {
  animation: fadeSlideIn 0.18s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: #F5EDD6;
  opacity: 0.55;
  display: block;
  margin-bottom: 8px;
}

.green-label {
  opacity: 1;
  color: #7ecb6e;
  display: flex;
  align-items: center;
  gap: 4px;
}

.option-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.option-btn {
  flex: 1;
  min-width: 75px;
  padding: 11px 12px;
  background: rgba(245, 237, 214, 0.08);
  border: 1px solid rgba(245, 237, 214, 0.25);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  color: #F5EDD6;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.option-btn.active {
  background: #F5EDD6;
  border-color: #F5EDD6;
  color: #1e1e1e;
  font-weight: 700;
}

.option-btn:active {
  transform: scale(0.97);
}

.popup-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 237, 214, 0.2);
}

.counter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counter-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-align: center;
  line-height: 1;
  cursor: pointer;
}

.counter-btn:first-child {
  color: #F5EDD6;
  background: rgba(245, 237, 214, 0.12);
  border: 1px solid rgba(245, 237, 214, 0.3);
}

.counter-btn:last-child {
  background: #F5EDD6;
  color: #1e1e1e;
  border: 1px solid #F5EDD6;
}

.counter-btn:active {
  opacity: 0.7;
}

.counter-display {
  font-size: 16px;
  font-weight: 600;
  color: #F5EDD6;
  min-width: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.add-to-cart-btn {
  flex: 1;
  height: 44px;
  background: #F5EDD6;
  color: #1e1e1e;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.add-to-cart-btn:active {
  opacity: 0.85;
}

/* Custom modal styles */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-in-out;
}

.custom-modal-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 80%;
  max-width: 300px;
  text-align: center;
}

.custom-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.custom-modal-message {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  white-space: pre-line;
  line-height: 1.6;
}

.custom-modal-buttons {
  display: flex;
  gap: 10px;
}

.custom-modal-btn {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.custom-modal-btn.cancel {
  background: #f5f5f5;
  color: #666;
}

.custom-modal-btn.confirm {
  background: #006260;
  color: white;
}

.custom-modal-btn:active {
  opacity: 0.8;
}

.name-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 12px 0 4px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.name-input:focus {
  border-color: #006260;
}

/* Toast styles */
.custom-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10001;
  animation: fadeIn 0.2s ease-in-out;
  text-align: center;
  max-width: 80%;
}

/* ===========================
   HEADER MY ORDERS BUTTON
   =========================== */

.header {
  position: relative;
}

.my-orders-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  background: #006260;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.my-orders-btn:active {
  background: #004e50;
}

/* ===========================
   MY ORDERS PANEL
   =========================== */

.my-orders-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.my-orders-panel {
  background: #fefbf0;
  width: 100%;
  max-width: 480px;
  border-radius: 18px 18px 0 0;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.my-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e0ce;
  flex-shrink: 0;
}

.my-orders-title {
  font-size: 18px;
  font-weight: 700;
  color: #006260;
}

.my-orders-close {
  font-size: 18px;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
}

.my-orders-content {
  overflow-y: auto;
  padding: 12px 16px 24px;
  flex: 1;
}

.my-orders-loading,
.my-orders-empty {
  text-align: center;
  color: #999;
  padding: 40px 0;
  font-size: 15px;
}

.my-order-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: opacity 0.3s;
}

.my-order-card.completed {
  opacity: 0.65;
}

.my-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.my-order-id {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.my-order-status {
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.status-pending {
  background: #fff4e0;
  color: #b07600;
}

.status-completed {
  background: #e6f5f5;
  color: #006260;
}

.my-order-items {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.7;
}

.my-order-item-row {
  padding: 1px 0;
}

.my-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.my-order-time {
  font-size: 12px;
  color: #aaa;
}

.my-order-price {
  font-size: 14px;
  font-weight: 700;
  color: #006260;
}

/* =================== ORDER DETAIL PAGE =================== */

#orderDetailPage {
  position: fixed;
  inset: 0;
  background: transparent;
  overflow: hidden;
}

/* Full-page dark background matching main page */
.od-bg {
  width: 100%;
  height: 100%;
  background-image: url('images/background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Content container */
.od-container {
  width: 100%;
  max-width: 480px;
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  overflow: hidden;
}

/* Header: title + subtitle images, same as main page */
.od-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 36px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.od-title-img {
  width: min(72vw, 300px);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.od-subtitle-img {
  width: min(55vw, 220px);
  height: auto;
  margin-top: 6px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

/* Identity cards row */
.od-cards {
  display: flex;
  gap: 14px;
  width: 100%;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.od-card {
  flex: 1;
  background: transparent;
  border: 1.5px solid #F5EDD6;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}

.od-card-label {
  font-size: 11px;
  color: #F5EDD6;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  opacity: 0.8;
}

.od-card-value {
  font-size: 28px;
  font-weight: 800;
  color: #F5EDD6;
  line-height: 1;
}

.od-card-pickup {
  font-size: 32px;
  letter-spacing: 4px;
}

/* "您的订单" label */
.od-your-order {
  width: 100%;
  font-size: 13px;
  color: #F5EDD6;
  opacity: 0.75;
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* Items list */
.od-items-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
  flex-shrink: 0;
}

/* Each drink row */
.od-item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

/* Single drink image (drink + doodle grouped) */
.od-drink-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Drink name image(s) — same style as main page but ~half size */
.od-name-wrap {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  /* top-aligned with the drink stack */
}

.od-name-wrap img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* two-word names (生椰拿铁, 燕麦拿铁) stack vertically */
.od-name-wrap.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* Middle section: name img + specs */
.od-item-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.od-item-specs {
  font-size: 12px;
  color: #F5EDD6;
  opacity: 0.7;
}

/* Right: qty + price */
.od-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-top: 6px;
  flex-shrink: 0;
}

.od-item-qty {
  font-size: 14px;
  color: #F5EDD6;
  opacity: 0.85;
}

.od-item-price {
  font-size: 15px;
  font-weight: 700;
  color: #F5EDD6;
}

/* Divider */
.od-divider {
  width: calc(100% - 24px);
  height: 1px;
  background: rgba(245, 237, 214, 0.4);
  margin: 14px 12px 12px;
}

/* Total row */
.od-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.od-total-label {
  font-size: 20px;
  font-weight: 700;
  color: #F5EDD6;
  font-family: 'ZCOOL XiaoWei', serif;
}

.od-total-value {
  font-size: 26px;
  font-weight: 800;
  color: #F5EDD6;
}

/* Payment box */
.od-payment-box {
  width: 100%;
  border: 1.5px solid #F5EDD6;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex-shrink: 0;
}

.od-payment-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.od-payment-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.od-payment-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.od-payment-title {
  font-size: 18px;
  font-weight: 700;
  color: #F5EDD6;
}

.od-payment-sub {
  font-size: 13px;
  color: #F5EDD6;
  opacity: 0.7;
}

.od-payment-note {
  font-size: 13px;
  color: #F5EDD6;
  opacity: 0.65;
  text-align: center;
}

/* Return button */
.od-back-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: #F5EDD6;
  border: 1.5px solid rgba(245, 237, 214, 0.7);
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 1px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.od-back-btn:active {
  background: rgba(245, 237, 214, 0.15);
}



/* ===========================
   LOOKUP ORDER BUTTON
   =========================== */


.lookup-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 20px;
  background: transparent;
  color: #F5EDD6;
  border: 1.5px solid rgba(245, 237, 214, 0.7);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.lookup-btn:active {
  background: rgba(245, 237, 214, 0.15);
  color: #fff;
}

/* ===========================
   LOOKUP PANEL (BOTTOM SHEET)
   =========================== */

.lookup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-in-out;
}

.lookup-panel {
  background: #fefbf0;
  width: 100%;
  max-width: 480px;
  border-radius: 18px 18px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  animation: slideUp 0.3s ease-out;
}

.lookup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
  flex-direction: column;
  gap: 0;
}

.lookup-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 12px;
}

.lookup-divider {
  width: calc(100% - 40px);
  height: 2px;
  background: #006260;
  border-radius: 2px;
  margin-bottom: 0;
}

.lookup-title {
  font-size: 18px;
  font-weight: 700;
  color: #006260;
}

.lookup-close {
  font-size: 18px;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
}

.lookup-body {
  padding: 16px 20px 28px;
}

.lookup-hint {
  font-size: 13px;
  color: #006260;
  margin-bottom: 14px;
}

.lookup-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lookup-input {
  flex: 1;
  height: 46px;
  border: 1.5px solid #006260;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #006260;
  background: #f5f0e0;
  outline: none;
  font-family: inherit;
}

.lookup-input:focus {
  border-color: #006260;
}

.lookup-search-btn {
  height: 46px;
  padding: 0 20px;
  background: #006260;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.lookup-search-btn:active {
  opacity: 0.85;
}

.lookup-result {
  margin-top: 16px;
}

.lookup-error {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #c0392b;
  padding: 10px 0;
}

.lookup-loading {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #999;
  padding: 10px 0;
}

.lookup-result-card {
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  border: 2px solid transparent;
}

.lookup-pending {
  background: #fff8e8;
  border-color: #d4b84a;
}

.lookup-done {
  background: #e8f5f5;
  border-color: #006260;
}

.lookup-result-code {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #006260;
  margin-bottom: 4px;
}

.lookup-result-num {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.lookup-result-status {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ===========================
   SWIPER — MAIN MENU
   =========================== */

/* ---- Header ---- */
.swiper-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  text-align: center;
  padding: 18px 20px 14px;
  background: linear-gradient(to bottom, rgba(32, 30, 28, 0.92) 0%, rgba(32, 30, 28, 0) 100%);
  pointer-events: none;
}

.swiper-header > * {
  pointer-events: auto;
}

.swiper-title-img {
  display: block;
  margin: 0 auto;
  max-width: 240px;
  width: 65%;
  height: auto;
}

.swiper-subtitle-img {
  display: block;
  margin: 6px auto 0;
  max-width: 180px;
  width: 50%;
  height: auto;
  opacity: 0.85;
}

/* ---- Swiper Wrapper (CSS scroll-snap) ---- */
.swiper-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 0;
}

.swiper-wrapper::-webkit-scrollbar {
  display: none;
}

/* ---- Individual Slide ---- */
.swiper-slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

/* chalkboard grain texture via pseudo-element */
.swiper-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ============================================================
   SLIDE ELEMENT TUNING — edit values here to adjust layout
   ============================================================

   HOW TO READ THIS:
   - top / bottom / left / right  → position from that edge of the slide
   - transform: translate(X, Y)   → fine nudge after positioning
         more negative Y = higher up; more negative X = further left
   - transform: scale(N)          → visual size (1.0 = natural, 1.5 = 50% bigger)
   - max-height                   → caps how tall the image can be
   - margin-right (negative)      → pulls two characters closer together

   SLIDE ORDER:  [0] 拿铁  [1] 美式  [2] 生椰拿铁  [3] 燕麦拿铁
   ============================================================ */


/* ──────────────────────────────────────────────
   SHARED BASE — drink stack container
   (all 4 slides use this unless overridden below)
   top / left anchor the center point of the stack
   translate(-50%, Y%) shifts it: more negative Y = higher
   width / max-width control the bounding box size
   ────────────────────────────────────────────── */
.slide-drink-stack {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);  /* ← change -52% to move all stacks up/down */
  width: 85vw;
  height: 85vw;
  max-width: 480px;
  max-height: 480px;
  object-fit: contain;
  pointer-events: none;
}

/* SHARED BASE — name image anchor */
.slide-name-img {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}


/* ══════════════════════════════════════════════
   SLIDE 0 — 拿铁 (LATTE)
   ══════════════════════════════════════════════ */

/* [拿铁] Name image */
.slide-name-latte {
  top: 20%;                         /* ← vertical position (% of slide height) */
  right: 4%;                        /* ← distance from right edge */
  max-height: min(22vw, 110px);     /* ← size of name image */
  width: auto;
}


/* ══════════════════════════════════════════════
   SLIDE 1 — 美式 (AMERICANO)
   ══════════════════════════════════════════════ */

/* [美式] Name image */
.slide-name-americano {
  top: 20%;                         /* ← vertical position */
  right: 4%;                        /* ← distance from right edge */
  max-height: min(18vw, 90px);      /* ← size of name image */
  width: auto;
}


/* ══════════════════════════════════════════════
   SLIDE 2 — 生椰拿铁 (COCONUT LATTE)
   ══════════════════════════════════════════════ */

/* [生椰拿铁] Name — two characters side by side on the LEFT */
.slide-name-coconut {
  top: 140px;                       /* ← just below the lookup button */
  left: 4%;                         /* ← distance from left edge */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0px;
}
.slide-name-coconut img {
  max-height: min(18vw, 90px);      /* ← size of each character image */
  width: auto;
  margin-right: -12px;              /* ← negative = pull characters closer */
}
.slide-name-coconut img:first-child {
  max-height: min(13vw, 65px);      /* ← 生椰 scaled down to match 拿铁 visually */
}
.slide-name-coconut img:last-child { margin-right: 0; }


/* ══════════════════════════════════════════════
   SLIDE 3 — 燕麦拿铁 (OAT LATTE)
   ══════════════════════════════════════════════ */

/* [燕麦拿铁] Name — two characters side by side on the RIGHT */
.slide-name-oat {
  top: 20%;                         /* ← vertical position (% of slide height) */
  right: 0%;                        /* ← distance from right edge */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0px;
}
.slide-name-oat img {
  max-height: min(18vw, 90px);      /* ← matches coconut size */
  width: auto;
  margin-right: -8px;               /* ← negative = pull characters closer */
}
.slide-name-oat img:first-child {
  max-height: min(13vw, 65px);      /* ← 燕麦 scaled down to match 拿铁 visually */
}
.slide-name-oat img:last-child { margin-right: 0; }

/* ---- Bottom area (price + spec button) ---- */
.slide-bottom {
  position: absolute;
  z-index: 4;
  bottom: 70px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.slide-price-img {
  max-height: min(14vw, 60px);
  width: auto;
  align-self: flex-end;
  margin-right: 1%;
  margin-top: 70px;
  filter: drop-shadow(1px 2px 6px rgba(0,0,0,0.4));
}

.slide-spec-btn {
  position: relative;
  background: rgba(245, 237, 214, 0.08);
  color: #F5EDD6;
  border: 1.5px solid rgba(245, 237, 214, 0.55);
  border-radius: 28px;
  padding: 11px 36px;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s;
}

.slide-spec-btn:active {
  background: rgba(245, 237, 214, 0.2);
  transform: scale(0.96);
}


/* ---- Navigation Arrows ---- */
.swiper-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 600;
  background: transparent;
  border: none;
  color: rgba(245, 237, 214, 0.7);
  font-size: 36px;
  line-height: 1;
  width: 44px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.2s, opacity 0.2s;
}

.swiper-arrow:active {
  color: #fff;
}

.swiper-arrow.disabled {
  opacity: 0.2;
  pointer-events: none;
}

.swiper-arrow-left  { left: 6px; }
.swiper-arrow-right { right: 6px; }

/* ---- Progress Bar (continuous fill) ---- */
.swiper-progress {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  width: 120px;
  height: 3px;
  background: rgba(245, 237, 214, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.swiper-progress-fill {
  height: 100%;
  width: 25%; /* 1/4 of bar for 4 slides */
  background: #F5EDD6;
  border-radius: 999px;
  transform: translateX(0%);
  transition: transform 0.15s ease;
  will-change: transform;
}

