/* ================================================================
   CHECKOUT PAGE (page-checkout.php)
   Styles moved out of the template (no inline <style>). Tokens: tcn-base.css §0.
   ================================================================ */
/* ═══ TCN WooCommerce Checkout Light Theme ═══ */
/* .woocommerce-checkout .tcn-wc-page gets letterboxed to a narrower
   centered column elsewhere (style.css) -- setting --clr-bg on body too
   (not just .tcn-wc-page below) means the ambient page canvas behind
   that narrower column goes white as well, instead of leaving the
   sitewide dark canvas visible in the gutters on either side. */
body.woocommerce-checkout { --clr-bg: var(--paper); }
.tcn-wc-page {
  --clr-bg: var(--paper);
  min-height: 80vh; background: var(--clr-bg); color: var(--clr-text-main, #0a0a0a);
  padding-top: 100px;
}
.pg-head + .tcn-wc-page { padding-top: 0; }
.tcn-wc-page-inner {
  max-width: 1100px; margin: 0 auto; padding: 20px 5vw 60px;
}

/* ── Empty cart state ── */
.tcn-checkout-empty {
  text-align: center; padding: 80px 20px;
}
.tcn-checkout-empty-icon {
  font-size: 3rem; margin-bottom: 16px; opacity: 0.5;
}
.tcn-checkout-empty p {
  color: var(--clr-text-muted, #6b7280); font-size: 1.1rem; margin-bottom: 24px;
}
.tcn-checkout-empty-btn {
  display: inline-block; padding: 14px 32px; background: var(--clr-text-main, #0a0a0a); color:var(--inverse);
  font-weight: 800; font-size: 0.9rem; border-radius: var(--radius-md, 10px); text-decoration: none;
  transition: background 0.15s;
}
.tcn-checkout-empty-btn:hover { background: var(--clr-primary, #0d9488); }

/* ── Form fields ── */
.tcn-checkout .woocommerce-billing-fields h3,
.tcn-checkout .woocommerce-shipping-fields h3,
.tcn-checkout .woocommerce-additional-fields h3,
.tcn-checkout #order_review_heading {
  font-family: var(--ff-heading, 'Dela Gothic One', sans-serif);
  font-size: 1.1rem; color: var(--clr-text-main, #0a0a0a); margin: 28px 0 16px; text-transform: uppercase; }

.tcn-checkout .form-row label {
  display: block; font-size: 0.75rem; font-weight: 700; color: var(--clr-text-muted, #6b7280);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 6px;
}
.tcn-checkout .form-row .input-text,
.tcn-checkout .form-row select,
.tcn-checkout .form-row textarea {
  width: 100%; padding: 12px 14px; background: rgba(0,0,0,0.02);
  var(--line)); border-radius: var(--radius-sm, 6px); color: var(--clr-text-main, #0a0a0a);
  font-size: 0.95rem; transition: border-color 0.2s;
}
.tcn-checkout .form-row .input-text:focus,
.tcn-checkout .form-row select:focus {
  border-color: var(--clr-primary, #0d9488); outline: none;
}
.tcn-checkout .form-row select option { background: var(--panel); color: var(--clr-text-main, #0a0a0a); }

/* Select2 (if used) */
.tcn-checkout .select2-container--default .select2-selection--single {
  background: rgba(0,0,0,0.02); var(--line));
  border-radius: var(--radius-sm, 6px); height: 44px; color: var(--clr-text-main, #0a0a0a);
}
.tcn-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--clr-text-main, #0a0a0a); line-height: 44px; padding-left: 14px;
}

/* Two column layout */
.tcn-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ── Order review table — a compact horizontal row per item (image
   left, name/meta stacked to its right, price in its own column),
   matching the established pattern the Cart page already uses
   (page-cart.php's .shop_table: 64px thumbnail column + left-aligned
   name column) instead of inventing a different, taller centered-card
   layout for checkout alone. The earlier centered/stacked version read
   as oversized and out of place next to the rest of this page (direct
   feedback: "i still dont like how that looks... all of it. spacing,
   layout, product image, this looks sloppy") — this rebuild goes back
   to the plain, standard checkout-row convention instead of a second
   guess at a fancier one. ── */
.tcn-checkout .woocommerce-checkout-review-order-table {
  width: 100%; border-collapse: collapse; margin-bottom: 24px;
}
.tcn-checkout .woocommerce-checkout-review-order-table th {
  text-align: left; padding: 10px 0; font-size: 0.75rem; font-weight: 700;
  color: var(--clr-text-muted, #6b7280); letter-spacing: 0.06em; text-transform: uppercase;
  var(--line));
}
.tcn-checkout .woocommerce-checkout-review-order-table td {
  padding: 14px 0; var(--line)); color: var(--clr-text-main, #0a0a0a);
  vertical-align: middle;
}
.tcn-checkout .woocommerce-checkout-review-order-table .order-total td {
  color: var(--clr-primary, #0d9488); font-weight: 900; font-size: 1.15rem;
}

/* Payment methods */
.tcn-checkout .wc_payment_methods { list-style: none; padding: 0; margin: 0 0 24px; }
.tcn-checkout .wc_payment_method {
  background: var(--clr-surface, #f7f7f8); var(--line));
  border-radius: var(--radius-md, 10px); padding: 16px; margin-bottom: 8px;
}
.tcn-checkout .wc_payment_method label { color: var(--clr-text-main, #0a0a0a); font-weight: 600; cursor: pointer; }
.tcn-checkout .payment_box { padding: 12px 0 0; color: var(--clr-text-muted, #6b7280); font-size: 0.85rem; }

/* Stripe's "Pay securely with Link" express button — moved here by the
   sync script above to sit with PayPal/Venmo/Pay Later instead of
   dominating the top of the page as its own banner. Just spacing to
   match its new neighbors; the button itself renders inside Stripe's
   own iframe, not something this page's CSS can restyle directly. */
.tcn-checkout #order_review .tcn-express-link-moved {
  margin-top: 10px;
}

/* Place order button */
.tcn-checkout #place_order {
  display: block; width: 100%; padding: 18px; text-align: center;
  background: var(--clr-text-main, #0a0a0a); color:var(--inverse); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.06em; border-radius: var(--radius-md, 10px); border: none; cursor: pointer;
  transition: background 0.15s;
}
.tcn-checkout #place_order:hover { background: var(--clr-primary, #0d9488); }

/* Login / coupon notices */
.tcn-checkout .woocommerce-form-login-toggle .woocommerce-info,
.tcn-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md, 10px); padding: 14px 20px 14px 48px; color: var(--clr-text-muted, #6b7280);
  margin-bottom: 16px;
}
.tcn-checkout .woocommerce-form-login-toggle .woocommerce-info a,
.tcn-checkout .woocommerce-form-coupon-toggle .woocommerce-info a { color: var(--clr-primary, #0d9488); }

.tcn-checkout .woocommerce-form-login,
.tcn-checkout .checkout_coupon {
  background: rgba(0,0,0,0.02); var(--line));
  border-radius: var(--radius-md, 10px); padding: 20px; margin-bottom: 20px;
}
.tcn-checkout .woocommerce-form-login .button,
.tcn-checkout .checkout_coupon .button {
  background: var(--clr-text-main, #0a0a0a); border: 1px solid var(--clr-text-main, #0a0a0a);
  border-radius: var(--radius-sm, 6px); padding: 10px 20px; color:var(--inverse); font-weight: 700;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.tcn-checkout .woocommerce-form-login .button:hover,
.tcn-checkout .checkout_coupon .button:hover { background: var(--clr-primary, #0d9488); border-color: var(--clr-primary, #0d9488); }

/* Terms */
.tcn-checkout .woocommerce-terms-and-conditions-wrapper { color: var(--clr-text-muted, #6b7280); font-size: 0.85rem; }
.tcn-checkout .woocommerce-terms-and-conditions-wrapper a { color: var(--clr-primary, #0d9488); }

/* Notices */
.tcn-checkout .woocommerce-NoticeGroup .woocommerce-error {
  background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-md, 10px); padding: 14px 20px; color: #dc2626; list-style: none; margin-bottom: 16px;
}

/* Privacy */
.tcn-checkout .woocommerce-privacy-policy-text { color: var(--clr-text-muted, #6b7280); opacity: 0.7; font-size: 0.8rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .tcn-checkout .col2-set { grid-template-columns: 1fr; }
}
