/* assets/css/checkout.css — Memorial Slate checkout & success page styles */

/* ── Main checkout shell ────────────────────────────────────────────── */
.checkout-shell {
  max-width: 1160px;
  margin: 28px auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
  padding: 0 20px;
  align-items: start;
}

/* ── Checkout card ──────────────────────────────────────────────────── */
.checkout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

/* ── Checkout title & sub ───────────────────────────────────────────── */
.checkout-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.checkout-sub {
  color: var(--ink2);
  font-size: 14px;
  margin: 0 0 20px;
}

/* ── Checkout grid ──────────────────────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkout-grid .field.full {
  grid-column: 1 / -1;
}

/* ── Checkout section ───────────────────────────────────────────────── */
.checkout-section {
  margin-bottom: 20px;
}

.checkout-section:last-child {
  margin-bottom: 0;
}

/* ── Checkout label ─────────────────────────────────────────────────── */
.checkout-label {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-label span {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.checkout-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Payment card container ─────────────────────────────────────────── */
.checkout-card-box {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  background: var(--cream2);
}

/* ── Express / wallet styles ────────────────────────────────────────── */
.checkout-express-stack {
  display: grid;
  gap: 12px;
}

.checkout-hidden-mount {
  display: none;
}

.checkout-provider-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.checkout-provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
}

.checkout-provider-pill.active,
.checkout-provider-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.checkout-wallet-btn {
  width: 100%;
  min-height: 48px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.checkout-wallet-btn:hover {
  border-color: var(--ink3);
}

.checkout-wallet-wrap {
  display: grid;
  gap: 10px;
}

.checkout-afterpay-wrap {
  display: grid;
  gap: 10px;
}

.checkout-afterpay-btn {
  width: 100%;
  min-height: 48px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.checkout-afterpay-btn:hover {
  border-color: var(--ink3);
}

.checkout-afterpay-info {
  font-size: 12px;
  color: var(--ink3);
  font-family: var(--font-body);
  text-align: center;
}

/* ── Card surface (Stripe card element) ─────────────────────────────── */
.checkout-card-surface {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 0.15s;
}

.checkout-card-surface:focus-within {
  border-color: var(--gold);
}

/* ── Card header & brands ───────────────────────────────────────────── */
.checkout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.checkout-card-brands {
  display: flex;
  gap: 6px;
  align-items: center;
}

.checkout-card-brand {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

/* ── Card trust note ────────────────────────────────────────────────── */
.checkout-card-trust {
  font-size: 12px;
  color: var(--ink3);
  font-family: var(--font-body);
  margin-top: 8px;
}

/* ── Generic note ───────────────────────────────────────────────────── */
.checkout-note {
  font-size: 12px;
  color: var(--ink3);
  font-family: var(--font-body);
}

/* ── Error message ──────────────────────────────────────────────────── */
.checkout-error {
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: var(--r-sm);
  background: rgba(192, 57, 43, 0.06);
  color: #c0392b;
  padding: 10px 12px;
  font-size: 13px;
  font-family: var(--font-body);
}

/* ── Order sidebar title ────────────────────────────────────────────── */
.checkout-order-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  font-family: var(--font-body);
}

/* ── Price display ──────────────────────────────────────────────────── */
.checkout-price {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--gold);
  line-height: 1;
}

/* ── Divider ────────────────────────────────────────────────────────── */
.checkout-divider {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Meta rows ──────────────────────────────────────────────────────── */
.checkout-meta {
  display: grid;
  gap: 8px;
}

.checkout-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--ink2);
  font-family: var(--font-body);
}

.checkout-meta-item strong {
  color: var(--ink);
  font-weight: 500;
}

/* ── Coupon row ─────────────────────────────────────────────────────── */
.checkout-coupon-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.checkout-coupon-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s;
}

.checkout-coupon-input:focus {
  outline: none;
  border-color: var(--gold);
}

.checkout-coupon-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1.5px solid var(--gold);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.checkout-coupon-btn:hover {
  background: var(--gold);
  color: #fff;
}

.checkout-coupon-applied {
  font-size: 12px;
  color: var(--green);
  font-family: var(--font-body);
  margin-top: 4px;
}

.checkout-coupon-error {
  font-size: 12px;
  color: #c0392b;
  font-family: var(--font-body);
  margin-top: 4px;
}

/* ── Actions ────────────────────────────────────────────────────────── */
.checkout-actions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.checkout-actions .btn-primary {
  width: 100%;
}

/* ── Autocomplete hint ──────────────────────────────────────────────── */
.autocomplete-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink3);
  font-family: var(--font-body);
}

/* ── Charge note ────────────────────────────────────────────────────── */
.checkout-charge-note {
  font-size: 12px;
  color: var(--ink3);
  font-family: var(--font-body);
}

/* ── Fulfillment note ───────────────────────────────────────────────── */
.checkout-fulfillment {
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--ink2);
}

/* ── Slate preview card (checkout sidebar) ──────────────────────────── */
.checkout-preview-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.checkout-preview-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
}

.checkout-slate-wrap {
  position: relative;
  width: 120px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 8px 20px rgba(28, 23, 20, 0.22));
}

.cs-body {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 6/8;
}

.cs-photo {
  position: absolute;
  top: 9.5%;
  left: 22%;
  width: 52%;
  height: 60%;
  z-index: 2;
  overflow: hidden;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9.5%;
  background: rgba(36, 32, 28, 0.94);
  border-radius: 4px 4px 0 0;
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%);
}

.cs-bot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14.5%;
  background: rgba(36, 32, 28, 0.90);
  border-radius: 0 0 4px 4px;
  z-index: 3;
  clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%);
}

.cs-left {
  position: absolute;
  top: 9.5%;
  left: 0;
  width: 22%;
  height: 76%;
  background: rgba(36, 32, 28, 0.90);
  z-index: 3;
}

.cs-right {
  position: absolute;
  top: 9.5%;
  right: 0;
  width: 26%;
  height: 76%;
  background: rgba(36, 32, 28, 0.90);
  z-index: 3;
}

.cs-edge {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.06), inset 0 0 0 4px rgba(28, 24, 20, 0.82);
  pointer-events: none;
}

.cs-text {
  position: absolute;
  top: 69.5%;
  left: 22%;
  width: 52%;
  z-index: 5;
  text-align: center;
}

.cs-forever {
  font-size: 3.2px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.cs-name {
  font-family: var(--font-display);
  font-size: 7px;
  color: #fff;
  font-style: italic;
  line-height: 1.1;
}

.cs-years {
  font-size: 3px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  font-family: var(--font-body);
}

.cs-stand {
  width: 40%;
  height: 6px;
  background: rgba(36, 32, 28, 0.7);
  border-radius: 0 0 4px 4px;
  margin: 0 auto;
}

.checkout-preview-detail {
  text-align: center;
}

.checkout-preview-detail strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.checkout-preview-detail span {
  font-size: 12px;
  color: var(--ink3);
}

/* ── Checkout layout ────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .checkout-shell {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }
}

/* ── Section labels ─────────────────────────────────────────────────── */
.checkout-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── OR divider ─────────────────────────────────────────────────────── */
.checkout-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 11px;
  color: var(--ink3);
  font-family: var(--font-body);
}

.checkout-or::before,
.checkout-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Trust bar ──────────────────────────────────────────────────────── */
.checkout-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 0;
  font-size: 12px;
  color: var(--ink3);
  font-family: var(--font-body);
}

.checkout-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkout-trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

/* ── Pay button ─────────────────────────────────────────────────────── */
.checkout-pay-btn {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

.checkout-pay-btn:hover {
  background: #8F5225;
}

.checkout-pay-btn:disabled {
  background: var(--ink3);
  cursor: not-allowed;
}

/* ── Delivery card ──────────────────────────────────────────────────── */
.checkout-delivery-card {
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink2);
  font-family: var(--font-body);
}

.checkout-delivery-name {
  font-weight: 600;
  color: var(--ink);
}

/* ── Next steps ─────────────────────────────────────────────────────── */
.checkout-next-steps {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-top: 12px;
}

.checkout-next-steps h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  font-family: var(--font-body);
}

.checkout-next-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink2);
  font-family: var(--font-body);
  margin-bottom: 8px;
}

.checkout-next-step:last-child {
  margin-bottom: 0;
}

.checkout-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Policy pages ───────────────────────────────────────────────────── */
.policy-page {
  max-width: 740px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.policy-page h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.policy-page .policy-meta {
  font-size: 13px;
  color: var(--ink3);
  margin-bottom: 32px;
  font-family: var(--font-body);
}

.policy-page h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.policy-page p,
.policy-page li {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.75;
  font-family: var(--font-body);
}

.policy-page ul,
.policy-page ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.policy-callout {
  background: var(--green-bg);
  border: 1px solid rgba(42, 107, 71, 0.2);
  border-left: 3px solid var(--green);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--green);
  font-family: var(--font-body);
}

/* ── FAQ page ───────────────────────────────────────────────────────── */
.faq-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.faq-category {
  margin-bottom: 36px;
}

.faq-category-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  min-height: 44px;
}

.faq-q:hover {
  background: var(--cream);
}

.faq-q-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-bg);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-q[aria-expanded="true"] .faq-q-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
  font-family: var(--font-body);
}

/* ── Delivery page ──────────────────────────────────────────────────── */
.delivery-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.delivery-page h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

.delivery-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.delivery-table th,
.delivery-table td {
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.delivery-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink3);
}

.delivery-table td {
  color: var(--ink2);
}

.delivery-table td strong {
  color: var(--ink);
}

.delivery-highlight {
  background: var(--gold-bg);
  border: 1px solid rgba(176, 107, 46, 0.2);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--ink2);
  font-family: var(--font-body);
}

.delivery-highlight strong {
  color: var(--gold);
}

/* ── Success page ───────────────────────────────────────────────────── */
.success-hero {
  background: var(--slate-dark);
  padding: 48px 20px;
  text-align: center;
}

.success-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 2px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-check svg {
  width: 28px;
  height: 28px;
}

.success-h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.success-h1 em {
  font-style: italic;
  color: var(--gold2);
}

.success-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
}

.success-body {
  max-width: 560px;
  margin: 32px auto 80px;
  padding: 0 20px;
}

.success-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.success-tracker {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
}

.success-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.success-step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.success-step:last-child::after {
  display: none;
}

.success-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--ink3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
}

.success-step.done .success-step-dot {
  background: var(--green);
  color: #fff;
}

.success-step.active .success-step-dot {
  background: var(--gold);
  color: #fff;
}

.success-step-label {
  font-size: 10px;
  color: var(--ink3);
  font-family: var(--font-body);
  line-height: 1.3;
}

.success-recap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.success-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-family: var(--font-body);
}

.success-recap-row:last-child {
  border-bottom: none;
}

.success-recap-label {
  color: var(--ink3);
}

.success-recap-value {
  color: var(--ink);
  font-weight: 500;
}

.success-recap-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-body);
}

.success-pending {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 20px;
  text-align: center;
  font-family: var(--font-body);
}

.success-pending h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.success-pending p {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
}

.success-share {
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.success-share h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.success-share p {
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.success-share-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.success-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s;
  font-family: var(--font-body);
  min-height: 36px;
  cursor: pointer;
}

.success-share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════════════
   CHECKOUT — MISSING CLASSES (restored from active PHP templates)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Main card / summary card ───────────────────────────────────────── */
.checkout-main-card {
  padding: 28px;
}
.checkout-summary-card {
  position: sticky;
  top: 80px;
  padding: 20px;
}
@media (max-width: 800px) {
  .checkout-summary-card { position: static; }
  .checkout-main-card { padding: 20px 16px; }
}

/* ── Trust bar ──────────────────────────────────────────────────────── */
.checkout-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.checkout-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  font-family: var(--font-body);
}
.checkout-trust-item svg {
  width: 13px;
  height: 13px;
  color: var(--green);
  flex-shrink: 0;
}

/* ── Checkbox ───────────────────────────────────────────────────────── */
.checkout-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  margin-bottom: 12px;
}
.checkout-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ── Form fields ────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}
.input-field {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  box-sizing: border-box;
}
.input-field:focus {
  border-color: var(--gold);
}
.input-field::placeholder {
  color: var(--ink3);
}
select.input-field {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A8880' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Spinner ────────────────────────────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Charge banner ──────────────────────────────────────────────────── */
.checkout-charge-banner {
  padding: 10px 14px;
  border: 1px solid rgba(176, 107, 46, 0.2);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--gold-bg);
  color: var(--ink2);
  font-size: 13px;
  line-height: 1.55;
  font-family: var(--font-body);
}

/* ── Coupon section extras ──────────────────────────────────────────── */
.checkout-coupon-section { margin-top: 0; }
.checkout-coupon-actions { margin-top: 8px; }
.checkout-coupon-remove {
  background: transparent;
  color: var(--ink3);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color 0.15s, color 0.15s;
}
.checkout-coupon-remove:hover { border-color: var(--gold); color: var(--gold); }
.checkout-coupon-ok {
  font-size: 12px;
  color: var(--green);
  font-family: var(--font-body);
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--green-bg);
  border-radius: var(--r-sm);
  border: 1px solid rgba(42, 107, 71, 0.2);
}

/* ── Payment wallet boxes ───────────────────────────────────────────── */
.checkout-wallet-box:empty,
.checkout-afterpay-box:empty { display: none; }
.checkout-wallet-box iframe,
.checkout-wallet-box > div,
.checkout-wallet-box button,
.checkout-afterpay-box iframe,
.checkout-afterpay-box > div,
.checkout-afterpay-box button {
  border-radius: var(--r-md) !important;
}

/* ── Card payment container ─────────────────────────────────────────── */
.checkout-card-container {
  min-height: 80px;
  width: 100%;
}
.checkout-card-container iframe { width: 100% !important; }

/* ── Card brand img ─────────────────────────────────────────────────── */
.checkout-card-brand img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
}

/* ── Preview card in sidebar ────────────────────────────────────────── */
.checkout-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.checkout-preview-details {
  margin-top: 12px;
  display: grid;
  gap: 4px;
}
.cpd-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-family: var(--font-body);
}
.cpd-row span { color: var(--ink3); }
.cpd-row strong { color: var(--ink); font-weight: 600; text-align: right; }

/* ── Order summary extras ───────────────────────────────────────────── */
.checkout-order-sub {
  font-size: 13px;
  color: var(--ink2);
  margin: 4px 0 14px;
  font-family: var(--font-body);
  line-height: 1.5;
}
.checkout-summary-note { display: none !important; }

/* ── Next steps ─────────────────────────────────────────────────────── */
.checkout-next-steps-main { /* just adds identity, reuses .checkout-next-steps */ }
.checkout-next-steps-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-family: var(--font-body);
}
.checkout-next-steps-list {
  display: grid;
  gap: 12px;
}
.checkout-next-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-bg);
  border: 1px solid rgba(176, 107, 46, 0.25);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.checkout-next-step-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkout-next-step-copy strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-body);
}
.checkout-next-step-copy span {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.55;
  font-family: var(--font-body);
}

/* ── Delivery card extras ───────────────────────────────────────────── */
.checkout-delivery-reminder { margin-bottom: 0; }
.checkout-delivery-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
  font-family: var(--font-body);
}
.checkout-delivery-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.2;
}
.checkout-delivery-copy {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.checkout-delivery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.checkout-delivery-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--ink2);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-body);
}

/* ── Slate mockup: fix class name mismatch ──────────────────────────── */
/* checkout.php uses .checkout-slate-body; CSS had .cs-body */
.checkout-slate-body {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #1e1a16;
  aspect-ratio: 6/8;
}
/* checkout.php uses .cs-wood; CSS had .cs-text */
.cs-wood {
  position: absolute;
  top: 69.5%;
  left: 22%;
  width: 52%;
  z-index: 5;
  text-align: center;
}
/* Photo placeholder when no image */
.cs-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.2);
}

/* ── Slate preview img (replaces CSS mockup in checkout sidebar) ─────── */
.checkout-slate-img-wrap {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: #2C2825;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-slate-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
}

/* ── Mobile: summary card at top + collapsible ────────────────────────── */
@media (max-width: 800px) {
  .checkout-shell {
    display: flex;
    flex-direction: column;
  }
  .checkout-summary-card {
    order: -1;
  }
  /* Collapsible summary toggle */
  .checkout-summary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    padding: 0 0 14px;
    cursor: pointer;
    font: inherit;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
  }
  .checkout-summary-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  .checkout-summary-toggle-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    font-family: var(--font-body);
  }
  .checkout-summary-toggle-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .checkout-summary-toggle-chevron {
    width: 16px;
    height: 16px;
    color: var(--ink3);
    transition: transform 0.22s ease;
    flex-shrink: 0;
  }
  .checkout-summary-toggle-chevron.is-open {
    transform: rotate(180deg);
  }
  .checkout-summary-body {
    display: none;
  }
  .checkout-summary-body.is-open {
    display: block;
  }
}
/* On desktop hide the toggle, always show body */
@media (min-width: 801px) {
  .checkout-summary-toggle { display: none; }
  .checkout-summary-body { display: block !important; }
}

#checkout-express-paypal-container {
  z-index: 1;
} 