/* ============================================================
   WWCB Builder CSS  — single source of truth, no conflicts
   ============================================================ */

/* Base */
#wwcb-builder-root.wwcb-builder { margin-top: 18px; }
/* Never let builder content push the page wider than the viewport */
#wwcb-builder-root { max-width: 100%; overflow-x: clip; }
#wwcb-builder-root .wwcb-panel,
#wwcb-builder-root .wwcb-piececard { max-width: 100%; min-width: 0; overflow-x: clip; box-sizing: border-box; }
.wwcb-wizard { max-width: 980px; margin: 0 auto; }

/* The theme wraps the page in `.wwt` and applies `.wwt * { padding: 0 }`, which
   strips padding from our container rules that aren't prefixed with
   #wwcb-builder-root. Restore it here (higher specificity beats the reset), and
   give things a little more breathing room so the builder doesn't feel cramped. */
#wwcb-builder-root .wwcb-panel { padding: 16px; }
#wwcb-builder-root .wwcb-piececard { padding: 14px; }
#wwcb-builder-root .wwcb-callout { padding: 11px 13px; }
#wwcb-builder-root .wwcb-totalbar { padding: 13px 15px; }
#wwcb-builder-root .wwcb-pricehint { padding: 13px 15px; }
#wwcb-builder-root .wwcb-field input,
#wwcb-builder-root .wwcb-field select { padding: 10px 12px !important; }
#wwcb-builder-root .wwcb-stack { gap: 18px; }
.wwcb-header { margin-bottom: 10px; }
.wwcb-title { font-size: 20px; font-weight: 700; }
.wwcb-subtitle { font-size: 13px; color: #666; margin-top: 4px; }
.wwcb-req { color: #b00020; font-weight: 700; }

/* Stepper */
#wwcb-builder-root .wwcb-stepper { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:12px 0 14px 0; }
#wwcb-builder-root .wwcb-stepper-steps { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
#wwcb-builder-root .wwcb-stepper-price { display:inline-flex; align-items:baseline; gap:6px; background:#f8f8f6; border:1px solid #e6e6e6; border-radius:999px; padding:7px 16px; }
#wwcb-builder-root .wwcb-stepper-price-label { font-size:11px; color:#666; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; }
#wwcb-builder-root .wwcb-stepper-price-value { font-size:15px; font-weight:800; color:#111; }
#wwcb-builder-root .wwcb-step { border:1px solid #ddd; background:#fff; border-radius:999px; padding:8px 12px; display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-size:inherit; line-height:normal; width:auto; height:auto; box-sizing:border-box; }
#wwcb-builder-root .wwcb-step .num { width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; border:1px solid #ddd; font-size:12px; flex-shrink:0; box-sizing:border-box; }
#wwcb-builder-root .wwcb-step .lbl { font-size:13px; }
#wwcb-builder-root .wwcb-step.active { background:#EFBC6C; border-color:#111; }
#wwcb-builder-root .wwcb-step.active .lbl { color:#111; }
#wwcb-builder-root .wwcb-step.active .num { background:#fff; border-color:#111; color:#111; }
#wwcb-builder-root .wwcb-step.done { background:rgba(239,188,108,0.25); border-color:#ddd; opacity:1; }

/* Panels */
.wwcb-panel { border:1px solid #e6e6e6; background:#fff; border-radius:12px; padding:14px; margin-top:12px; }
.wwcb-callout { margin-top:12px; padding:10px 12px; border-radius:10px; background:#fafafa; border:1px solid #eee; font-size:13px; }
.wwcb-stack { display:flex; flex-direction:column; gap:12px; }

/* Dimension grid (Step 2) */
.wwcb-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
@media (max-width:900px) { .wwcb-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px)  { .wwcb-grid { grid-template-columns:1fr; } }

/* Fields */
.wwcb-field label { display:block; font-size:12px; color:#444; margin-bottom:6px; }
.wwcb-field input,
.wwcb-field select { width:100%; border:1px solid #ddd; border-radius:10px; background:#fff; box-sizing:border-box; height:44px; font-size:14px; line-height:1.2; padding:10px; }
.wwcb-field select { -webkit-appearance:menulist; appearance:auto; }

/* Required asterisks removed per design — everything in the builder is required */
#wwcb-builder-root .wwcb-req { display: none; }

/* Section headers — light treatment: stylized mono caps in Dark Forest with a
   Forest-green bottom hard line to delineate each section (brand colors). */
#wwcb-builder-root .wwcb-sectionhead {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 2px 0 14px 0;
  padding: 0 0 7px 0;
  background: transparent;
  color: #3A3D35;                     /* Dark Forest text */
  font-family: "Zilla Slab", Georgia, serif;
  font-size: 13.2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  border: 0;
  border-bottom: 2px solid #697357;   /* Forest hard line */
  border-radius: 0;
}

/* ============================================================
   DESCRIPTION INFO CARDS
   ============================================================ */
/* Row wrapper — desktop: side-by-side; mobile: stacked */
#wwcb-builder-root .wwcb-stylecards-row,
#wwcb-builder-root .wwcb-speciescards-row,
#wwcb-builder-root .wwcb-finishcards-row,
#wwcb-builder-root .wwcb-shippingcards-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
}

#wwcb-builder-root .wwcb-style-infocard,
#wwcb-builder-root .wwcb-species-infocard,
#wwcb-builder-root .wwcb-finish-infocard,
#wwcb-builder-root .wwcb-shipping-infocard {
  flex: 0 0 140px;
  background: #eaf3f8;
  border: 1px solid #c8dfe8;
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}
#wwcb-builder-root .wwcb-style-infocard-headline,
#wwcb-builder-root .wwcb-species-infocard-headline,
#wwcb-builder-root .wwcb-finish-infocard-headline,
#wwcb-builder-root .wwcb-shipping-infocard-headline {
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 6px 0;
  color: #111;
}
#wwcb-builder-root .wwcb-style-infocard-body,
#wwcb-builder-root .wwcb-species-infocard-body,
#wwcb-builder-root .wwcb-finish-infocard-body,
#wwcb-builder-root .wwcb-shipping-infocard-body {
  color: #444;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   SELECTION CARDS — hide native radios
   ============================================================ */
/* Collapse the hidden input to 1px. The Divi theme applies a global
   input{width:100%}; without this the absolutely-positioned radios balloon to
   the panel width and, escaping their static-positioned cards, push the whole
   page wider than the viewport (horizontal overflow on mobile). */
.wwcb-stylecard input,
.wwcb-speciescard input,
.wwcb-finishcard input {
  position:absolute; opacity:0; pointer-events:none;
  width:1px !important; height:1px; left:0; top:0; margin:0; padding:0;
}

/* Shared card base */
.wwcb-stylecard,
.wwcb-speciescard,
.wwcb-finishcard {
  position: relative; /* contain the absolute hidden input */
  display: block;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wwcb-stylecard-inner,
.wwcb-speciescard-inner,
.wwcb-finishcard-inner { display:flex; flex-direction:column; }

/* Images */
.wwcb-stylecard-img  { aspect-ratio:16/10; background:#f6f6f6; overflow:hidden; }
.wwcb-speciescard-img,
.wwcb-finishcard-img { aspect-ratio:1/1; background:#f6f6f6; overflow:hidden; }
.wwcb-stylecard-img img,
.wwcb-speciescard-img img,
.wwcb-finishcard-img img { width:100%; height:100%; object-fit:cover; display:block; }

/* Labels */
.wwcb-stylecard-label,
.wwcb-speciescard-label,
.wwcb-finishcard-label { padding:8px 10px; font-size:13px; font-weight:700; text-align:center; }

/* Selected state */
.wwcb-stylecard:has(input:checked),
.wwcb-speciescard:has(input:checked),
.wwcb-finishcard:has(input:checked) {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,.12);
  background: rgba(239,188,108,0.3);
}
.wwcb-stylecard:has(input:checked) .wwcb-stylecard-inner,
.wwcb-speciescard:has(input:checked) .wwcb-speciescard-inner,
.wwcb-finishcard:has(input:checked) .wwcb-finishcard-inner {
  background: rgba(239,188,108,0.3);
}

/* ============================================================
   DESKTOP card grids (601px+)
   ============================================================ */
@media (min-width: 601px) {
  #wwcb-builder-root .wwcb-stylecards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    flex: 1;
  }
  #wwcb-builder-root .wwcb-speciescards,
  #wwcb-builder-root .wwcb-finishcards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    flex: 1;
  }
  #wwcb-builder-root .wwcb-stylecard-img  { height: 90px; aspect-ratio: auto; }
  #wwcb-builder-root .wwcb-speciescard-img,
  #wwcb-builder-root .wwcb-finishcard-img { height: 78px; aspect-ratio: auto; }
}

/* ============================================================
   MOBILE card grids (600px and below) — 2-up, no horizontal scroll
   ============================================================ */
@media (max-width: 600px) {
  /* Stack: info card on top, grid below */
  #wwcb-builder-root .wwcb-stylecards-row,
  #wwcb-builder-root .wwcb-speciescards-row,
  #wwcb-builder-root .wwcb-finishcards-row {
    flex-direction: column;
  }
  #wwcb-builder-root .wwcb-style-infocard,
  #wwcb-builder-root .wwcb-species-infocard,
  #wwcb-builder-root .wwcb-finish-infocard {
    flex: none;
    width: 100%;
    box-sizing: border-box;
  }

  /* All options across the width, matching the desktop column counts
     (style = 3, species/finish = 4). minmax(0,1fr) lets cards shrink to fit. */
  #wwcb-builder-root .wwcb-stylecards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  #wwcb-builder-root .wwcb-speciescards,
  #wwcb-builder-root .wwcb-finishcards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  /* Smaller labels so 4-across names don't look cramped */
  #wwcb-builder-root .wwcb-speciescard-label,
  #wwcb-builder-root .wwcb-finishcard-label { font-size: 11px; padding: 6px 4px; line-height: 1.2; }
  #wwcb-builder-root .wwcb-stylecard-label { font-size: 12px; padding: 6px 4px; }
}

/* ============================================================
   CUTOUT CARDS
   ============================================================ */
.wwcb-piecegrid { display:grid; grid-template-columns:1fr; gap:12px; }
.wwcb-piececard { border:1px solid #eee; border-radius:12px; padding:12px; background:#fff; }
.wwcb-piececard-title { font-weight:700; margin-bottom:10px; }
#wwcb-builder-root .wwcb-piece-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}
#wwcb-builder-root .wwcb-piece-actions .wwcb-btn {
  font-size: 13px;
  padding: 8px 14px;
}
.wwcb-cutouts { margin-top:12px; padding-top:12px; padding-bottom:4px; border-top:1px solid #eee; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.wwcb-cutouts-title { font-size:13px; font-weight:800; color:#111; margin-right:8px; }
.wwcb-check { font-size:14px; font-weight:700; display:inline-flex; align-items:center; gap:10px; padding:6px 8px; border-radius:10px; }
.wwcb-check:hover { background:#fafafa; }
.wwcb-check input[type="checkbox"] { width:18px; height:18px; transform:translateY(1px); }

/* Cutout cards */
#wwcb-builder-root .wwcb-cutoutcards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:stretch; }
#wwcb-builder-root .wwcb-cutoutcard { display:block; width:100%; border:1px solid #e6e6e6; border-radius:12px; overflow:hidden; background:#fff; }
#wwcb-builder-root .wwcb-cutoutcard-img { height:auto; aspect-ratio:16/10; background:#f6f6f6; }
#wwcb-builder-root .wwcb-cutoutcard:has(input:checked) { border-color:#111; box-shadow:0 0 0 2px rgba(0,0,0,.12); background:rgba(239,188,108,0.3); }

/* Edge Profile — matches the Finish/Species info-card + cards pattern */
#wwcb-builder-root .wwcb-edgecards-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
}
#wwcb-builder-root .wwcb-edge-infocard {
  flex: 0 0 140px;
  background: #eaf3f8;
  border: 1px solid #c8dfe8;
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}
#wwcb-builder-root .wwcb-edge-infocard-headline {
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 6px 0;
  color: #111;
}
#wwcb-builder-root .wwcb-edge-infocard-body {
  color: #444;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

/* Two cards: selected photo + change-edge action.
   Sized to match the species/finish cards: a 4-across grid on desktop so each
   card is a quarter-width (the two cards align under the finish cards above);
   two-up on mobile. */
#wwcb-builder-root .wwcb-edgecards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  flex: 1;
}
.wwcb-edgecard2 {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wwcb-edgecard2-inner { display:flex; flex-direction:column; }
/* Square image box, matching the style/species/finish cards. The 1:1 shape and
   object-fit are enforced by fixCardImageContainers() in builder.js (inline
   !important, to beat Divi), so we only set the base look + glyph centering. */
.wwcb-edgecard2-img {
  aspect-ratio:1/1;
  background:#f6f6f6;
  overflow:hidden;
  position:relative;
}
.wwcb-edgecard2-img img { width:100%; height:100%; object-fit:contain; display:block; }
.wwcb-edgecard2-label { padding:8px 10px; font-size:13px; font-weight:700; text-align:center; }

/* Selected photo card highlight (matches finish selected state) */
.wwcb-edgecard2.is-selected {
  border-color:#111;
  box-shadow:0 0 0 2px rgba(0,0,0,.12);
  background:rgba(239,188,108,0.3);
}
.wwcb-edgecard2.is-selected .wwcb-edgecard2-inner { background:rgba(239,188,108,0.3); }

/* Change-edge action card */
button.wwcb-edgecard2-change:hover { border-color:#111; box-shadow:0 0 0 2px rgba(0,0,0,.10); }
/* Pencil sits in a yellow circle (absolute-centered so it survives the
   display:block the JS forces on the box). */
.wwcb-edgecard2-plus {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:56px; height:56px; border-radius:50%;
  background:#EFBC6C; color:#111;
  display:flex; align-items:center; justify-content:center;
  font-size:26px; line-height:1;
}

@media (min-width: 601px) {
  /* 4-across sizing to match species/finish cards; two cards fill two columns. */
  #wwcb-builder-root .wwcb-edgecards { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  #wwcb-builder-root .wwcb-edgecards-row { flex-direction: column; }
  #wwcb-builder-root .wwcb-edge-infocard { flex: none; width: 100%; box-sizing: border-box; }
  /* All three edge cards across the width */
  #wwcb-builder-root .wwcb-edgecards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #wwcb-builder-root .wwcb-edgecard2-label { font-size: 11px; padding: 6px 4px; line-height: 1.2; }
}

/* Review */
.wwcb-review { margin-top:12px; border-top:1px solid #eee; padding-top:12px; }
.wwcb-review-title { font-weight:700; margin-bottom:8px; }
.wwcb-review-row { display:flex; justify-content:space-between; gap:12px; font-size:13px; padding:6px 0; border-bottom:1px dashed #eee; }
.wwcb-review-row:last-child { border-bottom:0; }

/* Buttons */
#wwcb-builder-root .wwcb-row { display:flex; gap:12px; flex-wrap:wrap; }
#wwcb-builder-root .wwcb-row-center { justify-content:center; margin-top:12px; }
#wwcb-builder-root .wwcb-actions { display:flex; gap:10px; flex-wrap:wrap; }
#wwcb-builder-root .wwcb-btn { border:1px solid #111; background:#111; color:#fff; border-radius:999px; padding:10px 22px; font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; line-height:normal; width:auto; height:auto; box-sizing:border-box; white-space:nowrap; font-family:inherit; letter-spacing:normal; text-transform:none; }
#wwcb-builder-root .wwcb-btn.secondary { background:#fff; color:#111; }
/* When .wwcb-btn is an <a> (e.g. Request Custom Quote), Divi's link/:visited
   color otherwise muddies the text — pin white across every link state. */
#wwcb-builder-root a.wwcb-btn,
#wwcb-builder-root a.wwcb-btn:link,
#wwcb-builder-root a.wwcb-btn:visited,
#wwcb-builder-root a.wwcb-btn:hover,
#wwcb-builder-root a.wwcb-btn:focus,
#wwcb-builder-root a.wwcb-btn:active { color:#fff; text-decoration:none; }
#wwcb-builder-root a.wwcb-btn.secondary,
#wwcb-builder-root a.wwcb-btn.secondary:visited { color:#111; }
/* Request Custom Quote — the brand primary CTA (Rebel Yell), not flat black. */
#wwcb-builder-root a.wwcb-btn-quote,
#wwcb-builder-root a.wwcb-btn-quote:link,
#wwcb-builder-root a.wwcb-btn-quote:visited { background:#F1582C; border-color:#F1582C; color:#fff; }
#wwcb-builder-root a.wwcb-btn-quote:hover,
#wwcb-builder-root a.wwcb-btn-quote:focus,
#wwcb-builder-root a.wwcb-btn-quote:active { background:#d9491f; border-color:#d9491f; color:#fff; }
#wwcb-builder-root .wwcb-btn:disabled { opacity:0.5; cursor:not-allowed; }
#wwcb-builder-root .wwcb-btn::after { content:none !important; }
/* Loading state (Add to Cart) — keep the button solid, show a spinner */
#wwcb-builder-root .wwcb-btn.is-loading,
#wwcb-builder-root .wwcb-btn.is-loading:disabled { opacity:1; cursor:default; }
#wwcb-builder-root .wwcb-btn .wwcb-spinner {
  display:inline-block; width:15px; height:15px; margin-right:9px; flex:none;
  border:2px solid rgba(255,255,255,0.35); border-top-color:#fff; border-radius:50%;
  animation: wwcb-spin 0.7s linear infinite;
}
@keyframes wwcb-spin { to { transform: rotate(360deg); } }
#wwcb-builder-root .wwcb-nav { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:14px; }
#wwcb-builder-root .wwcb-step2-actionsbar { display:flex; gap:10px; flex-wrap:nowrap; align-items:center; margin-bottom:12px; }

/* Visualizer */
#wwcb-builder-root .wwcb-dimrow { display:flex; flex-direction:row; align-items:stretch; gap:12px; margin-bottom:12px; min-width:0; }
/* min-width:0 lets the canvas (a replaced element whose intrinsic buffer size
   would otherwise act as a min-width) shrink below its buffer width, so it
   can't force the piece card wider than the viewport on mobile. */
#wwcb-builder-root .wwcb-visualizer-wrap { flex:0 0 220px; min-width:0; max-width:100%; background:#f8f8f6; border:1px solid #e6e6e6; border-radius:12px; overflow:hidden; display:flex; align-items:stretch; justify-content:stretch; min-height:160px; }
#wwcb-builder-root .wwcb-visualizer-canvas { display:block; min-width:0 !important; width:100% !important; max-width:100% !important; height:100% !important; }
#wwcb-builder-root .wwcb-dimgrid { flex:1; min-width:0; align-content:start; }
@media (max-width:600px) {
  #wwcb-builder-root .wwcb-dimrow { flex-direction:column; }
  #wwcb-builder-root .wwcb-visualizer-wrap { flex:none; width:100%; height:160px; min-height:0; }
}

/* Price */
.wwcb-pricebottom { margin-top:14px; }
.wwcb-pricehint { border:1px solid #eee; background:#fafafa; border-radius:12px; padding:12px 14px; font-size:13px; color:#444; }
.wwcb-totalbar { border:1px solid #e6e6e6; background:#fff; border-radius:12px; padding:12px 14px; display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.wwcb-totalbar-label { font-size:12px; color:#666; }
.wwcb-totalbar-value { font-size:20px; font-weight:800; }
.wwcb-totalbar-note { font-size:12px; color:#666; }
.wwcb-totalbar-retail { font-weight:600; color:#697357; text-decoration:line-through; text-decoration-thickness:2px; font-size:16px; margin-right:9px; }
.wwcb-trade-off { display:inline-block; margin-left:6px; background:#EFBC6C; color:#181818; font-weight:700; font-size:10px; letter-spacing:.04em; text-transform:uppercase; padding:2px 7px; border-radius:999px; vertical-align:middle; }

/* Errors / Success */
.wwcb-error { margin-top:12px; border:1px solid #ffd1d1; background:#fff5f5; border-radius:12px; padding:12px 14px; }
.wwcb-error ul { margin:8px 0 0 18px; }
/* End Grain over-max: inline note + quote CTA, shown under the dimensions. */
.wwcb-maxnote { margin-top:12px; border:1px solid #eadfae; background:#fdf7e6; border-radius:12px; padding:12px 14px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 14px; }
.wwcb-maxnote-text { font-size:13px; line-height:1.4; flex:1 1 60%; min-width:220px; }
.wwcb-success { margin-top:12px; border:1px solid #d8f5d8; background:#f3fff3; border-radius:12px; padding:12px 14px; }

/* Added-to-cart banner — appears at top of builder below stepper */
.wwcb-success-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: #f3fff3;
  border: 1px solid #7ecf7e;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.wwcb-success-banner-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wwcb-success-banner-check {
  font-size: 18px;
  color: #2a7a2a;
  line-height: 1;
}
.wwcb-success-banner-msg {
  font-weight: 700;
  font-size: 15px;
  color: #1a4a1a;
}
.wwcb-success-banner-link {
  font-size: 13px;
  font-weight: 600;
  color: #2a7a2a;
  text-decoration: underline;
  white-space: nowrap;
}
.wwcb-success-banner-link:hover { color: #1a4a1a; }
.wwcb-success-banner-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #888;
  line-height: 1;
  padding: 2px 4px;
  flex-shrink: 0;
}
.wwcb-success-banner-dismiss:hover { color: #333; }

/* ============================================================
   CUTOUT CARDS — 3-col full-width grid (matches species pattern)
   ============================================================ */
#wwcb-builder-root .wwcb-cutoutcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#wwcb-builder-root .wwcb-cutoutcard {
  position: relative; /* contain the absolute hidden input */
  display: block;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#wwcb-builder-root .wwcb-cutoutcard input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px !important; height: 1px; left: 0; top: 0; margin: 0; padding: 0;
}
#wwcb-builder-root .wwcb-cutoutcard-img {
  height: 78px;
  background: #f6f6f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#wwcb-builder-root .wwcb-cutoutcard-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Selected state — class-based (checkbox) + :has fallback */
#wwcb-builder-root .wwcb-cutoutcard.is-selected,
#wwcb-builder-root .wwcb-cutoutcard:has(input:checked) {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,.12);
  background: rgba(239,188,108,0.3);
}
#wwcb-builder-root .wwcb-cutoutcard.is-selected .wwcb-speciescard-inner,
#wwcb-builder-root .wwcb-cutoutcard:has(input:checked) .wwcb-speciescard-inner {
  background: rgba(239,188,108,0.3);
}

/* Mobile: keep the 3-up grid (no horizontal scroll) */
@media (max-width: 600px) {
  #wwcb-builder-root .wwcb-cutoutcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #wwcb-builder-root .wwcb-cutoutcard-img { height: 96px !important; }
}

/* ============================================================
   LEAD TIME CARDS — 2-col full-width grid (matches species pattern)
   ============================================================ */
#wwcb-builder-root .wwcb-leadtimecards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#wwcb-builder-root .wwcb-leadtimecard {
  position: relative; /* contain the absolute hidden input */
  display: block;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#wwcb-builder-root .wwcb-leadtimecard input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px !important; height: 1px; left: 0; top: 0; margin: 0; padding: 0;
}
#wwcb-builder-root .wwcb-leadtimecard-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  text-align: center;
}
#wwcb-builder-root .wwcb-leadtimecard-title { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
#wwcb-builder-root .wwcb-leadtimecard-dots  { margin-bottom: 8px; white-space: nowrap; }
/* Shrink the 10 dots on mobile so they stay on one line in the narrow cards
   (dots carry inline sizing, so override with !important). */
@media (max-width: 600px) {
  #wwcb-builder-root .wwcb-leadtimecard-dots span { width: 8px !important; height: 8px !important; margin: 0 1.5px !important; }
}
#wwcb-builder-root .wwcb-leadtimecard-time  { font-size: 13px; color: #555; }
/* Selected state */
#wwcb-builder-root .wwcb-leadtimecard.is-selected,
#wwcb-builder-root .wwcb-leadtimecard:has(input:checked) {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0,0,0,.12);
  background: rgba(239,188,108,0.3);
}
#wwcb-builder-root .wwcb-leadtimecard.is-selected .wwcb-leadtimecard-inner,
#wwcb-builder-root .wwcb-leadtimecard:has(input:checked) .wwcb-leadtimecard-inner {
  background: rgba(239,188,108,0.3);
}
#wwcb-builder-root .wwcb-leadtime-endgrain-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 4px;
}

/* Mobile: keep the 2-up grid (no horizontal scroll) */
@media (max-width: 600px) {
  #wwcb-builder-root .wwcb-leadtimecards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   SHIPPING CARDS — info card on the left + 4-col grid (matches Finish)
   ============================================================ */
@media (min-width: 601px) {
  #wwcb-builder-root .wwcb-shippingcards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    flex: 1;
  }
  #wwcb-builder-root .wwcb-shippingcards .wwcb-speciescard-img { height: 78px; aspect-ratio: auto; }
}
@media (max-width: 600px) {
  #wwcb-builder-root .wwcb-shippingcards-row { flex-direction: column; }
  #wwcb-builder-root .wwcb-shipping-infocard { flex: none; width: 100%; box-sizing: border-box; }
  #wwcb-builder-root .wwcb-shippingcards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  /* Smaller font + tighter padding so long names like "Residential" wrap
     between words instead of breaking mid-word in the narrow 4-across cards. */
  #wwcb-builder-root .wwcb-shippingcards .wwcb-speciescard-label { font-size: 10px; padding: 6px 2px; line-height: 1.25; }
}
