/* CBTC RP v0.8.6.0 — scoped, responsive variation selector for generated rack families. */
.variations_form .cbtcrp-frontend {
  --rp-ink: #0d3055; --rp-muted: #597084; --rp-line: #dbe4ec;
  --rp-blue: #315bed; --rp-soft: #f5f8fb;
  border: 1px solid var(--rp-line);
  background: #fff;
  border-radius: 14px;
  padding: clamp(16px, 2.3vw, 26px);
  margin: 0 0 18px;
  color: var(--rp-ink);
  font: inherit;
  box-sizing: border-box;
}
.variations_form .cbtcrp-frontend *, .variations_form .cbtcrp-frontend *::before,
.variations_form .cbtcrp-frontend *::after { box-sizing: border-box; }
.cbtcrp-frontend .cbtcrp-front-eyebrow { display: inline-block; color: var(--rp-blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.cbtcrp-frontend .cbtcrp-front-head h3 { margin: 5px 0 7px; color: var(--rp-ink); font-size: clamp(20px, 1.85vw, 26px); line-height: 1.22; font-weight: 750; }
.cbtcrp-frontend .cbtcrp-front-head p { color: var(--rp-muted); margin: 0 0 18px; font-size: 13px; line-height: 1.6; }
.cbtcrp-frontend .cbtcrp-front-field { padding: 16px 0; border-top: 1px solid var(--rp-line); }
.cbtcrp-frontend .cbtcrp-front-field-header { display: flex; align-items: center; gap: 10px; margin: 0 0 11px; }
.cbtcrp-frontend .cbtcrp-front-step { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px; color: var(--rp-blue); background: #edf1ff; font-weight: 800; font-size: 12px; }
.cbtcrp-frontend .cbtcrp-front-label { font-size: 14px; line-height: 1.4; color: var(--rp-ink); font-weight: 750; }
.cbtcrp-frontend .cbtcrp-front-options { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.cbtcrp-frontend .cbtcrp-front-option {
  margin: 0; appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 47px; min-height: 44px; padding: 8px 13px;
  border: 1px solid #bfcfdf; border-radius: 9px;
  color: var(--rp-ink); background: #fff; font: inherit;
  font-size: 14px; font-weight: 650; line-height: 1.25;
  text-align: center; box-shadow: none; text-transform: none;
  cursor: pointer; transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.cbtcrp-frontend .cbtcrp-front-option:hover:not(:disabled) { border-color: var(--rp-blue); background: #f7f9ff; }
.cbtcrp-frontend .cbtcrp-front-option.is-selected { border-color: var(--rp-blue); background: #eef3ff; box-shadow: 0 0 0 1px var(--rp-blue) inset; color: #153ec3; }
.cbtcrp-frontend .cbtcrp-front-option:focus-visible, .cbtcrp-frontend .cbtcrp-front-clear:focus-visible { outline: 3px solid #99b2ff; outline-offset: 2px; }
.cbtcrp-frontend .cbtcrp-front-option:disabled { opacity: .42; cursor: not-allowed; background: #f2f4f7; color: #738093; border-color: #d5dde5; }
.cbtcrp-frontend .cbtcrp-front-types .cbtcrp-front-option { flex: 1 1 150px; padding: 12px 16px; font-size: 13px; min-height: 50px; }
.cbtcrp-frontend .cbtcrp-front-actions { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.cbtcrp-frontend .cbtcrp-front-clear { border: 0; background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; color: var(--rp-muted); font-size: 12px; cursor: pointer; }
.cbtcrp-frontend .cbtcrp-front-result { border: 1px solid #cbd8e7; background: var(--rp-soft); padding: 15px; border-radius: 11px; }
.cbtcrp-frontend .cbtcrp-front-result-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.cbtcrp-frontend .cbtcrp-front-result-heading strong { font-size: 13px; color: var(--rp-ink); }
.cbtcrp-frontend .cbtcrp-front-sku { font-family: ui-monospace, Consolas, monospace; color: var(--rp-muted); font-size: 11px; }
.cbtcrp-frontend .cbtcrp-front-result-body { display: flex; gap: 14px; align-items: flex-start; }
.cbtcrp-frontend .cbtcrp-front-thumb { width: 96px; flex: 0 0 96px; border: 1px solid var(--rp-line); background: #fff; border-radius: 8px; overflow: hidden; }
.cbtcrp-frontend .cbtcrp-front-thumb[hidden] { display: none !important; }
.cbtcrp-frontend .cbtcrp-front-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.cbtcrp-frontend .cbtcrp-front-facts { min-width: 0; flex: 1 1 0; }
.cbtcrp-frontend .cbtcrp-front-price { font-size: 20px; line-height: 1.35; font-weight: 750; margin: 0 0 12px; color: #123864; }
.cbtcrp-frontend .cbtcrp-front-facts dl { margin: 0; padding: 0; }
.cbtcrp-frontend .cbtcrp-front-facts dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; column-gap: 16px; row-gap: 2px; padding: 7px 0; border-top: 1px solid var(--rp-line); font-size: 12px; }
.cbtcrp-frontend .cbtcrp-front-facts dt { margin: 0; color: var(--rp-muted); font-weight: 450; }
.cbtcrp-frontend .cbtcrp-front-facts dd { margin: 0; color: var(--rp-ink); font-weight: 750; }
.cbtcrp-frontend .cbtcrp-front-notice { color: #705527; background: #fff7e5; border-radius: 6px; margin: 12px 0 0; padding: 8px 10px; font-size: 11px; line-height: 1.5; }
.cbtcrp-frontend .cbtcrp-front-notice[hidden] { display: none !important; }
.cbtcrp-frontend .cbtcrp-front-disclaimer { margin: 12px 0 0; color: var(--rp-muted); font-size: 11px; line-height: 1.55; }
.cbtcrp-frontend .cbtcrp-front-preview-note { margin: 0 0 18px; background: #fff8e9; border: 1px solid #ead3a2; padding: 12px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
/* Hide the classic dropdowns ONLY after JS has made the accessible replacement operational. */
form.variations_form.cbtcrp-ui-ready table.variations { display: none !important; }
form.variations_form.cbtcrp-ui-ready .single_variation .woocommerce-variation-price { display: none !important; }
form.variations_form.cbtcrp-preview-mode .stock.out-of-stock,
form.variations_form.cbtcrp-preview-mode .woocommerce-variation-unavailable,
form.variations_form.cbtcrp-preview-mode .single_variation_wrap { display: none !important; }
@media (max-width: 680px) {
  .variations_form .cbtcrp-frontend { padding: 15px; border-radius: 10px; }
  .cbtcrp-frontend .cbtcrp-front-result-body { gap: 10px; }
  .cbtcrp-frontend .cbtcrp-front-thumb { width: 76px; flex-basis: 76px; }
  .cbtcrp-frontend .cbtcrp-front-price { font-size: 18px; }
  .cbtcrp-frontend .cbtcrp-front-types .cbtcrp-front-option { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cbtcrp-frontend .cbtcrp-front-option { transition: none; }
}
/* Family-level routing. Never leave a stale WooCommerce purchase control active
 * when the six-step selector describes another parent product. */
.cbtcrp-frontend .cbtcrp-front-separator { border-top: 2px solid #dbe4ec; margin: 8px 0 1px; }
.variations_form.cbtcrp-family-pending .single_variation_wrap { display: none !important; }
