/* Instant-buy "Guaranteed" lane — visual identity: soft premium white,
   near-black ink, grey secondary, subtle borders, deep teal used sparingly. */

/* "Guaranteed" badge — the one teal moment per surface. */
.pm-cb-guar {
  background: rgba(14, 124, 116, 0.10);
  color: #0e7c74;
  border: 1px solid rgba(14, 124, 116, 0.28);
  font-weight: 700;
}

/* Supplier product-form: guaranteed section two-column inputs. */
.ib-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .ib-form-grid { grid-template-columns: 1fr; }
}

/* Homepage lane: a quiet container that lets the teal badges carry it. */
.ib-lane .pm-grid { margin-top: 4px; }

/* Checkout page. */
.ib-checkout { max-width: 1120px; }
.ib-head { margin-bottom: 24px; }
.ib-head h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
  color: #161616;
}
.ib-head .muted { color: #6b6b6b; margin: 0 0 8px; }
.ib-promise {
  display: inline-block;
  margin: 4px 0 0;
  padding: 8px 12px;
  border: 1px solid #ececea;
  border-radius: 999px;
  background: #fff;
  color: #161616;
  font-size: 13.5px;
  font-weight: 600;
}
.ib-place { margin-top: 16px; font-size: 16px; padding: 12px 20px; }
.ib-skip-note { margin-top: 8px; }

.ib-summary .ib-sum-product {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid #ececea;
}
.ib-summary .ib-sum-product img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ececea;
  background: #fafaf9;
}
.ib-sum-name { font-weight: 700; color: #161616; font-size: 14.5px; }

/* PDP buy-now note under the primary button. */
.ib-guar-note { margin: -2px 0 8px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .ib-place { transition: none; }
}

/* ===== Cart + 3-path buying (2026-09-28) ===== */
.pdp-buypath{border:1px solid var(--pm-line);border-radius:14px;padding:12px;margin-bottom:12px;background:#fff}
.pdp-buypath-head{font-weight:700;font-size:14px;margin-bottom:8px}
.pdp-sample-line{font-size:13.5px;margin-bottom:8px;color:var(--pm-ink)}
.pdp-cartform .pdp-qtyrow{display:flex;gap:8px;align-items:center}
.pdp-cartform .pdp-qtyrow label{font-size:13px;color:var(--pm-muted);display:flex;align-items:center;gap:8px}
.pdp-cartform input[type=number]{border:1px solid var(--pm-line);border-radius:10px;padding:8px 8px;font-size:14px}
.pdp-lowstock{display:inline-block;background:#fff4e5;border:1px solid #f5c97b;color:#9a5b00;font-weight:700;font-size:13px;border-radius:999px;padding:4px 12px;margin:6px 0}
/* Cart page */
.cart-page .cart-layout{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:start}
.cart-line{display:flex;gap:12px;border:1px solid var(--pm-line);border-radius:14px;padding:12px;margin-bottom:12px;background:#fff;align-items:center}
.cart-line img{width:84px;height:84px;object-fit:cover;border-radius:10px;border:1px solid var(--pm-line)}
.cart-line-info{flex:1;min-width:0}
.cart-line-name{font-weight:600;color:var(--pm-ink);text-decoration:none}
.cart-line-ctl{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.cart-qty{display:flex;align-items:center;gap:8px;border:1px solid var(--pm-line);border-radius:999px;padding:2px 6px}
.cart-qty button{border:0;background:none;font-size:18px;cursor:pointer;padding:0px 8px;color:var(--pm-ink)}
.cart-qty span{min-width:28px;text-align:center;font-weight:700}
.cart-line-total{font-size:16px}
.cart-line-bad{opacity:.85;border-style:dashed}
.linklike{border:0;background:none;color:var(--pm-muted);cursor:pointer;font-size:13px;text-decoration:underline}
.cart-summary{border:1px solid var(--pm-line);border-radius:16px;padding:20px;background:#fff;position:sticky;top:96px}
.cart-summary h3{margin:0 0 12px}
.cart-sum-row{display:flex;justify-content:space-between;margin-bottom:8px}
.co-group{border:1px solid var(--pm-line);border-radius:14px;padding:12px;margin-bottom:12px;background:#fff}
.co-group h4{margin:0 0 8px;font-size:14px}
.co-line{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.co-line img{width:48px;height:48px;object-fit:cover;border-radius:8px;border:1px solid var(--pm-line)}
.co-line div{flex:1}
.co-row{display:flex;justify-content:space-between;font-size:13.5px;color:var(--pm-muted);margin-top:4px}
.co-row.co-total{font-size:15px;color:var(--pm-ink);border-top:1px solid var(--pm-line);padding-top:8px;margin-top:8px}
@media (max-width:900px){.cart-page .cart-layout{grid-template-columns:1fr}.cart-summary{position:static}}

/* Header cart icon + Post RFQ link */
.pm-hdr-cart{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--pm-line);border-radius:999px;color:var(--pm-ink);text-decoration:none;background:#fff}
.pm-hdr-cart svg{width:20px;height:20px}
.pm-hdr-cart-n{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;border-radius:999px;background:#16161a;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px}
.pm-hdr-rfq{display:inline-flex;align-items:center;gap:4px;font-size:14px;font-weight:600;color:var(--pm-ink);text-decoration:none;border:1px solid var(--pm-line);border-radius:999px;padding:8px 12px;background:#fff;white-space:nowrap}
.pm-hdr-rfq:hover{border-color:#16161a}
@media (max-width:640px){.pm-hdr-rfq{display:none}}

/* Supplier stock alerts */
.stock-flag{display:inline-block;font-size:11px;font-weight:700;border-radius:999px;padding:0px 8px;margin-left:4px;white-space:nowrap}
.stock-out{background:#fee2e2;color:#991b1b}
.stock-low{background:#fef3c7;color:#92400e}
.stock-ready{background:#e6f4f2;color:#0e7c74}
.stock-alerts .alert{border-radius:12px;padding:8px 12px;margin-bottom:8px;font-size:13.5px}
.stock-alerts .alert-danger{background:#fef2f2;border:1px solid #fecaca}
.stock-alerts .alert-warning{background:#fffbeb;border:1px solid #fde68a}
