/*
 * PeptaLux Batch 2 v5 — LIGHT purchase funnel (cart, checkout, my-account).
 * (Filename is historical — the dark funnel was replaced by Matt's
 * light-commit direction 2026-07-08: light backgrounds everywhere, navy
 * only in hero/footer anchors, #0053E1 for CTAs and accents.)
 *
 * Design grammar ported from the approved emails: #f8fafc canvas, white
 * cards, 1px #e5e7eb hairlines, 11px uppercase #9ca3af labels, one accent.
 *
 * HARD RULES unchanged: compliance ack block (.plx-ack-*) and payment
 * gateway internals are never styled beyond their generic containers.
 */

/* ══ Shared light canvas ═════════════════════════════════════════════════ */
body.woocommerce-checkout,
body.woocommerce-cart,
body.woocommerce-account.logged-in {
  background: #f8fafc;
}

body.woocommerce-checkout h1, body.woocommerce-cart h1 { color: #0f172a; }

/* Section headings — quiet caps labels, straight from the emails */
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3,
body.woocommerce-cart .cart-collaterals .cart_totals h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 16px;
}

/* ══ One-page checkout layout (unchanged geometry, light skin) ═══════════ */
body.woocommerce-checkout form.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  grid-template-areas:
    "notices notices"
    "details heading"
    "details review"
    "details .";
  column-gap: 40px;
  align-items: start;
}
body.woocommerce-checkout form.woocommerce-checkout > .woocommerce-NoticeGroup {
  grid-area: notices;
  margin-bottom: 16px;
}
body.woocommerce-checkout form.woocommerce-checkout #customer_details {
  grid-area: details;
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
}
body.woocommerce-checkout form.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout form.woocommerce-checkout #customer_details .col-2 {
  float: none;
  width: 100%;
}
body.woocommerce-checkout form.woocommerce-checkout #order_review_heading {
  grid-area: heading;
}
body.woocommerce-checkout form.woocommerce-checkout #order_review {
  grid-area: review;
  align-self: start;
  position: sticky;
  top: 90px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}
@media (max-width: 991px) {
  body.woocommerce-checkout form.woocommerce-checkout { display: block; }
  body.woocommerce-checkout form.woocommerce-checkout #order_review { position: static; margin-top: 24px; }
}

/* ══ Form fields — light, email-grade ════════════════════════════════════ */
body.woocommerce-checkout form .form-row label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 4px;
}
body.woocommerce-checkout form .form-row input.input-text,
body.woocommerce-checkout form .form-row textarea,
body.woocommerce-checkout form .form-row select,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #0f172a;
  padding: 12px 14px;
  min-height: 46px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.woocommerce-checkout form .form-row input.input-text::placeholder,
body.woocommerce-checkout form .form-row textarea::placeholder { color: #9ca3af; }
body.woocommerce-checkout form .form-row input.input-text:focus,
body.woocommerce-checkout form .form-row textarea:focus,
body.woocommerce-checkout form .form-row select:focus {
  border-color: #0053E1;
  box-shadow: 0 0 0 3px rgba(0, 83, 225, 0.15);
  outline: none;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #0f172a;
  line-height: 22px;
}

/* ══ Order summary card ══════════════════════════════════════════════════ */
body.woocommerce-checkout #order_review table.shop_table {
  background: transparent;
  border: 0;
  color: #0f172a;
  width: 100%;
}
body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  color: #374151;
  padding: 12px 4px;
}
body.woocommerce-checkout #order_review table.shop_table td:last-child,
body.woocommerce-checkout #order_review table.shop_table th:last-child { text-align: right; }
body.woocommerce-checkout #order_review tr.order-total td,
body.woocommerce-checkout #order_review tr.order-total th {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  border-top: 2px solid #0f172a;
  border-bottom: 0;
}

/* Payment — generic containers only */
body.woocommerce-checkout #payment { background: transparent; }
body.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid #f0f0f0;
  padding: 0 0 16px;
}
body.woocommerce-checkout #payment ul.payment_methods li { color: #0f172a; }
body.woocommerce-checkout #payment div.payment_box {
  background: #f8fafc;
  color: #374151;
  border-radius: 8px;
}
body.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #f8fafc; }

/* Place Order — unchanged spec */
body.woocommerce-checkout #payment button#place_order {
  width: 100%;
  min-height: 56px;
  background: #0053E1;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}
body.woocommerce-checkout #payment button#place_order:hover { background: #0042B4; transform: translateY(-1px); }

/* Compliance ack — wrapper card on the light canvas */
body.woocommerce-checkout .plx-ack-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

/* Notices */
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message {
  background: #f8faff;
  border-left: 3px solid #0053E1;
  border-top: 0; border-right: 0; border-bottom: 0;
  color: #374151;
  border-radius: 0 6px 6px 0;
}
body.woocommerce-checkout .woocommerce-error {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  color: #7f1d1d;
}

/* ══ Cart page — light card system + 390px overflow fix ══════════════════ */
body.woocommerce-cart .peptalux-cart-layout table.shop_table {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #0f172a;
}
body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
  background: transparent;
  border-color: #f0f0f0 !important;
  color: #374151;
}
body.woocommerce-cart table.shop_table a { color: #0f172a; font-weight: 600; }
body.woocommerce-cart table.shop_table a:hover { color: #0053E1; }
body.woocommerce-cart .cart-collaterals .cart_totals {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  color: #0f172a;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: #0053E1;
  color: #ffffff;
  border-radius: 8px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: #0042B4; }
body.woocommerce-cart input.qty {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #0f172a;
}
@media (max-width: 600px) {
  body.woocommerce-cart .peptalux-cart-layout { overflow-x: hidden; }
  body.woocommerce-cart table.shop_table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.woocommerce-cart table.shop_table td { min-width: 72px; }
  body.woocommerce-cart .peptalux-cart-actions-row { flex-wrap: wrap; gap: 10px; }
}

/* ══ My Account (logged-in) — light cards, cobalt active states ══════════ */
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
  list-style: none;
}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 10px 14px;
  color: #374151;
  border-left: 3px solid transparent;
  border-radius: 6px;
  text-decoration: none;
}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li a:hover {
  color: #0053E1;
  border-left-color: #0053E1;
  background: #f8faff;
}
body.woocommerce-account.logged-in .woocommerce-orders-table {
  background: #ffffff;
  color: #374151;
}
body.woocommerce-account.logged-in .woocommerce-orders-table th {
  background: #f8fafc;
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
body.woocommerce-account.logged-in .woocommerce-orders-table td { border-color: #f0f0f0; }
body.woocommerce-account.logged-in .woocommerce-orders-table tr:nth-child(even) td { background: #fafafa; }
body.woocommerce-account.logged-in .portal-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #374151;
}
body.woocommerce-account.logged-in .portal-card h4 { color: #0f172a; }
body.woocommerce-account.logged-in .portal-card a { color: #0053E1; }

/* ══ Order received — light, matches the email ═══════════════════════════ */
body.woocommerce-checkout .plx-order-received__card,
body.woocommerce-checkout .plx-order-received__summary,
body.woocommerce-checkout .plx-order-received__disclaimer {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
body.woocommerce-checkout .plx-order-received__title { color: #0f172a; }
body.woocommerce-checkout .plx-order-received__subtitle { color: #6b7280; }
