﻿/* ═══════════════════════════════════════════════════════════════
   css/order.css — Pars & Pints Online Ordering Page
   ═══════════════════════════════════════════════════════════════ */

/* ── Page base ─────────────────────────────────────────────────── */
.order-page {
  background:
    linear-gradient(180deg, rgba(26,56,41,0.72) 0%, rgba(13,32,24,0.98) 360px),
    var(--green-deeper, #0d2018);
  min-height: 100vh;
}

.order-page #nav {
  background: rgba(13, 32, 24, 0.88);
  backdrop-filter: blur(8px);
}

.order-page .nav-links a[aria-current="page"] {
  color: var(--gold, #c9a84c);
}

.order-page #nav.nav-open {
  z-index: 300;
}

/* ── Page header ───────────────────────────────────────────────── */
.order-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13,32,24,0.76) 0%, rgba(13,32,24,0.94) 100%),
    url("../assets/logos/Food_Club.webp") center/cover;
  border-bottom: 1px solid var(--border, rgba(201, 168, 76, 0.18));
  padding: 9rem 0 3rem;
  text-align: center;
}

.order-header-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  margin: 0.25rem 0 0;
}

.order-header-sub {
  color: var(--text-muted, #a0b0a8);
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ── Three-column layout ───────────────────────────────────────── */
.order-layout {
  display: grid;
  grid-template-columns: 210px 1fr 310px;
  min-height: calc(100vh - 180px);
  border-top: 1px solid var(--border-muted, rgba(255, 255, 255, 0.07));
}

/* ── Category sidebar ──────────────────────────────────────────── */
.order-cat-nav {
  background: rgba(18, 42, 30, 0.92);
  border-right: 1px solid var(--border-muted, rgba(255, 255, 255, 0.07));
  padding: 1.5rem 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.cat-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 0.7rem 1.25rem;
  color: var(--text-muted, #a0b0a8);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1.4;
}

.cat-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.cat-btn.active {
  color: var(--gold, #c9a84c);
  border-left-color: var(--gold, #c9a84c);
  background: var(--gold-dim, rgba(201, 168, 76, 0.18));
  font-weight: 600;
}

.cat-error {
  color: var(--text-muted, #a0b0a8);
  font-size: 0.85rem;
  padding: 1rem 1.25rem;
  line-height: 1.5;
}

.cat-error a { color: var(--gold, #c9a84c); }

/* ── Items area ────────────────────────────────────────────────── */
.order-items-area {
  padding: 2rem 2rem 4rem;
  overflow-y: auto;
}

.current-cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Item grid ─────────────────────────────────────────────────── */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.item-card {
  background: rgba(26, 56, 41, 0.82);
  border: 1px solid var(--border, rgba(201, 168, 76, 0.18));
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s;
  display: flex;
  flex-direction: column;
}

.item-card--clickable { cursor: pointer; }

.item-card--clickable:hover {
  border-color: rgba(201, 168, 76, 0.42);
  background: var(--bg-card-hover, #1f4030);
}

.item-card--clickable:focus-visible {
  outline: 2px solid var(--gold, #c9a84c);
  outline-offset: 2px;
}

.item-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

.item-card-info { flex: 1; }

.item-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.item-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #a0b0a8);
  line-height: 1.5;
  margin: 0;
}

.item-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  gap: 0.5rem;
}

.item-card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold, #c9a84c);
  white-space: nowrap;
}

.btn-add-cart {
  background: var(--gold, #c9a84c);
  color: var(--green-deeper, #0d2018);
  border: none;
  border-radius: var(--radius, 4px);
  padding: 0.4rem 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-add-cart:hover { opacity: 0.85; }

.item-cart-count {
  background: var(--green-deeper, #0d2018);
  color: var(--gold, #c9a84c);
  border-radius: 50%;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ── Cart panel ────────────────────────────────────────────────── */
.order-cart-panel {
  background: rgba(18, 42, 30, 0.94);
  border-left: 1px solid var(--border-muted, rgba(255, 255, 255, 0.07));
  padding: 1.5rem;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cart-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-count-badge {
  background: var(--gold, #c9a84c);
  color: var(--green-deeper, #0d2018);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-empty {
  color: var(--text-muted, #a0b0a8);
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem 0;
  line-height: 1.6;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-size: 0.75rem;
  color: var(--text-muted, #a0b0a8);
}

.cart-item-mods {
  font-size: 0.72rem;
  color: var(--text-muted, #a0b0a8);
  font-style: italic;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold, #c9a84c);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-muted, rgba(255, 255, 255, 0.07));
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: var(--radius, 4px);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.qty-btn:hover { background: rgba(255, 255, 255, 0.15); }

.qty-value {
  min-width: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: #fff;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.cart-total-label {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.cart-total-amount {
  font-weight: 700;
  color: var(--gold, #c9a84c);
  font-size: 1rem;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-checkout {
  background: var(--gold, #c9a84c);
  color: var(--green-deeper, #0d2018);
  border: none;
  border-radius: var(--radius, 4px);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s;
}

.btn-checkout:hover { opacity: 0.88; }

/* ── Mobile cart bar ───────────────────────────────────────────── */
.mobile-cart-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gold, #c9a84c);
  color: var(--green-deeper, #0d2018);
  padding: 1rem 1.5rem;
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
}

/* ── Checkout step ─────────────────────────────────────────────── */
.step-checkout-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.step-back-link {
  background: none;
  border: none;
  color: var(--text-muted, #a0b0a8);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s;
}

.step-back-link:hover { color: #fff; }

.checkout-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
}

.order-summary-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  color: #fff;
  gap: 1rem;
}

.summary-item em { color: var(--text-muted, #a0b0a8); font-style: italic; }

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  color: #fff;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, #a0b0a8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-muted, rgba(255, 255, 255, 0.07));
  border-radius: var(--radius, 4px);
  padding: 0.7rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold, #c9a84c);
}

.form-group input::placeholder { color: rgba(255, 255, 255, 0.3); }

#sq-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-muted, rgba(255, 255, 255, 0.07));
  border-radius: var(--radius, 4px);
  padding: 0.7rem 1rem;
  min-height: 52px;
}

.error-msg {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  border-radius: 8px;
  color: #ff6b7a;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.pay-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.btn-pay {
  background: var(--gold, #c9a84c);
  color: var(--green-deeper, #0d2018);
  border: none;
  border-radius: var(--radius, 4px);
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-pay:not(:disabled):hover { opacity: 0.88; }

.btn-pay-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 32, 24, 0.3);
  border-top-color: var(--green-deeper, #0d2018);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Confirm step ──────────────────────────────────────────────── */
.step-confirm-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2.5rem 1.5rem 4rem;
}

.confirm-card {
  background: rgba(26, 56, 41, 0.88);
  border: 1px solid var(--border, rgba(201, 168, 76, 0.18));
  border-radius: 8px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.confirm-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold, #c9a84c);
  font-size: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.confirm-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.confirm-sub {
  color: var(--text-muted, #a0b0a8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.confirm-detail {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted, #a0b0a8);
  margin-bottom: 1.5rem;
}

.confirm-detail strong { color: #fff; }

.confirm-receipt {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--gold, #c9a84c);
  font-size: 0.875rem;
  text-decoration: none;
}

.confirm-receipt:hover { text-decoration: underline; }

/* ── Item customization modal ──────────────────────────────────── */
body.modal-open { overflow: hidden; }

.item-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: modal-fade-in 0.18s ease;
}

.item-modal-overlay[hidden] { display: none; }

@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 600px) {
  .item-modal-overlay { align-items: center; padding: 1.5rem; }
}

.item-modal-box {
  background: var(--green-dark, #122a1e);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px 8px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-slide-up 0.22s cubic-bezier(0.34, 1.1, 0.64, 1);
}

@media (min-width: 600px) {
  .item-modal-box { border-radius: 8px; }
}

@keyframes modal-slide-up {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.item-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.item-modal-close:hover { background: rgba(255, 255, 255, 0.2); }

.item-modal-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.item-modal-img[hidden] { display: none; }

.item-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 1.5rem 0.5rem;
  position: relative;
}

.item-modal-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 2rem 0.5rem 0;
}

.item-modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #a0b0a8);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.modal-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold, #c9a84c);
  margin: 0 0 0.6rem;
  display: block;
}

.item-modal-var-section,
.modal-modifier-group {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.modal-choice-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius, 4px);
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.875rem;
  color: #fff;
}

.modal-choice-row:hover { background: rgba(255, 255, 255, 0.06); }
.modal-choice-row input { accent-color: var(--gold, #c9a84c); width: 16px; height: 16px; flex-shrink: 0; }
.modal-choice-row span { flex: 1; }
.modal-choice-row em   { font-style: normal; color: var(--text-muted, #a0b0a8); font-size: 0.8rem; }

.item-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--green-dark, #122a1e);
  flex-shrink: 0;
}

.item-modal-qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.modal-qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.btn-modal-add {
  flex: 1;
  background: var(--gold, #c9a84c);
  color: var(--green-deeper, #0d2018);
  border: none;
  border-radius: var(--radius, 4px);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn-modal-add:hover { opacity: 0.88; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .order-layout { grid-template-columns: 180px 1fr 280px; }
}

@media (max-width: 860px) {
  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-cat-nav {
    position: static;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.25rem;
  }

  .cat-btn {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.45rem 1rem;
    white-space: nowrap;
    border-radius: 20px;
    flex-shrink: 0;
  }

  .cat-btn.active {
    border-bottom-color: transparent;
    background: rgba(201, 168, 76, 0.15);
  }

  .order-items-area { padding: 1.25rem 1rem 5rem; }
  .order-cart-panel { display: none; }
  .mobile-cart-bar  { display: flex; }

  .item-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 480px) {
  .item-grid { grid-template-columns: 1fr; }
  .order-header { padding: 8.5rem 1rem 2rem; }
  .order-header-title { font-size: 2.2rem; }
  .step-checkout-wrap { padding: 1.5rem 1rem 5rem; }
  .confirm-card { padding: 2rem 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════════
   Missing / mismatched class definitions
   ══════════════════════════════════════════════════════════════════ */

/* Step visibility — hidden attribute removes them, but make explicit */
.order-step[hidden] { display: none !important; }

/* Loading text */
.items-loading {
  color: var(--text-muted, #a0b0a8);
  text-align: center;
  padding: 3rem;
  font-size: 0.9rem;
}

/* ── Cart panel head ─────────────────────────────────────────────── */
.cart-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.cart-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.cart-empty-hint {
  font-size: 0.8rem;
  color: var(--text-muted, #a0b0a8);
  opacity: 0.7;
  margin-top: 0.3rem;
}

/* ── Mobile cart bar internals ───────────────────────────────────── */
.mobile-cart-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mobile-cart-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-deeper, #0d2018);
  opacity: 0.75;
}

.mobile-cart-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deeper, #0d2018);
}

/* ── Back button (checkout → browse) ────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--text-muted, #a0b0a8);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.75rem;
  transition: color 0.15s;
}
.btn-back:hover { color: #fff; }

/* ── Checkout two-column layout ─────────────────────────────────── */
.order-step--checkout .container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.checkout-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

/* Required field marker */
.req {
  color: var(--gold, #c9a84c);
  margin-left: 0.15rem;
}

/* Secure note (lock icon + text) */
.checkout-secure-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted, #a0b0a8);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* Per-field validation error */
.field-error {
  color: #ff6b7a;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* Form-level checkout error */
.checkout-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.35);
  border-radius: 8px;
  color: #ff6b7a;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Pay button spinner (HTML class is .pay-spinner, CSS was .btn-pay-spinner) */
.pay-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 32, 24, 0.3);
  border-top-color: var(--green-deeper, #0d2018);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ── Confirmation details ───────────────────────────────────────── */
.confirm-details {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.confirm-order-num {
  font-size: 0.875rem;
  color: var(--text-muted, #a0b0a8);
}

.confirm-order-num strong {
  color: #fff;
  font-weight: 700;
}

/* ── Checkout layout — responsive ───────────────────────────────── */
@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .checkout-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 480px) {
  .checkout-layout { gap: 1rem; }
  .order-step--checkout .container { padding-top: 1.25rem; }
}
