/* GREYSAND BUILDERS — WooCommerce surfaces.
 *
 * WooCommerce ships no styles here: its sheets are dequeued, and these rules
 * dress the checkout, the enquiry confirmation and the product page in the
 * approved design language. Prices never appear — the value column says
 * "Price on application" instead.
 */

/* ---------- Shared field styling (checkout + account) ---------------- */
.gsb-checkout .form-row,
.woocommerce-account .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
}
.gsb-checkout label,
.woocommerce-account label {
  font-size: .86rem;
  font-weight: 700;
  color: var(--deep, #105070);
  letter-spacing: .01em;
}
.gsb-checkout .required { color: #b42318; text-decoration: none; }
.gsb-checkout input.input-text,
.gsb-checkout select,
.gsb-checkout textarea,
.woocommerce-account input.input-text,
.woocommerce-account select,
.woocommerce-account textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe4ea;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink, #0f172a);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gsb-checkout input.input-text:focus,
.gsb-checkout select:focus,
.gsb-checkout textarea:focus,
.woocommerce-account input.input-text:focus {
  outline: none;
  border-color: var(--aqua-500, #17a2b8);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, .14);
}
.gsb-checkout .select2-container .select2-selection--single {
  height: auto;
  padding: 8px 0;
  border: 1px solid #dbe4ea;
  border-radius: 12px;
}
.gsb-checkout .woocommerce-input-wrapper { display: block; }
.gsb-checkout .form-row-wide { grid-column: 1 / -1; }

/* ---------- Checkout layout ------------------------------------------ */
.gsb-checkout form.checkout { display: block; }
.gsb-checkout form.checkout::after { content: ''; display: table; clear: both; }
.gsb-checkout #customer_details {
  float: left;
  width: calc(100% - 440px);
  margin-right: 40px;
}
.gsb-checkout #order_review_heading,
.gsb-checkout #order_review { width: 400px; float: right; clear: right; }
.gsb-checkout #order_review_heading { margin: 0 0 10px; }
.gsb-checkout #order_review {
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(16, 80, 112, .08);
  position: sticky;
  top: 96px;
}
@media (max-width: 980px) {
  .gsb-checkout #customer_details { float: none; width: 100%; margin-right: 0; }
  .gsb-checkout #order_review_heading,
  .gsb-checkout #order_review { float: none; width: 100%; }
  .gsb-checkout #order_review { position: static; }
}
.gsb-checkout .woocommerce-billing-fields,
.gsb-checkout .woocommerce-additional-fields {
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
}
.gsb-checkout .woocommerce-billing-fields h3,
.gsb-checkout .woocommerce-additional-fields h3 {
  font-size: 1.15rem;
  margin: 0 0 16px;
}
.gsb-checkout .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 640px) {
  .gsb-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* ---------- Order review table --------------------------------------- */
.gsb-checkout .woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .95rem;
}
.gsb-checkout .woocommerce-checkout-review-order-table .product-name {
  width: auto;
  overflow-wrap: anywhere;
}
.gsb-checkout .woocommerce-checkout-review-order-table .product-total,
.gsb-checkout .woocommerce-checkout-review-order-table td:last-child,
.gsb-checkout .woocommerce-checkout-review-order-table th:last-child {
  width: 152px;
  white-space: normal;
}
.gsb-checkout .woocommerce-checkout-review-order-table th,
.gsb-checkout .woocommerce-checkout-review-order-table td {
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  vertical-align: top;
}
.gsb-checkout .woocommerce-checkout-review-order-table thead th {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted, #64748b);
  border-bottom-color: #dfe8ee;
}
.gsb-checkout .woocommerce-checkout-review-order-table td:last-child,
.gsb-checkout .woocommerce-checkout-review-order-table th:last-child { text-align: right; }
.gsb-checkout .woocommerce-checkout-review-order-table .product-total,
.gsb-checkout .woocommerce-checkout-review-order-table .amount {
  color: var(--deep, #105070);
  font-weight: 700;
}
.gsb-checkout .cart_item .product-name small { color: var(--muted, #64748b); }

/* ---------- Payment box ---------------------------------------------- */
.gsb-checkout #payment {
  background: transparent;
  border-radius: 0;
  margin-top: 8px;
}
.gsb-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  border: none;
}
.gsb-checkout #payment ul.payment_methods li {
  background: var(--sand-bg, #f6f9fb);
  border: 1px solid #e6edf2;
  border-radius: 14px;
  padding: 14px 16px;
}
.gsb-checkout #payment ul.payment_methods li label { font-weight: 800; }
.gsb-checkout #payment .payment_box {
  margin-top: 8px;
  font-size: .9rem;
  color: var(--muted, #64748b);
  background: transparent;
  padding: 0;
}
.gsb-checkout #payment .payment_box::before { display: none; }
.gsb-checkout #payment div.form-row { margin: 0; }
.gsb-checkout #place_order,
.gsb-checkout .button,
.gsb-checkout .wc-proceed-to-checkout a.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--aqua-600, #128fa3), var(--deep, #105070));
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gsb-checkout #place_order:hover,
.gsb-checkout .button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(16, 80, 112, .22); }

/* ---------- Notices --------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  background: #eefaf6;
  border: 1px solid #c7ecdd;
  color: #0d5c43;
  position: relative;
  font-size: .95rem;
}
.woocommerce-error { background: #fef3f2; border-color: #fbd5d1; color: #8a2a20; }
.woocommerce-info { background: #eff8fd; border-color: #cfe8f6; color: #0b5573; }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 13px;
  font-weight: 800;
}
.woocommerce-error::before { content: '!'; }
.woocommerce-info::before { content: 'i'; }
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  float: right;
  width: auto;
  padding: 6px 14px;
  font-size: .85rem;
}

/* ---------- Order received / order details --------------------------- */
.woocommerce-order-received .woocommerce-order,
.woocommerce-order-details,
.woocommerce-customer-details {
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
}
.woocommerce-order-received .woocommerce-thankyou-order-received {
  font-size: 1.4rem;
  color: var(--deep, #105070);
  margin: 0 0 6px;
}
.woocommerce-order-received ul.woocommerce-thankyou-order-details {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0;
  padding: 0;
}
.woocommerce-order-received ul.woocommerce-thankyou-order-details li {
  background: var(--sand-bg, #f6f9fb);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: .86rem;
  color: var(--muted, #64748b);
}
.woocommerce-order-received ul.woocommerce-thankyou-order-details li strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  color: var(--ink, #0f172a);
}
.woocommerce-table--order-details { width: 100%; border-collapse: collapse; }
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
}
.woocommerce-table--order-details tfoot td:last-child { text-align: right; font-weight: 700; }

/* ---------- Account tables (behind the dashboard shell) -------------- */
.woocommerce-account .woocommerce-MyAccount-navigation { display: none; }
.woocommerce-account .woocommerce-MyAccount-content { width: 100%; }
.woocommerce-account table.shop_table,
.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.woocommerce-account table.shop_table th,
.woocommerce-orders-table th {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted, #64748b);
  text-align: left;
  padding: 12px 14px;
  background: var(--sand-bg, #f6f9fb);
}
.woocommerce-account table.shop_table td,
.woocommerce-orders-table td { padding: 14px; border-bottom: 1px solid #eef2f6; }
.woocommerce-account .woocommerce-Button,
.woocommerce-account button.button {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--aqua-600, #128fa3);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Product page --------------------------------------------- */
.shop-main .mz-shell { gap: 26px; }
.single-product .sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2f6; font-size: .92rem; }
.single-product .sum-row b { color: var(--deep, #105070); }
.single-product .field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 6px; }
.single-product input[type=number] { width: 100%; padding: 12px 14px; border: 1px solid #dbe4ea; border-radius: 12px; }

/* Summary rows used by the cart page's aside. */
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2f6; font-size: .93rem; }
.sum-row b { color: var(--deep, #105070); }
.sum-box h3 { margin-bottom: 6px; }

/* The approved page sheets style every `table th` with an aqua gradient bar —
   right for spec tables in the page body, wrong inside WooCommerce tables that
   already have their own header rules. Neutralise it here only. */
.gsb-checkout .woocommerce-checkout-review-order-table th,
.gsb-checkout .woocommerce-checkout-review-order-table thead th,
.gsb-enquiry-table th,
.woocommerce-account table.shop_table th,
.woocommerce-table--order-details th {
  background: none;
  color: var(--muted, #64748b);
  font-family: inherit;
  font-weight: 600;
}
.gsb-checkout .woocommerce-checkout-review-order-table thead th,
.gsb-enquiry-table th { color: var(--muted, #64748b); }
.gsb-checkout .woocommerce-checkout-review-order-table tfoot th { color: var(--deep, #105070); font-weight: 700; }

/* The approved sheets give every table `min-width: 640px` so spec tables keep
   their columns on a phone. WooCommerce tables sit in narrow columns, so they
   opt out and wrap instead. */
.gsb-checkout .woocommerce-checkout-review-order-table,
.gsb-enquiry-table,
.woocommerce-account table.shop_table,
.woocommerce-table--order-details,
.woocommerce table.shop_table { min-width: 0; }

.gsb-checkout .woocommerce-checkout-review-order-table .price-on-request {
  font-size: .9rem;
  line-height: 1.35;
}


/* ── Paying an invoice ─────────────────────────────────────────────────────
   On the enquiry checkout the order summary is a sticky column beside the
   form. On the invoice payment page it is the page, so it takes the middle of
   the screen instead of floating to the right of nothing. */
body.woocommerce-order-pay .gsb-checkout { max-width: 760px; margin: 28px auto 8px; }
body.woocommerce-order-pay .gsb-checkout #order_review_heading,
body.woocommerce-order-pay .gsb-checkout #order_review {
  width: 100%;
  float: none;
  position: static;
}
body.woocommerce-order-pay .gsb-checkout .shop_table { margin-bottom: 18px; }
body.woocommerce-order-pay .shop-main::after { content: ""; display: block; clear: both; }
.gsb-pay-hero-note { max-width: 62ch; }
