/* GREYSAND BUILDERS — theme glue.
 *
 * The approved page bundles carry the design; this sheet only styles markup the
 * WordPress port has to add: the enquiry table on the cart page, long-form copy
 * from the editor, the shop's list view and print output. Nothing here restyles
 * an approved section.
 */

/* Long-form copy coming from the editor (services, projects, posts). */
.rte > * + * { margin-top: 1em; }
.rte h2, .rte h3, .rte h4 { margin-top: 1.4em; }
.rte ul, .rte ol { margin: 0 0 1em 1.2em; }
.rte li + li { margin-top: .4em; }
.rte a { color: var(--aqua-700, #0b6f86); text-decoration: underline; text-underline-offset: 2px; }
.rte img, .rte iframe { max-width: 100%; border-radius: 14px; }
.rte blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--aqua-500, #17a2b8);
  background: var(--sand-bg, #f6f9fb);
  border-radius: 0 12px 12px 0;
}

/* Price rule: the words replace the number, everywhere. */
.price-on-request {
  display: inline-block;
  font-weight: 800;
  color: var(--deep, #105070);
  letter-spacing: .01em;
}
.mz-price small { color: var(--muted, #64748b); font-weight: 600; }

/* --- Enquiry List (WooCommerce cart, Greysand design) ----------------- */
.gsb-enquiry-table { width: 100%; border-collapse: collapse; }
.gsb-enquiry-table th {
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted, #64748b);
  padding: 0 0 10px;
  border-bottom: 1px solid #e2e8f0;
}
.gsb-enquiry-table td {
  padding: 14px 0;
  border-bottom: 1px solid #eef2f6;
  vertical-align: middle;
}
.gsb-enquiry-table td:nth-child(3) { width: 130px; }
.gsb-line { display: flex; gap: 12px; align-items: center; }
.gsb-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 10px;
  background: #f4f8fa;
  flex: 0 0 auto;
}
.gsb-line small { color: var(--muted, #64748b); letter-spacing: .04em; }
.gsb-qty { width: 76px; text-align: center; }
.gsb-remove {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #b42318;
  background: #fef3f2;
  text-decoration: none;
  font-weight: 700;
}
.gsb-remove:hover { background: #fee4e2; }

/* --- Shop: list view -------------------------------------------------- */
.mz-grid.list-view { grid-template-columns: 1fr; gap: 14px; }
.mz-grid.list-view .mz-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.mz-grid.list-view .mz-media { height: 100%; min-height: 170px; }
.mz-grid.list-view .mz-media img { height: 100%; }
.mz-grid.list-view .mz-body { display: flex; flex-direction: column; }
.mz-grid.list-view .mz-actions { margin-top: auto; }
@media (max-width: 720px) {
  .mz-grid.list-view .mz-card { grid-template-columns: 1fr; }
}

/* Wishlist heart once saved. */
.wish-btn.active { color: #e84a72; border-color: #f7c5d3; background: #fff5f8; }
.wish-btn.active svg { fill: currentColor; }

/* --- Print (quotation estimate) --------------------------------------- */
@media print {
  .topbar, .site-header, .universal-header, .p-footer, .cart-fab, .whatsapp-float,
  .qb-steps, .summary-actions, .mz-side, #toast, .modal-bg, .drawer-bg, .cart-drawer { display: none !important; }
  body { background: #fff; }
  .qb-panel { display: block !important; }
  .form-card { box-shadow: none; border: 1px solid #e2e8f0; }
}

/* --- WordPress odds and ends ------------------------------------------ */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  clip: auto !important;
  padding: 10px 14px !important;
  background: #fff;
  color: var(--deep, #105070);
  border-radius: 8px;
  z-index: 100000;
}
img { max-width: 100%; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Approved page chrome: the quotation builder's step pills.
   Done steps are tinted, the step in hand is filled — one dark pill at a time,
   so the current step is never hidden behind a white-on-white label. */
.qb-step-pill.active {
  background: var(--aqua-50, #eef9fc);
  color: var(--deep, #105070);
  border-color: var(--aqua-200, #bfe6ef);
}
.qb-step-pill.current {
  background: var(--deep, #105070);
  color: #fff;
  border-color: var(--deep, #105070);
}
