/* ===========================================
   GLOBAL PAGE LAYOUT (STACKED ALWAYS)
=========================================== */
.page {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 12px;
  box-sizing: border-box;
  background: #fafafa;

  display: flex;
  flex-direction: column;
  gap: 25px;
  font-family: "DM Sans", sans-serif;
}

.notice-banner {
  width: 100%;
  margin: 16px auto 0;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #ffe3a3;
  background: #fff8e6;
  color: #8a5b00;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* ===========================================
   PANELS — always full width, stacked
=========================================== */
.items-panel,
.summary-panel {
  width: 100%;
  background: #fafafa;
  padding: 22px;
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===========================================
   ITEM ROWS
=========================================== */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #efefef;
}
.item:last-child {
  border-bottom: none;
}

.item-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

.item-price {
  font-size: 15px;
  color: #666;
}

/* ===========================================
   QUANTITY CONTROLS
=========================================== */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-controls button {
  width: 32px;
  height: 32px;
  background: #f2f2f2;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.15s;
}

.qty-controls button:hover {
  background: #ddd;
}

.remove-btn {
  background: #ff4d4d !important;
  color: #fff !important;
  font-weight: bold;
}
.remove-btn:hover {
  background: #e83e3e !important;
}

/* ADD MORE ITEMS BUTTON */
.add-more-btn {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  border: none;
  border-radius: 10px;
  background: #fafafa;
  box-shadow: inset 0 0 0 2px #ddd;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.add-more-btn:hover {
  background: #f1f1f1;
}

/* ===========================================
   SUMMARY PANEL (ALWAYS FULL WIDTH)
=========================================== */
.summary-section {
  margin-bottom: 28px;
}

.summary-title {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 8px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  margin-top: 15px;
}

/* TIP BUTTONS */
.tip-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.tip-buttons button {
  flex: 1;
  padding: 10px 0;
  background: #f5f5f5;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

.tip-buttons button:hover {
  background: #eaeaea;
}

.tip-buttons button.active {
  background: #006aff;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 102, 255, 0.3);
}

/* CUSTOM TIP */
.custom-tip {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
}

.custom-tip:focus {
  border-color: #006aff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 106, 255, 0.15);
}

/* PRIMARY ACTION BUTTON */
.pay-btn {
  width: 100%;
  padding: 15px;
  background: #006aff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.22s;
}

.pay-btn:hover:not(:disabled) {
  background: #0057d4;
}

.pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ===========================================
   PICKUP SELECTOR
=========================================== */
.pickup-container {
  margin-top: 10px;
}

.pickup-readonly {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pickup-time {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 15px;
  color: #333;
  box-sizing: border-box;
}

.pickup-note {
  font-size: 13px;
  color: #555;
}

.pickup-scroll-box {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #e5e5e5;
  background: #f9f9f9;
  border-radius: 10px;
  padding-right: 4px;
}

.pickup-day-btn,
.pickup-time-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: #eee;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
}

.pickup-day-btn.active,
.pickup-time-btn.active {
  background: #006aff;
  color: #fff;
}

.pickup-day-btn.disabled,
.pickup-time-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pickup-days,
.pickup-times {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

/* No media queries needed — always stacked */
.cart-context-banner {
  width: 100%;
  max-width: 900px;
  margin: 16px auto 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.cart-context-banner.pickup-theme {
  color: #111;
}

.cart-context-banner.custom-theme {
  background: #cf9e25;
  border-color: #b8871f;
  color: #fff;
}

.cart-context-icon {
  font-size: 26px;
}

.cart-context-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-context-label {
  font-size: 18px;
  font-weight: 700;
}

.cart-context-subtitle {
  font-size: 14px;
  color: #555;
}

.cart-context-banner.custom-theme .cart-context-subtitle {
  color: #fff;
  opacity: 0.9;
}
