/* Shared layout contract for the non-reference builders.
   Pallet Rack Builder remains the source of truth for the visual system. */
.prb.bt,
.prb.box-finder {
  --prb-ink: #202b3a;
  --prb-muted: #4c4d57;
  --prb-line: #dce3eb;
  --prb-blue: #24397e;
  --prb-pale: #f4f7fb;
  color: var(--prb-ink);
  background: #fff;
  padding: 0 0 64px;
  font-family: var(--font-body, sans-serif);
}
.prb.bt *,
.prb.box-finder * { box-sizing: border-box; }
.prb.bt button,
.prb.bt select,
.prb.box-finder button,
.prb.box-finder select,
.prb.box-finder input { font-family: inherit; }
.prb .prb-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px clamp(16px, 4vw, 64px);
  margin: 0;
  border-bottom: 1px solid #edf0f4;
  color: #778397;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
}
.prb .prb-crumb a { color: #647187; text-decoration: none; }
.prb .prb-shell { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.prb .prb-title {
  font-family: inherit;
  font-size: clamp(34px, 4.8vw, 86px);
  line-height: 1.05;
  letter-spacing: -.045em;
  color: var(--prb-blue);
  margin: 34px 0 90px;
  font-weight: 850;
}
.prb .prb-intro { max-width: 1240px; margin: 0 auto 28px; text-align: center; }
.prb .prb-intro h2 {
  margin: 0 0 7px;
  color: #253248;
  font-size: clamp(23px, 2.8vw, 31px);
  line-height: 1.2;
  letter-spacing: -.03em;
}
.prb .prb-intro p { margin: 0; color: var(--prb-muted); font-size: 14px; line-height: 1.55; }
.prb .bt-wrap { width: auto; max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.prb .bt-heading { display: block; border: 0; padding: 0; margin: 0; }
.prb .bt-heading-copy { display: contents; }
.prb .bt-heading .bt-eyebrow,
.prb .bt-heading .bt-heading-stamp { display: none; }
.prb .bt-heading h1 { display: none; }
.prb .bt-heading .bt-deck { display: none; }
.prb .bt-workspace,
.prb .bf-workbench {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(370px, .96fr);
  gap: 18px;
  align-items: start;
}
.prb .bt-visual-panel,
.prb .bf-preview-card {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: block;
  position: static;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.prb .bt-controls,
.prb .bf-controls {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.prb .bt-section-title { display: none; }
.prb .bt-options,
.prb .bt-safety-steps { display: grid; gap: 10px; }
.prb .bt-option-group,
.prb .bt-safety-step,
.prb .prb-panel {
  padding: 13px 14px;
  border: 1px solid var(--prb-line);
  border-radius: 5px;
  background: #fff;
}
.prb .bt-option-group { border-bottom: 1px solid var(--prb-line); }
.prb .bt-option-group:last-child { padding-bottom: 13px; border-bottom: 1px solid var(--prb-line); }
.prb .bt-option-group h3,
.prb .bt-safety-step-heading h3 {
  margin: 0 0 9px;
  color: #253248;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.prb .bt-safety-step-heading { margin: 0 0 9px; }
.prb .bt-safety-step-heading b { display: none; }
.prb .bt-fields { gap: 8px 10px; }
.prb .bt-field { gap: 4px; }
.prb .bt-field label,
.prb .bt-field > span,
.prb .bt-label { color: #526174; font-size: 12px; font-weight: 650; }
.prb .bt-field input,
.prb .bt-field select,
.prb .bt-object-control input,
.prb .bt-object-control select {
  min-height: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #cfd7e0;
  border-radius: 3px;
  background: #fff;
  color: #263345;
  font: inherit;
  font-size: 13px;
}
.prb .bt-stepper { height: 34px; background: #fff; border-color: #cbd4df; }
.prb .bt-stepper button { height: 32px; width: 34px; }
.prb .bt-stepper output { font: inherit; font-size: 13px; }
.prb .bt-check { font-size: 12px; }
.prb .bt-control-note { margin: 8px 0 0; padding: 0; border: 0; font-size: 11px; line-height: 1.5; }
.prb .bt-help,
.prb .bt-safety-note { font-size: 11px; line-height: 1.5; }
.prb .bt-object { padding: 9px; background: #fff; }
.prb .bt-object-list { gap: 7px; margin-top: 8px; }
.prb .bt-object-fields { gap: 6px; }
.prb .bt-object-control { gap: 3px; }
.prb .bt-object-control span,
.prb .bt-safety-position strong,
.prb .bt-safety-position label { font-family: inherit; font-size: 10px; }
.prb .bt-safety-position { padding: 7px; background: #fff; }
.prb .bt-safety-position input { height: 32px; font: inherit; font-size: 12px; }
.prb .bt-layout-board { margin-top: 8px; }
.prb .bt-layout-add { margin-top: 8px; padding: 8px; font: inherit; font-size: 12px; }
.prb .bt-visual-head {
  height: auto;
  min-height: 0;
  padding: 0 0 8px;
  border: 0;
}
.prb .bt-visual-head strong { font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.prb .bt-view-label { font-size: 11px; }
.prb .bt-stage {
  height: 390px;
  min-height: 390px;
  flex: none;
  border: 1px solid #e3e6e8;
  border-radius: 4px;
  background: linear-gradient(180deg,#f5f6f7 0 48%,#b4b8ba 48% 100%);
}
.prb .bt-stage-grid { opacity: .4; }
.prb .bt-stage-tools { bottom: 10px; }
.prb .bt-stage-tools button,
.prb .bt-stage-tools span { font-family: inherit; }
.prb.bt-safety .bt-stage { min-height: 390px; aspect-ratio: auto; background: #f5f6f7; }
.prb.bt-safety .bt-scene-host { padding: 8px; }
.prb .bt-safety-plan { min-height: 0; }
.prb .bt-safety-plan text { font-family: var(--font-body, sans-serif); }
.prb .bt-safety-plan .plan-label,
.prb .bt-safety-plan .dimension-label { font-size: 18px; }
.prb .bt-safety-plan .plan-small { font-size: 15px; }
.prb.bt-safety .bt-stage-tools { display: none; }
.prb.bt-safety .bt-stage-foot { display: flex; }
.prb .bt-stage-foot {
  min-height: 34px;
  padding: 8px 4px;
  color: #66717d;
  font: inherit;
  font-size: 11px;
}
.prb .bt-illustration-note { color: #66717d; text-align: right; }
.prb .bt-summary {
  max-width: 1240px;
  margin: 26px auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--prb-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}
.prb .bt-summary-head {
  margin: 0;
  padding: 18px 20px;
  align-items: center;
  background: #f5f7fa;
}
.prb .bt-summary-head .bt-eyebrow { display: none; }
.prb .bt-summary-head h2 { color: #253248; font-size: 22px; letter-spacing: -.02em; }
.prb .bt-summary-head > div:first-child > p:last-child { margin: 4px 0 0; font-size: 12px; }
.prb .bt-summary-status { font: inherit; font-size: 11px; }
.prb .bt-table-wrap { border: 0; }
.prb .bt-table { min-width: 690px; }
.prb .bt-table th,
.prb .bt-table td { padding: 12px 15px; font: inherit; font-size: 13px; border-color: #e9edf2; }
.prb .bt-table th { font-size: 11px; letter-spacing: .07em; }
.prb .bt-table td:first-child { font-weight: 650; }
.prb .bt-eligibility { font: inherit; font-size: 11px; }
.prb .bt-issues { margin: 8px 20px 0; }
.prb .bt-safety-review { margin: 12px 20px; gap: 8px; }
.prb .bt-safety-review article { padding: 10px 12px; }
.prb .bt-safety-review strong { font-size: 12px; }
.prb .bt-safety-review p { font-size: 11px; }
.prb .bt-summary-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin: 0;
  padding: 18px 20px;
  border-top: 0;
}
.prb .bt-disclaimer { max-width: 650px; color: #647185; font-size: 12px; line-height: 1.6; }
.prb .bt-disclaimer strong { color: #647185; }
.prb .bt-buy { min-width: 245px; }
.prb .bt-total { font-size: 12px; color: #657287; }
.prb .bt-total strong { font: inherit; font-size: 26px; font-weight: 750; color: #253247; letter-spacing: -.03em; }
.prb .bt-actions { gap: 9px; margin-top: 10px; }
.prb .bt-button { min-height: 40px; padding: 0 16px; border-radius: 3px; font: inherit; font-size: 13px; font-weight: 750; }
.prb.bt-safety .bt-quote-link-disabled { pointer-events: none; opacity: .45; }
.prb .bt-footer-note { max-width: 1240px; margin: 22px auto 0; color: var(--prb-muted); text-align: left; font-size: 12px; }

/* Box matches retain their distinctive product and physical carton rendering. */
.prb .bf-section-label { display: none; }
.prb .bf-controls.prb-panel {
  padding: 15px;
  border: 1px solid var(--prb-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}
.prb .bf-mode-tabs { margin-bottom: 12px; }
.prb .bf-mode { padding: 9px; }
.prb .bf-dimension-grid { gap: 6px; }
.prb .bf-input-unit { height: 38px; }
.prb .bf-input-unit input { font-size: 15px; }
.prb .bf-filter { margin-top: 12px; }
.prb .bf-filter select { height: 36px; font-size: 13px; }
.prb .bf-control-bottom { margin-top: 12px; padding-top: 10px; }
.prb .bf-preview-card { background: transparent; }
.prb .bf-preview-top { height: 25px; padding: 0 4px 7px; border: 0; }
.prb .bf-stage { height: 390px; border: 1px solid #e3e6e8; border-radius: 4px; background: linear-gradient(180deg,#f5f6f7 0 48%,#b4b8ba 48% 100%); }
.prb .bf-stage-grid { background-image: linear-gradient(#c7cbce 1px,transparent 1px),linear-gradient(90deg,#c7cbce 1px,transparent 1px); }
.prb .bf-preview-foot { height: 34px; padding: 0 4px; }
.prb .bf-results-section {
  max-width: 1240px;
  margin: 26px auto 0;
  padding: 0;
  border: 1px solid var(--prb-line);
  border-radius: 5px;
  overflow: hidden;
}
.prb .bf-results-head {
  margin: 0;
  padding: 18px 20px;
  align-items: center;
  background: #f5f7fa;
}
.prb .bf-results-head .bf-eyebrow { display: none; }
.prb .bf-results-head h2 { color: #253248; font-size: 22px; letter-spacing: -.02em; }
.prb .bf-results-intro { margin: 4px 0 0; font-size: 12px; }
.prb .bf-result-count { border: 0; background: #e7edf4; border-radius: 20px; }
.prb .bf-search-status,
.prb .bf-error,
.prb .bf-empty,
.prb .bf-product-grid,
.prb .bf-pagination,
.prb .bf-bottom-quote { margin-left: 20px; margin-right: 20px; }
.prb .bf-product-grid { margin-top: 14px; }
.prb .bf-bottom-quote { margin-top: 16px; margin-bottom: 16px; }
.prb .bf-pagination { padding: 14px 0; }
.prb .bf-footnote { max-width: 1240px; margin: 18px auto 0; text-align: left; color: var(--prb-muted); font-size: 12px; }

@media (max-width: 900px) {
  .prb .prb-title { margin: 26px 0 40px; }
  .prb .prb-workspace, .prb .bf-workbench { grid-template-columns: 1fr; max-width: 720px; }
  .prb .bt-visual-panel, .prb .bf-preview-card { grid-column: 1; grid-row: 1; }
  .prb .bt-controls, .prb .bf-controls { grid-column: 1; grid-row: 2; }
  .prb .bt-stage, .prb .bf-stage { height: 350px; min-height: 350px; }
  .prb .bt-summary, .prb .bf-results-section { max-width: 720px; }
  .prb .bt-summary-bottom { align-items: flex-start; flex-direction: column; }
  .prb .bt-buy { width: min(100%, 340px); }
  .prb .bf-workbench { gap: 18px; }
}
@media (max-width: 600px) {
  .prb .bt-safety-plan .plan-label,
  .prb .bt-safety-plan .dimension-label { font-size: 28px; }
  .prb .bt-safety-plan .plan-small { font-size: 23px; }
  .prb .prb-crumb { padding: 10px 14px; }
  .prb .prb-shell { padding: 0 14px; }
  .prb .prb-title { font-size: 36px; margin: 24px 0 34px; }
  .prb .prb-intro { margin-bottom: 20px; }
  .prb .prb-intro p { font-size: 13px; }
  .prb .bt-stage, .prb .bf-stage { height: 290px; min-height: 290px; }
  .prb .bt-stage-foot { align-items: flex-start; flex-direction: column; }
  .prb .bt-illustration-note { text-align: left; }
  .prb .bt-summary-head, .prb .bt-summary-bottom { align-items: flex-start; flex-direction: column; }
  .prb .bt-summary-head { padding: 16px; }
  .prb .bt-summary-bottom { padding: 16px; }
  .prb .bt-actions { width: 100%; flex-direction: column; }
  .prb .bt-actions .bt-button { width: 100%; }
  .prb .bt-buy { width: 100%; }
  .prb .bt-safety-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .prb .bt-safety-review { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; }
  .prb .bt-safety-position-grid { grid-template-columns: 1fr; }
  .prb .bf-results-head { align-items: flex-start; flex-direction: column; gap: 8px; padding: 16px; }
  .prb .bf-search-status, .prb .bf-error, .prb .bf-empty, .prb .bf-product-grid,
  .prb .bf-pagination, .prb .bf-bottom-quote { margin-left: 12px; margin-right: 12px; }
  .prb .bf-product-grid { grid-template-columns: 1fr; }
  .prb .bf-bottom-quote { align-items: flex-start; flex-wrap: wrap; padding: 14px; }
  .prb .bf-bottom-quote p { min-width: calc(100% - 56px); }
  .prb .bf-bottom-quote>a { margin-left: 49px; }
  .prb .bf-footnote { margin-top: 16px; }
}
