/* Additions for the live-menu pages (Order, Order confirmed, Menu and Market specials).
   Built on the variables and look in styles.css, which stays unchanged. */

.order-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--brown);
}

.order-notice {
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto 24px;
  box-sizing: border-box;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff3d6;
  border: 1px solid #e9c46a;
  color: var(--brown);
  font-weight: 700;
  text-align: center;
}

/* Photos and placeholders */
.order-item-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.weekly-order-card img.no-photo,
.weekly-market-card img.no-photo,
.weekly-special-card img.no-photo {
  object-fit: contain;
  padding: 24px;
  box-sizing: border-box;
  background: var(--paper);
}

.special-price {
  font-weight: 800;
  color: var(--teal-dark) !important;
}

.is-sold-out img,
.is-sold-out h3 {
  opacity: 0.55;
}

.unavailable-tag {
  display: inline-block;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper-dark);
  color: var(--brown) !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.weekly-special-content .unavailable-tag {
  margin-top: 6px;
}

/* Checkout form */
.customer-form .optional {
  font-weight: 500;
  color: var(--soft-brown);
}

.phone-field {
  display: grid;
  gap: 8px;
}

.phone-field > label {
  color: var(--teal-dark);
  font-weight: 900;
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
}

.customer-form select {
  width: 100%;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 111, 115, 0.25);
  background: rgba(255, 250, 243, 0.92);
  font: inherit;
  color: var(--ink);
}

.customer-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 111, 115, 0.12);
}

.pickup-choices {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pickup-choices legend {
  color: var(--teal-dark);
  font-weight: 900;
  margin-bottom: 8px;
  padding: 0;
}

.pickup-choices:focus {
  outline: none;
}

.customer-form .pickup-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 111, 115, 0.25);
  background: rgba(255, 250, 243, 0.92);
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}

.customer-form .pickup-choice:has(input:checked) {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 111, 115, 0.15);
  background: #fff;
}

.pickup-choice input,
.consent input {
  width: 20px !important;
  height: 20px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  flex: none;
  accent-color: var(--teal);
}

.pickup-choice strong {
  display: block;
  color: var(--teal-dark);
}

.pickup-choice small,
.consent small {
  display: block;
  margin-top: 4px;
  color: var(--brown);
  line-height: 1.5;
  font-size: 0.88rem;
}

.pickup-empty {
  color: var(--brown);
  margin: 0;
}

.customer-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.consent strong {
  color: var(--teal-dark);
}

.consent a {
  color: var(--teal);
}

/* Cart */
.cart-error {
  background: var(--paper);
  color: #b3261e;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  margin: 0 0 16px;
}

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

.cart-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

/* Order confirmed page */
.confirm-section {
  width: min(820px, calc(100% - 34px));
  margin: 60px auto;
}

.confirm-card {
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid rgba(77, 44, 29, 0.16);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
}

.confirm-card h1 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--teal-dark);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.confirm-card > p {
  color: var(--brown);
  line-height: 1.7;
}

.confirm-number {
  display: inline-block;
  margin: 6px 0 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.confirm-details {
  text-align: left;
  margin: 24px 0;
  display: grid;
  gap: 16px;
}

.confirm-box {
  background: #fff;
  border: 1px solid rgba(77, 44, 29, 0.14);
  border-radius: 16px;
  padding: 18px 20px;
}

.confirm-box h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--teal-dark);
  font-size: 1.3rem;
}

.confirm-box p {
  margin: 0;
  color: var(--brown);
  line-height: 1.6;
}

.confirm-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.confirm-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(77, 44, 29, 0.18);
  color: var(--ink);
}

.confirm-lines li:last-child {
  border-bottom: 0;
  font-weight: 900;
}

.confirm-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-pay {
  margin: 18px auto 0;
  padding: 16px;
  border: 2px dashed var(--gold);
  border-radius: 14px;
  background: #fff7e0;
  max-width: 460px;
}

@media (max-width: 700px) {
  .phone-row {
    grid-template-columns: 1fr;
  }

  .confirm-card {
    padding: 24px;
  }
}

/* Legal pages (Privacy, SMS Terms) */
.legal-section {
  width: min(860px, calc(100% - 34px));
  margin: 60px auto;
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid rgba(77, 44, 29, 0.16);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 44px;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  color: var(--ink);
}

.legal-section h1 {
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--teal-dark);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.legal-section h2 {
  margin: 30px 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--teal-dark);
  font-size: 1.4rem;
}

.legal-section p,
.legal-section li {
  color: var(--brown);
  line-height: 1.75;
}

.legal-section a {
  color: var(--teal);
}

.legal-updated {
  color: var(--soft-brown);
  font-weight: 700;
}

@media (max-width: 700px) {
  .legal-section {
    padding: 24px;
  }
}

/* Benefits page cards (paragraphs instead of the Menu page's price lists) */
.full-menu-card > p {
  margin: 0;
  color: var(--brown);
  line-height: 1.7;
}

/* Cart: subtotal and tax lines, refund policy */
.cart-summary {
  display: grid;
  gap: 6px;
  margin: -8px 0 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 245, 230, 0.28);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.cart-summary .cart-summary-total {
  color: var(--white);
  font-weight: 900;
}

.cart-policy {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 245, 230, 0.12);
  border: 1px solid rgba(255, 245, 230, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.55;
}

.confirm-policy {
  margin-top: 6px !important;
  font-size: 0.92rem;
}
