/* ── LEDC Price Widget v1.6.3 ── */

.pw-widget *,
.pw-widget *::before,
.pw-widget *::after { box-sizing: border-box; margin: 0; padding: 0; }

.pw-widget {
  font-family: inherit;
  color: #111111;
  width: 100%;
}

.pw-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  overflow: hidden;
  width: 100%;
}

/* ─────────────────────────────
   Top bar
───────────────────────────── */
.pw-topbar {
  background: #0d4d2e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 50px;
  gap: 10px;
}

/* Left: checkmark + company + label */
.pw-acct-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.pw-acct-left--guest {
  justify-content: flex-start;
}

.pw-acct-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.pw-acct-check svg {
  width: 20px;
  height: 20px;
}

.pw-company-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-acct-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.pw-acct-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

/* Right: VIEW + toggle */
.pw-acct-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pw-view-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  color: #ffffff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 11px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: background 0.13s;
}

.pw-view-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

/* VAT toggle */
.pw-vat-toggle {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.2);
  border-radius: 5px;
  padding: 2px;
  gap: 1px;
}

.pw-vat-btn {
  background: transparent;
  border: none;
  border-radius: 3px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 11px;
  transition: background 0.13s, color 0.13s;
  white-space: nowrap;
  line-height: 1;
}

.pw-vat-btn.is-active {
  background: #ffffff;
  color: #0d4d2e;
}

/* ─────────────────────────────
   Price row
───────────────────────────── */
.pw-price-row {
  display: flex;
  align-items: stretch;
}

.pw-col-list {
  background: #f7f8f7;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 220px;
  padding: 18px 16px 20px 18px;
}

.pw-col-divider {
  width: 1px;
  background: #e8e8e8;
  flex-shrink: 0;
}

.pw-col-your {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 16px 20px 18px;
}

/* Column label */
.pw-col-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #999999;
  line-height: 13px;
}

.pw-your-label {
  color: #0d4d2e;
}

.pw-vat-mode-label {
  font-style: normal;
  font-weight: 500;
  color: #999999;
  text-transform: none;
  letter-spacing: 0;
}

/* List price */
.pw-list-ex {
  font-size: 22px;
  font-weight: 600;
  color: #888888;
  line-height: 1.2;
}

.pw-list-ex-label {
  font-size: 11px;
  font-weight: 500;
  color: #bbbbbb;
  line-height: 1;
}

/* Your price */
.pw-your-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pw-save-pill {
  background: #0d4d2e;
  border-radius: 20px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
}

.pw-your-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.pw-your-price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0d4d2e;
  line-height: 1.1;
}

.pw-off-tag {
  font-size: 10px;
  font-weight: 600;
  color: #aaaaaa;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  align-self: flex-end;
  margin-bottom: 3px;
  line-height: 1;
}

.pw-saving {
  font-size: 13px;
  font-weight: 700;
  color: #1a7a3c;
  line-height: 1.3;
}

.pw-saving:empty,
[hidden] { display: none; }

/* ─────────────────────────────
   Stock strip
───────────────────────────── */
.pw-stock-strip {
  background: #f0f9f3;
  border-top: 1px solid #d4e8da;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 14px;
  min-height: 42px;
  gap: 8px;
}

.pw-stock-strip--out {
  background: #fdf2f2;
  border-top-color: #f0d0d0;
}

.pw-stock-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pw-stock-indicator { flex-shrink: 0; }

.pw-stock-halo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d6f0e0;
}

.pw-stock-strip--out .pw-stock-halo { background: #fad8d8; }

.pw-stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a8f3c;
  display: block;
}

.pw-stock-strip--out .pw-stock-dot { background: #dc2626; }

/* Out-of-stock circled-X icon */
.pw-stock-strip--out { padding-top: 10px; padding-bottom: 10px; }

.pw-stock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.pw-stock-icon--out { background: #dc2626; }

.pw-stock-icon svg { width: 15px; height: 15px; }

.pw-stock-copy {
  font-size: 13px;
  font-weight: 500;
  color: #1a5c35;
  line-height: 1.4;
}

.pw-stock-strip--out .pw-stock-copy { color: #b91c1c; }

.pw-stock-copy strong { font-weight: 700; }

/* Two-line out-of-stock copy */
.pw-stock-copy--out {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pw-stock-copy--out strong {
  font-size: 14px;
  color: #b91c1c;
}

.pw-stock-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: #8a6d6d;
}

/* Two-line copy on the green strip (backorder / delivery-exception products) */
.pw-stock-copy--stacked {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pw-stock-copy--stacked strong { font-size: 14px; }

.pw-stock-copy--stacked .pw-stock-sub { color: #4a7c5d; }

/* Extra vertical padding whenever the copy is two lines */
.pw-stock-strip--stacked {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ─────────────────────────────
   Trade account CTA (guests)
───────────────────────────── */
.pw-trade-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 16px;
  padding: 16px;
  background: #f3f8f4;
  border: 1px solid #d9e8df;
  border-radius: 8px;
}

.pw-trade-cta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0d4d2e;
}

.pw-trade-cta-icon svg { width: 24px; height: 24px; }

.pw-trade-cta-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pw-trade-cta-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pw-trade-cta-title {
  font-size: 15px;
  font-weight: 700;
  color: #0d4d2e;
  line-height: 1.2;
}

.pw-trade-cta-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #0d4d2e;
  background: #d9e8df;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}

.pw-trade-cta-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: #4a5a50;
  margin: 0;
}

.pw-trade-cta-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  justify-content: center;
}

.pw-trade-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0d4d2e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  padding: 9px 14px;
  white-space: nowrap;
  transition: background 0.15s;
}

.pw-trade-cta-link:hover { background: #028144; }

.pw-trade-cta-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.pw-trade-cta-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #4a5a50;
}

.pw-trade-cta-note svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ─────────────────────────────
   Warehouse label
───────────────────────────── */
.pw-warehouse {
  font-size: 11px;
  font-weight: 500;
  color: #999999;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────────────────
   Qty row
───────────────────────────── */
.pw-qty-row {
  background: #f9f9f9;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 14px;
  height: 64px;
  gap: 12px;
}

.pw-qty-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pw-qty-label {
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  white-space: nowrap;
}

.pw-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
  height: 36px;
  width: 108px;
}

.pw-step-btn {
  background: transparent;
  border: none;
  color: #888888;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  height: 36px;
  width: 36px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s;
  font-family: inherit;
}

.pw-step-btn:hover { background: #f3f3f3; }

.pw-step-val {
  border: none;
  border-left: 1px solid #d8d8d8;
  border-right: 1px solid #d8d8d8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  text-align: center;
  width: 36px;
  height: 36px;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.pw-step-val::-webkit-outer-spin-button,
.pw-step-val::-webkit-inner-spin-button { -webkit-appearance: none; }

.pw-subtotal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.pw-subtotal-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #999999;
  line-height: 1;
}

.pw-subtotal-price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #111111;
  line-height: 1.2;
}

/* ─────────────────────────────
   Action buttons (outside card)
───────────────────────────── */
.pw-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 0 0;
  background: transparent;
}

.pw-btn {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
  justify-content: center;
  height: 44px;
  padding: 0 10px;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}

.pw-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pw-btn:hover { opacity: 0.85; }

.pw-btn-cart {
  background: #0d4d2e;
  border: 1.5px solid #0d4d2e;
  color: #ffffff;
}

.pw-btn-quote {
  background: #ffffff;
  border: 2.5px solid #028144;
  color: #0d4d2e;
}

.pw-btn-speak {
  background: #ffffff;
  border: 1.5px solid #d8d8d8;
  color: #333333;
}

.pw-btn--loading { opacity: 0.6; pointer-events: none; }
.pw-btn--added   { background: #1a8f46 !important; border-color: #1a8f46 !important; color: #fff !important; }

/* ─────────────────────────────
   Responsive
───────────────────────────── */
/* Theme's breadcrumb is white-space:nowrap — on phones the full trail
   (category path + long product name) forces the page wider than the
   viewport, so everything pans sideways. Let it wrap on small screens. */
@media (max-width: 700px) {
  nav.woocommerce-breadcrumb { white-space: normal !important; }
}

@media (max-width: 520px) {
  .pw-acct-label   { display: none; }
  .pw-acct-divider { display: none; }
  .pw-col-list     { flex: 0 0 160px; }
  .pw-your-price   { font-size: 24px; }
  .pw-actions      { grid-template-columns: 1fr; }

  /* Trade CTA: icon + text on top row, full-width button below */
  .pw-trade-cta        { flex-wrap: wrap; }
  .pw-trade-cta-body   { flex: 1 1 0; min-width: 180px; }
  .pw-trade-cta-action { flex: 1 1 100%; align-items: stretch; }
  .pw-trade-cta-link   { justify-content: center; text-align: center; white-space: normal; }
  .pw-trade-cta-note   { justify-content: center; }
}

/* ─────────────────────────────
   Guest footer
───────────────────────────── */
.pw-guest-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px 0;
  font-size: 12px;
  font-weight: 500;
  color: #777777;
}

.pw-guest-foot svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ─────────────────────────────
   Speak to Us overlay  (v2 premium)
───────────────────────────────── */

.pw-speak-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* display:flex above overrides [hidden]'s display:none — restore it */
.pw-speak-overlay[hidden] { display: none !important; }
.pw-speak-overlay.is-visible {
  opacity: 1;
}

/* ── Modal shell ── */
.pw-speak-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transform: scale(0.94) translateY(6px);
  transition: transform 0.22s cubic-bezier(.22,.61,.36,1), opacity 0.22s ease;
  opacity: 0;
}
.pw-speak-overlay.is-visible .pw-speak-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ── Dark green header band ── */
.pw-speak-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0d4d2e;
  padding: 22px 20px 22px 24px;
}
.pw-speak-head-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.pw-speak-head-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1;
}
.pw-speak-head-sub svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Close button (in header) ── */
.pw-speak-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.pw-speak-close:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
.pw-speak-close svg {
  width: 14px;
  height: 14px;
}

/* ── Body padding ── */
.pw-speak-body {
  padding: 24px 24px 20px;
}

/* ── 2-column contact grid ── */
.pw-speak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.pw-speak-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 14px 16px;
  border: 1.5px solid #e4e9e7;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #f8faf9;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pw-speak-option:hover {
  border-color: #0d4d2e;
  background: #fff;
  box-shadow: 0 2px 10px rgba(13,77,46,0.1);
  text-decoration: none;
  color: inherit;
}

/* Icon circle */
.pw-speak-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d4d2e;
  color: #fff;
  flex-shrink: 0;
}
.pw-speak-option-icon svg {
  width: 20px;
  height: 20px;
}
.pw-speak-option-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a9187;
}
.pw-speak-option-value {
  font-size: 13px;
  font-weight: 600;
  color: #0d4d2e;
  line-height: 1.3;
  word-break: break-word;
}

/* ── Divider ── */
.pw-speak-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #b0bfb8;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.pw-speak-divider::before,
.pw-speak-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e9e7;
}

/* ── Live chat button ── */
.pw-speak-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 20px;
  background: #0d4d2e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  position: relative;
}
.pw-speak-chat-btn:hover {
  background: #0a3d24;
  transform: translateY(-1px);
  opacity: 1;
}
.pw-speak-chat-btn:active {
  transform: translateY(0);
}
.pw-speak-chat-btn svg {
  width: 18px;
  height: 18px;
}
.pw-speak-arrow {
  margin-left: auto;
  width: 14px !important;
  height: 14px !important;
  opacity: 0.7;
}

/* Pulsing online dot */
.pw-speak-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pw-pulse 1.8s infinite;
}
@keyframes pw-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  60%  { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* Response time note */
.pw-speak-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  color: #3a3a3a;
  line-height: 1.4;
}

/* ── Mobile ── */
@media (max-width: 380px) {
  .pw-speak-grid { grid-template-columns: 1fr; }
  .pw-speak-option { flex-direction: row; text-align: left; padding: 14px 16px; }
  .pw-speak-option-icon { width: 38px; height: 38px; }
}

/* ─────────────────────────────
   Superseded product / replacement card
───────────────────────────── */
.pw-super-band {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff7e6;
  border-bottom: 1px solid #f0dfb8;
  padding: 14px 16px;
}

.pw-super-icon { flex-shrink: 0; display: flex; }
.pw-super-icon svg { width: 22px; height: 22px; }

.pw-super-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pw-super-copy strong { font-size: 14.5px; font-weight: 700; color: #7a5200; line-height: 1.3; }
.pw-super-copy span { font-size: 12.5px; color: #8a6d3b; }

.pw-rep-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 16px 16px;
  padding: 14px;
  border: 1px solid #d9e8df;
  border-radius: 8px;
  background: #f3f8f4;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pw-rep-card:hover {
  border-color: #0d4d2e;
  box-shadow: 0 2px 8px rgba(13, 77, 46, 0.12);
}

.pw-rep-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-rep-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pw-rep-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.pw-rep-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0d4d2e;
}

.pw-rep-name { font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.35; }
.pw-rep-sku { font-size: 12px; color: #777777; }
.pw-rep-price { font-size: 15px; font-weight: 700; color: #0d4d2e; }
.pw-rep-price small { font-size: 11px; font-weight: 500; color: #999999; }

.pw-rep-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0d4d2e;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 9px 14px;
}

.pw-rep-cta svg { width: 15px; height: 15px; }

.pw-rep-fallback {
  margin: 14px 16px 16px;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13.5px;
  color: #444444;
}

.pw-rep-fallback p { margin: 0 0 6px; }
.pw-rep-fallback p:last-child { margin-bottom: 0; }

@media (max-width: 520px) {
  .pw-rep-card { flex-wrap: wrap; }
  .pw-rep-cta { flex: 1 1 100%; justify-content: center; }
}
