/* Contemporary Systems Hub — WordPress/WooCommerce-specific overrides.
   Base design system lives in style.css (ported unchanged from the static prototype). */

.empty-state > span[aria-hidden] { display: inline-flex; width: 64px; height: 64px; margin: 0 auto 20px; }

/* ---------- Checkout: billing fields reskinned to match .form-grid ---------- */
.csh-billing-fields .woocommerce-billing-fields > h3,
.csh-billing-fields .woocommerce-additional-fields > h3 { display: none; }
.csh-billing-fields .woocommerce-billing-fields__field-wrapper,
.csh-billing-fields .woocommerce-additional-fields__field-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; grid-column: 1 / -1;
}
.csh-billing-fields .form-row { grid-column: 1 / -1; margin: 0 0 4px; }
.csh-billing-fields .form-row-first, .csh-billing-fields .form-row-last { grid-column: span 1; }
.csh-billing-fields label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 7px; }
.csh-billing-fields label .required { color: #d1455f; text-decoration: none; }
.csh-billing-fields input[type="text"], .csh-billing-fields input[type="email"], .csh-billing-fields input[type="tel"],
.csh-billing-fields select, .csh-billing-fields textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border);
  font-family: var(--font-body); font-size: .92rem; background: #fff; color: var(--ink-900);
}
.csh-billing-fields input:focus, .csh-billing-fields select:focus, .csh-billing-fields textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100);
}
.csh-billing-fields .select2-container .select2-selection--single {
  height: auto !important; border-radius: 10px !important; border: 1px solid var(--border) !important; padding: 11px 16px !important;
}
.csh-billing-fields .select2-selection__arrow { height: 100% !important; }

@media (max-width: 760px) {
  .csh-billing-fields .woocommerce-billing-fields__field-wrapper,
  .csh-billing-fields .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
  .csh-billing-fields .form-row-first, .csh-billing-fields .form-row-last { grid-column: 1 / -1; }
}

/* ---------- Checkout: order review table + payment methods ---------- */
.csh-order-review table.shop_table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.csh-order-review table.shop_table thead { display: none; }
.csh-order-review table.shop_table td, .csh-order-review table.shop_table th {
  padding: 10px 0; font-size: .92rem; color: var(--ink-700); border: none; border-bottom: 1px solid var(--border); text-align: left;
}
.csh-order-review table.shop_table tr:last-child td, .csh-order-review table.shop_table tr:last-child th { border-bottom: none; }
.csh-order-review table.shop_table .order-total th, .csh-order-review table.shop_table .order-total td {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); border-top: 1px solid var(--border); padding-top: 16px;
}
.csh-order-review table.shop_table td.product-total { text-align: right; }

.csh-order-review ul.wc_payment_methods { list-style: none; margin: 20px 0 0; padding: 0; }
.csh-order-review li.wc_payment_method { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.csh-order-review li.wc_payment_method label { font-weight: 600; color: var(--navy-900); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.csh-order-review .payment_box { margin-top: 10px; padding: 12px 14px; background: var(--navy-100); border-radius: 10px; font-size: .85rem; color: var(--ink-700); }
.csh-order-review .payment_box p { margin: 0; }
.csh-order-review .payment_box::before { display: none; }
.csh-order-review .csh-pay-logo { height: 20px; width: auto; }

.csh-order-review #place_order {
  width: 100%; margin-top: 20px; display: block;
  background: var(--green-500); color: #fff; border: none; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 14px 26px;
  box-shadow: var(--shadow-sm); transition: background .15s ease; cursor: pointer;
}
.csh-order-review #place_order:hover { background: var(--green-600); }
.csh-order-review .woocommerce-terms-and-conditions-wrapper { font-size: .78rem; color: var(--ink-500); margin-top: 14px; }

/* ---------- WooCommerce notices ---------- */
ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info,
.woocommerce-message, .woocommerce-info {
  background: var(--green-100); color: var(--green-600); border: none; border-radius: 12px;
  padding: 14px 20px; margin: 0 0 20px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
ul.woocommerce-error, .woocommerce-error { background: #fde8e8; color: #c0392b; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button {
  background: var(--navy-900); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}

/* ---------- Cart quantity control (JS-injected buttons wrap WC's .quantity) ---------- */
.quantity.qty-control { margin: 0; }
.quantity.qty-control .qty { border: none; }

/* ---------- Home hero: center the logo plate and eyebrow ---------- */
.hero .hero-copy .brand-plate { margin-left: auto; margin-right: auto; }
.hero .hero-copy .eyebrow { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

/* ---------- Inline text link (e.g. "MyWaya Farm" on the Services page) ---------- */
.inline-link { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--green-500); }

/* ==========================================================
   Ecosystem positioning (MyWaya Dashboard as the hub)
   ========================================================== */

/* --- Hero: ecosystem stack diagram (lives in .hero-art, dark bg) --- */
.eco-stack { display: flex; flex-direction: column; }
.eco-stack .eco-cap { text-align: center; font-family: var(--font-head); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.eco-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.eco-chip {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md); padding: 14px 6px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .78rem;
}
.eco-chip svg { width: 22px; height: 22px; color: var(--green-400); }
.eco-connector { width: 2px; height: 24px; margin: 4px auto; background: linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.32)); }
.eco-hub {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  border-radius: var(--radius-lg); padding: 22px; text-align: center; color: #fff;
  box-shadow: 0 16px 40px rgba(31,166,113,.35);
}
.eco-hub .eco-hub-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 13px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.eco-hub .eco-hub-icon svg { width: 27px; height: 27px; color: #fff; }
.eco-hub strong { display: block; font-family: var(--font-head); font-size: 1.18rem; }
.eco-hub span { font-size: .82rem; color: rgba(255,255,255,.9); }
.eco-foundation {
  margin-top: 14px; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.24);
  border-radius: var(--radius-md); padding: 13px 16px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
}
.eco-foundation svg { width: 20px; height: 20px; color: var(--amber-400); flex-shrink: 0; }

/* --- "How the ecosystem works" 3-step flow --- */
.eco-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.eco-step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 26px; }
.eco-step.hub { background: linear-gradient(150deg, var(--navy-900), var(--navy-950)); border-color: transparent; color: #fff; box-shadow: var(--shadow-lg); }
.eco-step.hub h4 { color: #fff; }
.eco-step.hub p { color: rgba(255,255,255,.72); }
.eco-step-num { font-family: var(--font-head); font-size: .78rem; font-weight: 700; color: var(--green-600); letter-spacing: .06em; text-transform: uppercase; }
.eco-step.hub .eco-step-num { color: var(--green-400); }
.eco-step-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--green-100); color: var(--green-600); display: flex; align-items: center; justify-content: center; margin: 12px 0 18px; }
.eco-step.hub .eco-step-icon { background: rgba(255,255,255,.12); color: var(--green-400); }
.eco-step-icon svg { width: 28px; height: 28px; }
.eco-step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.eco-step p { font-size: .92rem; margin: 0; }

/* --- Module/foundation tag on the reframed service cards --- */
.service-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px; width: fit-content; }
.service-tag.foundation { background: var(--amber-100); color: #8a5b00; }
.service-tag.module { background: var(--green-100); color: var(--green-600); }
.service-tag svg { width: 13px; height: 13px; }

/* --- Dashboard spotlight band --- */
.eco-dash { background: linear-gradient(135deg, var(--navy-900), var(--navy-950)); border-radius: var(--radius-lg); padding: 48px; color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.eco-dash h2 { color: #fff; margin-bottom: 10px; }
.eco-dash p { color: rgba(255,255,255,.72); }
.eco-dash-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.eco-dash-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.eco-dash-tile svg { width: 24px; height: 24px; color: var(--green-400); }
.eco-dash-tile strong { font-family: var(--font-head); font-size: .92rem; }
.eco-dash-tile span { font-size: .72rem; color: rgba(255,255,255,.55); }

@media (max-width: 1080px) {
  .eco-steps { grid-template-columns: 1fr; }
  .eco-dash { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 420px) {
  .eco-dash-tiles { grid-template-columns: 1fr; }
}

/* Keep icons inside buttons compact */
.btn span[aria-hidden] svg { width: 16px; height: 16px; }

/* --- 360-degree view summary banner --- */
.view360-note {
  max-width: 760px; margin: 40px auto 0; text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; line-height: 1.5;
  color: var(--navy-900); background: var(--green-100); border-radius: var(--radius-lg); padding: 22px 30px;
}
.view360-note strong { color: var(--green-600); }
