/* Checkout + cart, rebuilt to the mypeptideslab look with our own CSS.
   Own markup styling only — no lifted code or assets. */

body.woocommerce-checkout .zy-wp-page,
body.woocommerce-cart .zy-wp-page { max-width: 1240px; }

body.woocommerce-checkout .zy-wp-title,
body.woocommerce-cart .zy-wp-title {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ---------------- layout: form left, summary right ---------------- */
form.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  align-items: start;
}
form.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; }
form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; align-self: start; }
@media (max-width: 900px) {
  form.woocommerce-checkout { grid-template-columns: 1fr; grid-template-rows: none; }
  form.woocommerce-checkout #customer_details,
  form.woocommerce-checkout #order_review_heading,
  form.woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
}

/* Woo's internal 2-col split inside customer details: stack it */
#customer_details.col2-set .col-1, #customer_details.col2-set .col-2 {
  float: none;
  width: 100%;
}
#customer_details::after { content: ""; display: block; clear: both; }

/* default Woo section headings are replaced by numbered steps (site.js) */
#customer_details h3 { display: none; }
.woocommerce-billing-fields > h3 { display: none; }

/* numbered step headings */
h2.zy-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  margin: 30px 0 16px;
}
h2.zy-step:first-child { margin-top: 0; }
h2.zy-step::before {
  content: attr(data-step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* ---------------- fields ---------------- */
.woocommerce form .form-row { padding: 0; margin: 0 0 14px; }
.woocommerce form .form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #5c6f8b;
  margin-bottom: 5px;
  display: inline-block;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  background: #fff;
  padding: 13px 15px;
  font-size: 15px;
  color: #0a0a0a;
  line-height: 1.3;
  box-shadow: none;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
  outline: 2px solid #bbf263;
  outline-offset: 0;
  border-color: #a9d94f;
}
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #e2556b; }
.select2-container--default .select2-selection--single {
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  height: 47px;
  padding: 8px 6px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 45px; }

/* two-up name row keeps Woo's own first/last split */
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48.5%; }

/* ---------------- payment ---------------- */
#payment { background: transparent !important; border-radius: 0; }
#payment ul.payment_methods {
  padding: 0 !important;
  border-bottom: none !important;
  list-style: none;
}
#payment ul.payment_methods li {
  border: 1px solid #e2e6ee;
  border-radius: 12px;
  padding: 15px 17px;
  margin-bottom: 10px;
  background: #fff;
}
#payment ul.payment_methods li label { font-weight: 700; color: #0a0a0a; font-size: 15px; display: inline; }
#payment div.payment_box {
  background: #f5f7fa !important;
  border-radius: 10px;
  color: #5c6f8b !important;
  font-size: 13.5px;
  margin-top: 10px;
}
#payment div.payment_box::before { content: none !important; }

/* lime CTA — the mypeptideslab accent */
#payment #place_order,
.woocommerce #payment button#place_order {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: #bbf263;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 800;
  padding: 17px 24px;
  margin-top: 16px;
  transition: filter 0.15s;
}
#payment #place_order:hover { filter: brightness(0.95); background: #bbf263; color: #0a0a0a; }

.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: #5c6f8b; }
.woocommerce-privacy-policy-text p { font-size: 12.5px; color: #8a97ab; margin-top: 12px; text-align: center; }

/* ---------------- order summary card ---------------- */
#order_review_heading {
  font-size: 19px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
#order_review {
  background: #fff;
  border: 1px solid #e2e6ee;
  border-radius: 16px;
  padding: 24px;
}
.woocommerce table.shop_table {
  border: none;
  margin: 0;
  border-radius: 0;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td {
  border: none;
  border-bottom: 1px solid #eef1f6;
  padding: 11px 0;
  font-size: 14.5px;
  color: #0a0a0a;
  background: transparent;
}
.woocommerce table.shop_table thead { display: none; }
.woocommerce table.shop_table td.product-name { font-weight: 600; }
.woocommerce table.shop_table tr.order-total td, .woocommerce table.shop_table tr.order-total th {
  font-size: 17px;
  font-weight: 800;
  border-bottom: none;
}
.woocommerce table.shop_table tfoot th { font-weight: 600; color: #5c6f8b; }

/* coupon toggle above the form */
.woocommerce-form-coupon-toggle .woocommerce-info { background: #f5f7fa !important; font-size: 14px; padding: 12px 16px !important; }
/* WooCommerce core puts a font-icon glyph here via ::before + left padding,
   meant for cart/checkout notices in general; it reads as a stray icon
   next to the coupon toggle text so it's switched off here. */
.woocommerce-form-coupon-toggle .woocommerce-info::before { content: none !important; display: none !important; }
form.checkout_coupon { border: 1px solid #e2e6ee !important; border-radius: 12px !important; }
form.checkout_coupon .button { border-radius: 999px; background: #0a0a0a; color: #fff; }

/* ---------------- cart page ---------------- */
body.woocommerce-cart table.shop_table { border: 1px solid #e2e6ee; border-radius: 16px; overflow: hidden; }
body.woocommerce-cart table.shop_table thead { display: table-header-group; }
body.woocommerce-cart table.shop_table th { background: #f5f7fa; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: #5c6f8b; padding: 12px 14px; }
body.woocommerce-cart table.shop_table td { padding: 14px; vertical-align: middle; }
body.woocommerce-cart td.product-thumbnail img { width: 64px; border-radius: 10px; background: #f4f9ff; }
body.woocommerce-cart .quantity .qty { border: 1px solid #e2e6ee; border-radius: 8px; padding: 8px; width: 64px; }
body.woocommerce-cart .cart_totals { width: 100%; }
body.woocommerce-cart .cart_totals table.shop_table { border-radius: 12px; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block;
  border-radius: 999px;
  background: #bbf263 !important;
  color: #0a0a0a !important;
  font-weight: 800;
  padding: 16px 24px;
  text-align: center;
}
.woocommerce a.button, .woocommerce button.button {
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-weight: 700;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #24303f; color: #fff; }
body.woocommerce-cart .coupon .input-text { border: 1px solid #e2e6ee; border-radius: 8px; padding: 10px 12px; width: 140px; }

/* ---------------- v6 (2026-09-08) ---------------- */
/* name row: flex instead of Woo floats (the floats mis-stacked on phones) */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper { display: flex; flex-wrap: wrap; column-gap: 3%; }
.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row { float: none !important; width: 100%; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48.5% !important; float: none !important; }
@media (max-width: 480px) {
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100% !important; }
}
/* the moved overview card on phones sits between the address and the payment step */
@media (max-width: 900px) {
  #customer_details #order_review_heading { margin-top: 30px; }
  #customer_details #order_review { margin-bottom: 8px; }
}
/* inline coupon */
.zy-coupon { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid #eef1f6; }
.zy-coupon label { display: block; font-size: 13px; font-weight: 600; color: #5c6f8b; margin-bottom: 6px; }
.zy-coupon__row { display: flex; gap: 8px; }
.zy-coupon__row input {
  flex: 1 1 auto; min-width: 0;
  border: 1px solid #e2e6ee; border-radius: 10px; background: #fff;
  padding: 12px 14px; font-size: 15px; color: #0a0a0a; line-height: 1.3;
}
.zy-coupon__row input:focus { outline: 2px solid #bbf263; outline-offset: 0; border-color: #a9d94f; }
.zy-coupon__btn {
  flex: 0 0 auto; border: none; border-radius: 999px; background: #0a0a0a; color: #fff;
  font-size: 14px; font-weight: 800; padding: 0 18px; cursor: pointer;
}
.zy-coupon__btn:hover { background: #24303f; }
.zy-coupon__msg { margin-top: 10px; font-size: 13.5px; }
.zy-coupon__msg .woocommerce-error, .zy-coupon__msg .woocommerce-message, .zy-coupon__msg .woocommerce-info,
.zy-coupon__msg ul { list-style: none; margin: 0; padding: 10px 12px; border-radius: 10px; background: #f5f7fa; border: none; }
.zy-coupon__msg .woocommerce-error::before, .zy-coupon__msg .woocommerce-message::before, .zy-coupon__msg .woocommerce-info::before { content: none; }
.zy-coupon__msg.is-error ul, .zy-coupon__msg .woocommerce-error { background: #fdeef0; color: #b3243a; }
.zy-coupon__msg.is-ok ul, .zy-coupon__msg .woocommerce-message { background: #eefbdc; color: #2e5d05; }
/* the overview heading is an h3; keep it visible once it is moved inside #customer_details on phones */
#customer_details h3#order_review_heading { display: block; }
.zy-coupon__msg.is-error > *, .zy-coupon__msg.is-error li { background: #fdeef0; color: #b3243a; }
.zy-coupon__msg.is-ok > *, .zy-coupon__msg.is-ok li { background: #eefbdc; color: #2e5d05; }
