/* =============================================================
   PALM AVE CATERING — checkout.css
   Checkout page styles (layered on top of charcuterie.css)
   ============================================================= */


/* ── PAGE HEADER ─────────────────────────────────────────────── */

.checkout-page {
  padding: calc(var(--nav-height, 88px) + 2.5rem) 0 5rem;
  min-height: 80vh;
}

.checkout-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.checkout-page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}

.checkout-page-sub {
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: rgba(58, 34, 34, 0.55);
  margin: 0;
}


/* ── CHECKOUT PANELS ─────────────────────────────────────────── */

.checkout-panel {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(58, 34, 34, 0.07);
  padding: 1.6rem;
  margin-bottom: 1rem;
}

.checkout-panel:last-of-type { margin-bottom: 0; }

.checkout-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px solid rgba(58, 34, 34, 0.07);
  display: flex;
  align-items: center;
}


/* ── ORDER SUMMARY PANEL ─────────────────────────────────────── */

.checkout-order-panel {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(58, 34, 34, 0.08);
  padding: 1.6rem;
  position: sticky;
  top: calc(var(--nav-height, 88px) + 1rem);
}

.checkout-order-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px solid rgba(58, 34, 34, 0.07);
  display: flex;
  align-items: center;
}


/* ── EMPTY CART STATE ────────────────────────────────────────── */

.checkout-cart-empty {
  text-align: center;
  padding: 2rem 0 1rem;
}

.checkout-cart-empty-icon {
  font-size: 2.4rem;
  opacity: 0.35;
  margin-bottom: 0.65rem;
}

.checkout-cart-empty p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(58, 34, 34, 0.45);
  margin-bottom: 1rem;
}


/* ── MOBILE SUBMIT ───────────────────────────────────────────── */

.checkout-mobile-submit {
  margin-top: 1rem;
}


/* ── SUCCESS SCREEN CORRINA LINE ─────────────────────────────── */

.order-success-corrina {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-green-dark, #7a9436);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}


/* ── SUBMIT ERROR ────────────────────────────────────────────── */

#submitError {
  background: rgba(192, 57, 43, 0.07);
  border: 1px solid rgba(192, 57, 43, 0.2);
  color: #a02010;
  font-family: var(--font-body);
  font-size: 0.83rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 0.75rem;
  text-align: center;
}


/* ── RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 991px) {
  .checkout-order-panel { position: static; }
  .checkout-page { padding-bottom: 3.5rem; }
}

@media (max-width: 767px) {
  .checkout-panel { padding: 1.35rem; }
  .checkout-order-panel { padding: 1.35rem; }
}
