/* Shark City Bites — Cart / Checkout / Confirmation pages */

/* ── Shared layout ────────────────────────────────────────── */
.co-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.co-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  color: var(--ink);
}

.back-link {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.back-link:hover { color: var(--blue); }

.co-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* ── Notice banner ────────────────────────────────────────── */
.co-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .88rem;
  color: #713f12;
  margin-bottom: 24px;
}

.co-notice-icon { font-size: 1.1rem; flex-shrink: 0; }

/* Cancellation/warning variant of the notice banner */
.co-notice-warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

/* ── Empty cart ───────────────────────────────────────────── */
.co-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  gap: 16px;
}

/* ── Cart table ───────────────────────────────────────────── */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.cart-table thead tr {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.cart-table th {
  padding: 10px 16px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.cart-row td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cart-row:last-child td { border-bottom: none; }

.cart-row-name { font-weight: 600; }

.cart-row-qty { text-align: center; }

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.remove-btn {
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: .9rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}

.remove-btn:hover { color: #ef4444; background: #fef2f2; }

/* ── Totals ───────────────────────────────────────────────── */
.co-totals { padding: 16px 20px 20px; }

.co-total-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding: 5px 0;
  color: var(--muted);
}

.co-total-final {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px;
}

/* ── CTA buttons ──────────────────────────────────────────── */
.co-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}

.co-btn:hover { background: var(--blue-dk); }
.co-btn:disabled { opacity: .6; cursor: not-allowed; }

.co-btn-full { width: 100%; margin-top: 12px; }

/* ── Checkout two-column layout ───────────────────────────── */
.co-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

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

/* ── Form fields ──────────────────────────────────────────── */
.co-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}

.co-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.co-field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.co-field input,
.co-field select,
.co-field textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s;
  resize: vertical;
}

.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.co-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .co-field-row { grid-template-columns: 1fr; }
}

/* ── Radio group (fulfillment) ────────────────────────────── */
.co-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) { .co-radio-group { grid-template-columns: 1fr; } }

.co-radio { cursor: pointer; display: block; }
.co-radio input { display: none; }

.co-radio-box {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
}

.co-radio-box strong { font-size: .9rem; }
.co-radio-box small  { font-size: .78rem; color: var(--muted); margin-top: 2px; }

.co-radio input:checked + .co-radio-box {
  border-color: var(--blue);
  background: var(--blue-bg);
}

/* ── Error ────────────────────────────────────────────────── */
.co-error {
  color: #dc2626;
  font-size: .88rem;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ── Order summary sidebar ────────────────────────────────── */
.co-summary-items {
  margin-bottom: 8px;
}

.co-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink);
}

.co-qty-badge {
  color: var(--muted);
  font-size: .78rem;
}

/* ── Confirmation ─────────────────────────────────────────── */
.co-confirmed-main {
  display: flex;
  justify-content: center;
}

.co-confirmed-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.co-confirmed-icon { font-size: 3rem; line-height: 1; margin-bottom: 16px; }

.co-confirmed-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.co-confirmed-id {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.co-confirmed-msg {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Payment confirmed badge on order confirmation page */
.co-confirmed-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .82rem;
  font-weight: 600;
  margin: 8px 0 12px;
}

.co-confirmed-details {
  text-align: left;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── Promo code toggle ────────────────────────────────────── */
.co-promo-toggle {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity .15s;
}

.co-promo-toggle:hover { opacity: .8; }

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 640px) {
  .co-main { padding: 24px 16px 60px; }
  .co-title { font-size: 1.3rem; }
  .cart-table th:nth-child(3),
  .cart-row td:nth-child(3) { display: none; }
}
