:root {
  --blue: #123b68;
  --blue-2: #0054a6;
  --red: #d52027;
  --gray-bg: #f3f3f3;
  --gray-border: #d8d8d8;
  --gray-text: #666;
  --text: #333;
  --white: #fff;
  --green: #22854a;
  --yellow: #f4b73f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--gray-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: var(--blue-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1200px, calc(100% - 30px));
  margin: 0 auto;
}

.top-strip {
  background: #ededed;
  border-bottom: 1px solid #d5d5d5;
  color: #444;
  font-size: 13px;
}

.top-strip .container {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-strip-right {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.store-header {
  background: #fff;
  border-bottom: 1px solid #ccc;
}

.store-header-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.store-logo img {
  display: block;
  width: auto;
  height: 68px;
  max-width: 285px;
  object-fit: contain;
}

.store-header-message {
  border-left: 5px solid var(--red);
  padding: 12px 0 12px 18px;
  color: var(--gray-text);
}

.store-header-message strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 4px;
}

.store-header-message span {
  display: block;
  font-size: 16px;
}

.home-page-content {
  padding-bottom: 34px;
}

.lead-text {
  background: #fff;
  border-bottom: 1px solid var(--gray-border);
}

.lead-text h1 {
  margin: 0 auto;
  padding: 18px 0;
  color: var(--blue);
  text-align: center;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 700;
}

.content-section {
  padding: 18px 0 0;
}

.content {
  background: #fff;
  border: 1px solid var(--gray-border);
  padding: 18px;
}

.builder-intro-copy h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 26px;
}

.builder-intro-copy p {
  margin: 0;
  font-size: 16px;
}

.notice-box {
  background: #fff8e1;
  border: 1px solid #eacb7a;
  border-left: 5px solid var(--yellow);
  color: #5a4611;
  padding: 10px 12px;
  margin: 14px 0;
}

.header-specials {
  color: var(--blue);
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  font-weight: 700;
}

.products-section {
  padding: 18px 0 0;
}

.builder-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  align-items: start;
}

.kit-builder-section > .container {
  width: min(1560px, calc(100% - 30px));
}

.kit-builder-form {
  grid-column: 1;
}

.right-builder-sidebar {
  grid-column: 2;
}

.builder-page-layout.has-ansi-guidance {
  grid-template-columns: 350px minmax(0, 1fr) 350px;
}

.builder-page-layout.has-ansi-guidance .ansi-sidebar {
  grid-column: 1;
}

.builder-page-layout.has-ansi-guidance .kit-builder-form {
  grid-column: 2;
}

.builder-page-layout.has-ansi-guidance .right-builder-sidebar {
  grid-column: 3;
}

.kit-builder-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.builder-block {
  background: #fff;
  border: 1px solid var(--gray-border);
  padding: 18px;
}

.builder-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -18px -18px 16px;
  padding: 11px 14px;
  background: #f7f7f7;
  border-bottom: 1px solid var(--gray-border);
}

.builder-block-title h4 {
  color: var(--blue);
  font-size: 18px;
  margin: 0;
}

.builder-block-title span {
  color: var(--gray-text);
  font-weight: 700;
  font-size: 13px;
}

.block-help {
  color: #555;
  margin: 0 0 14px;
}

.field-grid {
  display: grid;
  column-gap: 14px;
  row-gap: 16px;
  align-items: start;
}

.field-grid > label {
  min-width: 0;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #333;
  align-content: start;
}

.label-text {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-height: 20px;
  line-height: 20px;
}

.label-text span[aria-hidden="true"] {
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 0;
  background: #fff;
  color: #333;
  padding: 9px 10px;
  font: inherit;
}

input,
select {
  height: 40px;
  min-height: 40px;
}

select {
  appearance: auto;
}

input[type="number"] {
  -moz-appearance: textfield;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(18,59,104,.22);
  border-color: var(--blue-2);
}

.full-width-label {
  margin-top: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  background: #fff;
  border: 1px solid #d0d0d0;
  border-top: 4px solid #c9c9c9;
  text-align: left;
  padding: 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  min-height: 150px;
}

.choice-card:hover,
.choice-card.selected {
  border-color: var(--blue-2);
  border-top-color: var(--red);
  background: #f7fbff;
}

.choice-card h3 {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 16px;
}

.choice-card p {
  margin: 0 0 10px;
  color: #555;
}

.choice-card strong {
  display: block;
  color: var(--red);
}

.builder-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
  background: #f6f6f6;
  border: 1px solid #e0e0e0;
}

.builder-toolbar label {
  min-width: 235px;
}

.supply-list {
  border-top: 1px solid #ddd;
}

.supply-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 154px 96px 42px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  border-top: 0;
  background: #fff;
  min-height: 82px;
}

.supply-row:nth-child(even) {
  background: #fafafa;
}

.supply-row h3 {
  margin: 0 0 3px;
  color: #333;
  font-size: 15px;
}

.supply-meta {
  margin: 0;
  color: var(--gray-text);
  font-size: 13px;
}

.qty-control {
  display: grid;
  gap: 5px;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  height: 38px;
  border: 1px solid #bbb;
  background: #fff;
}

.qty-stepper button {
  border: 0;
  background: #eeeeee;
  color: #333;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.qty-stepper button:hover {
  background: #dedede;
}

.qty-stepper input {
  height: 36px;
  min-height: 36px;
  border: 0;
  border-left: 1px solid #bbb;
  border-right: 1px solid #bbb;
  padding: 0 6px;
  text-align: center;
}

.qty-stepper input:focus {
  outline: 2px solid rgba(18,59,104,.22);
  outline-offset: -2px;
}

.remove-item {
  width: 38px;
  height: 38px;
  border: 1px solid #c8c8c8;
  background: #f3f3f3;
  color: #a32222;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.remove-item:hover {
  background: #f8e8e8;
  border-color: #d6a0a0;
}

.remove-item svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.row-price {
  color: var(--red);
  font-weight: 700;
  text-align: right;
}

.btn-primary,
.btn-secondary {
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 40px;
}

.btn-primary {
  background: var(--red);
  border-color: #a9161c;
  color: #fff;
  padding: 11px 18px;
  margin-top: 8px;
}

.btn-primary:hover {
  background: #b71920;
}

.btn-secondary {
  background: #eee;
  border-color: #c8c8c8;
  color: #333;
  padding: 9px 12px;
}

.btn-secondary:hover {
  background: #e1e1e1;
}

.danger-text {
  color: #a32222;
}

.form-status {
  margin-top: 12px;
  font-weight: 700;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #a32222;
}

.quote-summary {
  background: #fafafa;
  border: 1px solid var(--gray-border);
  padding: 14px;
}

.sticky-summary {
  position: sticky;
  top: 18px;
  z-index: 5;
}

.sticky-builder-sidebar {
  position: sticky;
  top: 18px;
  z-index: 5;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ansi-sidebar[hidden] {
  display: none;
}

.right-builder-sidebar {
  display: grid;
  gap: 16px;
  padding-right: 3px;
}

.final-notes-sidebar {
  padding-bottom: 16px;
}

.sidebar-field {
  margin-top: 12px;
}

.final-notes-sidebar textarea {
  min-height: 96px;
}

.compact-notice {
  font-size: 12px;
  margin-bottom: 8px;
}

.sidebar-submit {
  width: 100%;
}

.quote-summary dl {
  margin: 0;
}

.quote-summary dl > div {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid #e5e5e5;
  padding: 8px 0;
}

.quote-summary dt {
  color: var(--gray-text);
}

.quote-summary dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}


.muted {
  color: var(--gray-text);
  font-size: 13px;
  margin: 0;
}

.footer-help p {
  margin: 0 0 8px;
}

.store-footer {
  background: #333;
  color: #fff;
  border-top: 5px solid var(--blue);
  padding: 24px 0;
}

.store-footer .container {
  display: grid;
  gap: 4px;
}

.store-footer span {
  color: #ddd;
}

@media (max-width: 1040px) {
  .builder-page-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .store-header-inner,
  .builder-page-layout,
  .field-grid.two,
  .field-grid.three,
  .choice-grid,
  .supply-row {
    grid-template-columns: 1fr;
  }

  .store-header-inner {
    gap: 12px;
    padding: 14px 0;
  }

  .store-header-message {
    border-left: 0;
    border-top: 4px solid var(--red);
    padding: 12px 0 0;
  }

  .store-header-message strong {
    font-size: 22px;
  }

  .sticky-summary {
    position: static;
    order: -1;
  }

  .row-price {
    text-align: left;
  }

  .remove-item {
    justify-self: start;
  }
}

@media (max-width: 650px) {
  .top-strip .container,
  .top-strip-right,
  .builder-block-title {
    display: block;
  }

  .top-strip span,
  .top-strip a {
    display: block;
    padding: 3px 0;
  }

  .store-logo img {
    height: 56px;
  }

  .lead-text h1 {
    font-size: 20px;
  }
}



/* Quantity row polish - cache-bust patch */
.supply-list {
  display: grid;
  gap: 10px;
  border-top: 0;
}

.supply-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px 100px 42px;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border: 1px solid #d5d5d5;
  border-left: 5px solid #c9c9c9;
  background: #fff;
  min-height: 88px;
}

.supply-row:nth-child(even) {
  background: #fbfbfb;
}

.supply-row.has-quantity {
  border-left-color: var(--red);
  background: #fffdfd;
}

.supply-info h3,
.supply-row h3 {
  margin: 0 0 4px;
  color: #333;
  font-size: 15px;
}

.supply-meta {
  margin: 0;
  color: var(--gray-text);
  font-size: 13px;
}

.qty-control {
  display: grid;
  gap: 6px;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  height: 38px;
  border: 1px solid #bcbcbc;
  background: #fff;
}

.qty-stepper button {
  border: 0;
  background: #eeeeee;
  color: #333;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.qty-stepper button:hover {
  background: #dedede;
}

.qty-stepper input {
  height: 36px;
  min-height: 36px;
  border: 0;
  border-left: 1px solid #bcbcbc;
  border-right: 1px solid #bcbcbc;
  padding: 0 5px;
  text-align: center;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.remove-item {
  width: 38px;
  height: 38px;
  border: 1px solid #c8c8c8;
  background: #f4f4f4;
  color: #a32222;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.remove-item:hover {
  background: #f8e8e8;
  border-color: #d6a0a0;
}

.remove-item svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

@media (max-width: 900px) {
  .supply-row {
    grid-template-columns: 1fr;
  }

  .row-price {
    text-align: left;
  }

  .remove-item {
    justify-self: start;
  }
}



/* Product search / API product list */
.product-toolbar {
  align-items: end;
}

.product-search-field {
  flex: 1 1 360px;
  min-width: 280px;
}

.product-status {
  min-height: 22px;
  margin: 0 0 10px;
  color: var(--gray-text);
  font-size: 13px;
}

.product-status.error {
  color: #a32222;
  font-weight: 700;
}

.product-status.success {
  color: var(--green);
  font-weight: 700;
}

.supply-row {
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.supply-row .supply-sku {
  color: var(--blue);
  font-weight: 700;
}

.empty-products {
  background: #fff;
  border: 1px dashed #bfbfbf;
  padding: 18px;
  color: var(--gray-text);
}

.empty-products strong {
  color: var(--blue);
}

@media (max-width: 900px) {
  .product-search-field {
    min-width: 0;
  }
}


/* ANSI Class A / B selection guidance */
.ansi-guidance {
  margin-top: 0;
  border: 1px solid #b8cada;
  border-left: 5px solid var(--blue-2);
  background: #f7fbff;
  padding: 15px;
}

.ansi-guidance[hidden] {
  display: none;
}

.ansi-guidance-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
}

.ansi-eyebrow {
  display: block;
  color: var(--gray-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ansi-guidance-heading h5 {
  color: var(--blue);
  font-size: 18px;
  line-height: 1.25;
  margin: 2px 0 0;
}

.ansi-class-badge,
.ansi-product-badge,
.ansi-b-only-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.ansi-class-badge {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
}

.ansi-guidance-intro {
  color: #44576a;
  margin: 0 0 12px;
}

.ansi-progress-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #d6e1eb;
  padding: 9px 10px;
  margin-bottom: 11px;
  color: #526272;
  font-size: 12px;
}

.ansi-progress-note strong {
  color: var(--blue);
  font-size: 13px;
}

.ansi-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ansi-sidebar .ansi-checklist {
  grid-template-columns: 1fr;
}

.ansi-sidebar .ansi-guidance-heading,
.ansi-sidebar .ansi-progress-note {
  align-items: flex-start;
  flex-direction: column;
}

.ansi-checklist-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  margin: 0 2px 6px;
  text-transform: uppercase;
}

.ansi-check-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 45px;
  border: 1px solid #d2dce6;
  background: #fff;
  color: var(--text);
  padding: 7px 9px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.ansi-check-item:hover,
.ansi-check-item:focus-visible {
  border-color: var(--blue-2);
  background: #eef6fd;
}

.ansi-check-item strong {
  color: var(--blue);
  font-size: 12px;
  text-align: right;
}

.ansi-check-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e7f1fa;
  color: var(--blue-2);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.ansi-check-name {
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
}

.ansi-b-only-label {
  background: #fce9ea;
  color: #9e1a20;
  font-size: 9px;
  padding: 2px 6px;
  margin-left: 5px;
  vertical-align: 1px;
}

.ansi-disclaimer {
  color: var(--gray-text);
  font-size: 11px;
  margin: 11px 0 0;
}

.supply-title-line {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
}

.supply-title-line h3 {
  flex: 1 1 260px;
}

.ansi-product-badge {
  background: #e7f1fa;
  border: 1px solid #aac6de;
  color: var(--blue);
  font-size: 10px;
  padding: 3px 7px;
}

.supply-row.ansi-relevant {
  border-left-color: var(--blue-2);
}

.supply-row.ansi-relevant.has-quantity {
  border-left-color: var(--red);
}

@media (max-width: 720px) {
  .ansi-checklist {
    grid-template-columns: 1fr;
  }

  .ansi-progress-note,
  .ansi-guidance-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}



/* Customer-facing polish */
.choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  min-height: 0;
  padding: 11px 12px;
  border: 1px solid #cfd7df;
  border-top: 3px solid #9fb3c8;
  background: linear-gradient(180deg, #fff 0%, #f9fbfd 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.choice-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18,59,104,.13);
}

.choice-card.selected {
  border-color: var(--blue-2);
  border-top-color: var(--red);
  background: #f7fbff;
  box-shadow: 0 0 0 2px rgba(0,84,166,.12), 0 4px 12px rgba(18,59,104,.13);
}

.choice-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.choice-card h3 {
  margin: 0;
  line-height: 1.25;
  color: var(--blue);
  font-size: 15px;
}

.choice-price {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
}

.choice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.3;
}

.choice-note {
  display: none;
}

.supply-list {
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-top: 1px solid #ddd;
  background: #fff;
}

.supply-list:empty {
  border: 0;
}

.supply-list .empty-products {
  border: 1px dashed #bfbfbf;
  margin: 0;
}

.supply-row {
  border-left: 0;
  border-right: 0;
}

.supply-row:first-child {
  border-top: 0;
}

.supply-row:last-child {
  border-bottom: 0;
}

.product-status {
  margin-bottom: 8px;
}

.store-footer .container {
  justify-content: center;
}

@media (max-width: 760px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .supply-list {
    max-height: 480px;
  }
}

/* Keep ANSI relevance accent after the final supply-row border reset above. */
.supply-list .supply-row.ansi-relevant {
  border-left: 5px solid var(--blue-2);
}

.supply-list .supply-row.ansi-relevant.has-quantity {
  border-left-color: var(--red);
}


/* Collapsible section controls */
.builder-block-title-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.section-toggle,
.ansi-panel-toggle {
  min-height: 28px;
  border: 1px solid #b9c7d4;
  background: #fff;
  color: var(--blue);
  padding: 4px 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.section-toggle:hover,
.section-toggle:focus-visible,
.ansi-panel-toggle:hover,
.ansi-panel-toggle:focus-visible {
  border-color: var(--blue-2);
  background: #eef6fd;
}

.builder-block.is-collapsed .builder-block-title {
  margin-bottom: -18px;
  border-bottom: 0;
}

.collapsible-content[hidden],
.ansi-collapsible-body[hidden] {
  display: none;
}

.ansi-panel-toggle {
  margin-left: auto;
}

.ansi-guidance.is-collapsed .ansi-guidance-heading {
  margin-bottom: 0;
}


/* Medium screens: keep notes on the right and place ANSI guidance above the form. */
@media (max-width: 1180px) {
  .builder-page-layout,
  .builder-page-layout.has-ansi-guidance {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .builder-page-layout.has-ansi-guidance .ansi-sidebar {
    grid-column: 1;
    grid-row: 1;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .builder-page-layout.has-ansi-guidance .kit-builder-form {
    grid-column: 1;
    grid-row: 2;
  }

  .builder-page-layout.has-ansi-guidance .right-builder-sidebar {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .ansi-sidebar .ansi-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Small screens: use a natural one-column reading order and normal page scrolling. */
@media (max-width: 900px) {
  .builder-page-layout,
  .builder-page-layout.has-ansi-guidance {
    grid-template-columns: 1fr;
  }

  .builder-page-layout .ansi-sidebar,
  .builder-page-layout.has-ansi-guidance .ansi-sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  .builder-page-layout .kit-builder-form,
  .builder-page-layout.has-ansi-guidance .kit-builder-form {
    grid-column: 1;
    grid-row: auto;
  }

  .builder-page-layout .right-builder-sidebar,
  .builder-page-layout.has-ansi-guidance .right-builder-sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  .sticky-builder-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .right-builder-sidebar {
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .ansi-sidebar .ansi-checklist {
    grid-template-columns: 1fr;
  }

  .builder-block-title-controls {
    margin-top: 7px;
    justify-content: flex-start;
  }
}


/* Scrollable container selection list */
.container-choice-list {
  display: grid;
  max-height: 430px;
  overflow-y: auto;
  border: 1px solid #d5d5d5;
  background: #fff;
  scrollbar-gutter: stable;
}

.container-choice-list:empty {
  border: 0;
}

.container-choice-list .empty-products {
  margin: 0;
  border: 0;
}

.container-choice-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 108px;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #dedede;
  border-left: 5px solid transparent;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.container-choice-row:nth-child(even) {
  background: #fafafa;
}

.container-choice-row:last-child {
  border-bottom: 0;
}

.container-choice-row:hover,
.container-choice-row:focus-visible {
  background: #f4f9fd;
  border-left-color: #9fb3c8;
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(0,84,166,.08);
}

.container-choice-row.selected {
  background: #f7fbff;
  border-left-color: var(--red);
}

.container-choice-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.container-choice-name {
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.container-choice-meta {
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.35;
}

.container-choice-price {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.container-choice-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.container-choice-indicator {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #9daab6;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.container-choice-row.selected .container-choice-indicator {
  border-color: var(--blue-2);
  background: var(--blue-2);
}

.builder-block-heading {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.selected-container-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 7px;
  color: #4d5964;
  font-size: 12px;
  line-height: 1.25;
}

.selected-container-title[hidden] {
  display: none;
}

.selected-container-label {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10px;
}

.selected-container-name {
  max-width: 100%;
  overflow: hidden;
  color: #293847;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-container-details {
  color: #6c7781;
  white-space: nowrap;
}

.container-builder-block.is-collapsed .builder-block-title {
  align-items: center;
}

.container-builder-block.is-collapsed .selected-container-name {
  max-width: min(520px, 45vw);
}

@media (max-width: 650px) {
  .container-choice-list {
    max-height: 390px;
  }

  .container-choice-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    min-height: 78px;
  }

  .container-choice-info {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .container-choice-price,
  .container-choice-action {
    grid-column: 2;
    justify-self: end;
  }

  .container-choice-price {
    grid-row: 1;
  }

  .container-choice-action {
    grid-row: 2;
  }

  .container-builder-block.is-collapsed .selected-container-name {
    max-width: 62vw;
  }
}

/* Customer information save-and-collapse summary */
.customer-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-border);
}

.customer-save-button {
  margin-top: 0;
}

.customer-save-status {
  flex: 1 1 260px;
  color: var(--gray-text);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.customer-save-status.success {
  color: var(--green);
}

.customer-save-status.error {
  color: #a32222;
}

.saved-customer-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 7px;
  color: #4d5964;
  font-size: 12px;
  line-height: 1.25;
}

.saved-customer-title[hidden] {
  display: none;
}

.saved-customer-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.saved-customer-name {
  max-width: 100%;
  overflow: hidden;
  color: #293847;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-customer-details {
  color: #6c7781;
  white-space: nowrap;
}

.customer-information-block.is-collapsed .saved-customer-name {
  max-width: min(520px, 45vw);
}

/* Consolidated footer contact information */
.store-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.footer-brand > strong {
  font-size: 16px;
}

.footer-contact {
  display: grid;
  gap: 2px;
  text-align: right;
}

.footer-contact > strong {
  margin-bottom: 3px;
  font-size: 15px;
}

.footer-contact span {
  color: #ddd;
}

.store-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.store-footer a:hover,
.store-footer a:focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
}

@media (max-width: 700px) {
  .customer-save-row {
    align-items: stretch;
  }

  .customer-save-status {
    flex-basis: 100%;
    text-align: left;
  }

  .customer-save-button {
    width: 100%;
  }

  .customer-information-block.is-collapsed .saved-customer-name {
    max-width: 62vw;
  }

  .store-footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-contact {
    text-align: left;
  }
}

/* Kit Basics save-and-collapse summary */
.kit-basics-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-border);
}

.kit-basics-save-button {
  margin-top: 0;
}

.kit-basics-save-status {
  flex: 1 1 260px;
  color: var(--gray-text);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.kit-basics-save-status.success {
  color: var(--green);
}

.kit-basics-save-status.error {
  color: #a32222;
}

.saved-kit-basics-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 7px;
  color: #4d5964;
  font-size: 12px;
  line-height: 1.25;
}

.saved-kit-basics-title[hidden] {
  display: none;
}

.saved-kit-basics-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.saved-kit-basics-details {
  max-width: 100%;
  overflow: hidden;
  color: #293847;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kit-basics-block.is-collapsed .saved-kit-basics-details {
  max-width: min(620px, 50vw);
}

/* Header-style footer: logo | contact message */
.store-footer {
  background: #fff;
  color: var(--text);
  border-top: 1px solid #ccc;
  padding: 20px 0;
}

.store-footer .store-footer-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  gap: 28px;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 62px;
  max-width: 285px;
  object-fit: contain;
}

.store-footer .footer-contact {
  display: grid;
  gap: 2px;
  border-left: 5px solid var(--red);
  padding: 10px 0 10px 18px;
  color: var(--gray-text);
  text-align: left;
}

.store-footer .footer-contact > strong {
  display: block;
  margin: 0 0 3px;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.15;
}

.store-footer .footer-contact span {
  color: var(--gray-text);
  font-size: 14px;
}

.store-footer a {
  color: var(--blue-2);
  text-decoration: none;
}

.store-footer a:hover,
.store-footer a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: auto;
}

@media (max-width: 900px) {
  .store-footer .store-footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .store-footer .footer-contact {
    border-left: 0;
    border-top: 4px solid var(--red);
    padding: 12px 0 0;
  }
}

@media (max-width: 700px) {
  .kit-basics-save-row {
    align-items: stretch;
  }

  .kit-basics-save-status {
    flex-basis: 100%;
    text-align: left;
  }

  .kit-basics-save-button {
    width: 100%;
  }

  .kit-basics-block.is-collapsed .saved-kit-basics-details {
    max-width: 62vw;
  }

  .footer-logo img {
    height: 56px;
  }
}


/* ANSI guidance cleanup: compact summary + table-style checklist */
.ansi-guidance {
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbd8e3;
  border-top: 4px solid var(--blue);
  background: #fff;
  box-shadow: 0 2px 8px rgba(18, 59, 104, .07);
}

.ansi-guidance-heading,
.ansi-sidebar .ansi-guidance-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 13px 14px;
  border-bottom: 1px solid #d8e2eb;
  background: #f5f8fb;
}

.ansi-guidance-heading h5 {
  margin: 0;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.2;
}

.ansi-guidance-heading .ansi-class-badge {
  margin: 0;
  white-space: nowrap;
}

.ansi-guidance-heading .ansi-panel-toggle {
  margin: 0;
  white-space: nowrap;
}

.ansi-collapsible-body {
  padding: 14px;
}

.ansi-guidance-overview {
  display: grid;
  gap: 11px;
  margin-bottom: 13px;
}

.ansi-guidance-intro {
  margin: 0;
  color: #4d5c69;
  font-size: 13px;
  line-height: 1.45;
}

.ansi-progress-note,
.ansi-sidebar .ansi-progress-note {
  display: grid;
  grid-template-columns: 1fr;
  align-items: initial;
  gap: 3px;
  margin: 0;
  padding: 10px 11px;
  border: 0;
  border-left: 4px solid var(--blue-2);
  background: #eef5fb;
  color: #526272;
}

.ansi-progress-note strong {
  color: var(--blue);
  font-size: 13px;
  line-height: 1.3;
}

.ansi-progress-note span {
  font-size: 12px;
  line-height: 1.35;
}

.ansi-checklist-section {
  overflow: hidden;
  border: 1px solid #cbd8e3;
  background: #fff;
}

.ansi-checklist-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 11px;
  background: #eaf1f7;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ansi-checklist,
.ansi-sidebar .ansi-checklist {
  display: block;
}

.ansi-check-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 43px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-top: 1px solid #dbe4ec;
  background: #fff;
}

.ansi-check-item:first-child {
  border-top: 0;
}

.ansi-check-item:nth-child(even) {
  background: #fbfcfd;
}

.ansi-check-item:hover,
.ansi-check-item:focus-visible {
  background: #eef6fd;
  box-shadow: inset 3px 0 0 var(--blue-2);
  outline: 0;
}

.ansi-check-mark {
  width: 19px;
  height: 19px;
  background: #e7f1fa;
  font-size: 16px;
}

.ansi-check-name {
  font-size: 12px;
  line-height: 1.3;
}

.ansi-check-item strong {
  padding-left: 6px;
  color: var(--blue-2);
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.ansi-guidance-note {
  margin-top: 11px;
  border-top: 1px solid #d8e2eb;
  color: var(--gray-text);
  font-size: 11px;
}

.ansi-guidance-note summary {
  padding-top: 10px;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.ansi-guidance-note p {
  margin: 7px 0 0;
  line-height: 1.45;
}

.ansi-guidance.is-collapsed .ansi-guidance-heading {
  border-bottom: 0;
}

/* Footer mirrors the header, with contact information replacing the intro copy. */
.store-footer {
  margin: 0;
  padding: 0;
  border-top: 1px solid #ccc;
  background: #fff;
  color: var(--text);
}

.store-footer .store-header-inner,
.store-footer .store-footer-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  gap: 28px;
  padding-top: 0;
  padding-bottom: 0;
}

.store-footer .store-logo img {
  display: block;
  width: auto;
  height: 68px;
  max-width: 285px;
  object-fit: contain;
}

.store-footer .store-header-message {
  display: block;
  border-left: 5px solid var(--red);
  border-top: 0;
  padding: 12px 0 12px 18px;
  color: var(--gray-text);
  text-align: left;
}

.store-footer .store-header-message strong {
  display: block;
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.15;
}

.store-footer .store-header-message span {
  display: block;
  color: var(--gray-text);
  font-size: 16px;
}

.store-footer .store-header-message a {
  color: var(--blue-2);
  text-decoration: none;
}

.store-footer .store-header-message a:hover,
.store-footer .store-header-message a:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .store-footer .store-header-inner,
  .store-footer .store-footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .store-footer .store-header-message {
    border-left: 0;
    border-top: 4px solid var(--red);
    padding: 12px 0 0;
  }

  .store-footer .store-header-message strong {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .ansi-guidance-heading,
  .ansi-sidebar .ansi-guidance-heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ansi-guidance-heading .ansi-panel-toggle {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .store-footer .store-header-message span {
    line-height: 1.6;
  }
}


/* Keep the ANSI title and class badge grouped, with the toggle aligned separately. */
.ansi-guidance-heading,
.ansi-sidebar .ansi-guidance-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ansi-guidance-titleline {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.ansi-guidance-titleline h5 {
  min-width: 0;
}

.ansi-guidance-titleline .ansi-class-badge {
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .ansi-guidance-heading .ansi-panel-toggle {
    grid-column: auto;
    justify-self: end;
  }
}


/* Quote estimate breakdown and shipping notices */
.quote-summary .summary-estimate-row {
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
}

.quote-summary .summary-estimate-row dt {
  color: var(--blue);
  font-weight: 700;
}

.quote-summary .summary-estimate-total-row {
  margin: 0 -14px;
  padding: 10px 14px;
  background: #eef5fb;
  border-top: 1px solid #cbdceb;
  border-bottom: 1px solid #cbdceb;
}

.quote-summary .summary-estimate-total-row dd {
  color: var(--blue);
  font-size: 17px;
}

.estimate-notices {
  display: grid;
  gap: 8px;
}

.quote-summary .estimate-notices {
  margin-top: 12px;
}

.estimate-shipping-note {
  margin: 0;
  color: var(--gray-text);
  font-size: 12px;
  line-height: 1.4;
}

.free-shipping-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 7px 9px;
  background: #f0f8f3;
  border: 1px solid #b9dbc5;
  color: #245e39;
  font-size: 12px;
  line-height: 1.25;
}

.free-shipping-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .quote-summary dl > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}


/* CPR Savers free-shipping callout */
.free-shipping-notice {
  justify-content: center;
  text-align: center;
  background: #fff4f4;
  border-color: #e1a0a0;
  color: #8f1f1f;
}

.free-shipping-badge {
  background: var(--red);
}

/* Uniform collapsed-section summaries */
.collapsed-section-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 0;
  color: #334250;
  font-size: 12px;
  line-height: 1.25;
}

.collapsed-section-summary[hidden] {
  display: none;
}

.collapsed-summary-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 9px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.collapsed-summary-item {
  min-width: 0;
  max-width: min(360px, 38vw);
  overflow: hidden;
  color: #293847;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collapsed-summary-item + .collapsed-summary-item {
  position: relative;
  margin-left: 10px;
  padding-left: 11px;
}

.collapsed-summary-item + .collapsed-summary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: #aeb9c2;
  transform: translateY(-50%);
}

.customer-information-block.is-collapsed .collapsed-summary-item,
.kit-basics-block.is-collapsed .collapsed-summary-item,
.container-builder-block.is-collapsed .collapsed-summary-item {
  max-width: min(360px, 34vw);
}

@media (max-width: 700px) {
  .collapsed-section-summary {
    gap: 6px 0;
  }

  .collapsed-summary-status {
    margin-right: 7px;
  }

  .collapsed-summary-item,
  .customer-information-block.is-collapsed .collapsed-summary-item,
  .kit-basics-block.is-collapsed .collapsed-summary-item,
  .container-builder-block.is-collapsed .collapsed-summary-item {
    max-width: 66vw;
  }
}

/* Supply list unification + high-contrast collapsed status pills */
.collapsed-summary-status {
  background: #c9121b;
  border: 1px solid #a90d14;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  font-size: 11px;
  letter-spacing: .045em;
  padding: 3px 9px;
}

.product-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 235px) auto;
  align-items: end;
  gap: 10px;
}

.product-toolbar label {
  min-width: 0;
}

.toolbar-clear-button {
  min-width: 68px;
  min-height: 39px;
  padding: 7px 12px;
  align-self: end;
  white-space: nowrap;
}

.toolbar-clear-button:disabled {
  border-color: #d5d5d5;
  background: #f1f1f1;
  color: #8c8c8c;
  cursor: not-allowed;
  opacity: .72;
}

.supply-list {
  display: grid;
  gap: 0;
  max-height: 430px;
  overflow-y: auto;
  border: 1px solid #d5d5d5;
  background: #fff;
  scrollbar-gutter: stable;
}

.supply-row,
.supply-list .supply-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 88px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #dedede;
  border-left: 5px solid transparent;
  background: #fff;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.supply-row:nth-child(even),
.supply-list .supply-row:nth-child(even) {
  background: #fafafa;
}

.supply-row:last-child,
.supply-list .supply-row:last-child {
  border-bottom: 0;
}

.supply-row:hover,
.supply-list .supply-row:hover {
  background: #f4f9fd;
  box-shadow: inset 0 0 0 1px rgba(0, 84, 166, .06);
}

.supply-list .supply-row.ansi-relevant {
  border-left: 5px solid var(--blue-2);
}

.supply-row.has-quantity,
.supply-list .supply-row.has-quantity,
.supply-list .supply-row.ansi-relevant.has-quantity {
  border-left-color: var(--red);
  background: #fffafa;
}

.supply-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.supply-title-line {
  align-items: center;
  gap: 7px;
}

.supply-title-line h3,
.supply-info h3,
.supply-row h3 {
  flex: 0 1 auto;
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.3;
}

.supply-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 6px;
  margin: 0;
  color: var(--gray-text);
  font-size: 13px;
  line-height: 1.35;
}

.supply-meta-divider {
  color: #9aa3aa;
}

.supply-unit-price {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.supply-row-controls {
  display: grid;
  grid-template-columns: 142px 88px 38px;
  align-items: end;
  gap: 12px;
}

.qty-control {
  min-width: 0;
  gap: 4px;
}

.qty-control .label-text,
.supply-line-total > span {
  min-height: 17px;
  color: #59636d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 17px;
  text-transform: uppercase;
}

.qty-stepper {
  grid-template-columns: 36px 70px 36px;
  width: 142px;
  height: 38px;
}

.supply-line-total {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 4px;
  padding-bottom: 7px;
  text-align: right;
}

.supply-line-total .row-price {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.remove-item {
  align-self: end;
}

.remove-item.is-inactive,
.remove-item:disabled {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1320px) and (min-width: 901px) {
  .supply-row,
  .supply-list .supply-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .supply-row-controls {
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .product-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .product-search-field {
    grid-column: 1 / -1;
  }

  .product-category-field {
    grid-column: 1;
  }

  .toolbar-clear-button {
    grid-column: 2;
  }

  .supply-list {
    max-height: 390px;
  }

  .supply-row,
  .supply-list .supply-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px 12px;
  }

  .supply-row-controls {
    width: 100%;
    grid-template-columns: minmax(132px, 142px) minmax(76px, 1fr) 38px;
  }
}

@media (max-width: 440px) {
  .product-toolbar {
    grid-template-columns: 1fr;
  }

  .product-search-field,
  .product-category-field,
  .toolbar-clear-button {
    grid-column: 1;
  }

  .toolbar-clear-button {
    width: 100%;
  }

  .supply-row-controls {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .qty-control {
    grid-column: 1;
  }

  .supply-line-total {
    grid-column: 2;
    grid-row: 1;
  }

  .remove-item {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}

/* Current kit breakdown trigger and in-page overlay */
.quote-summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}

.quote-summary-heading .header-specials {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 2px 0 0;
  border: 0;
}

.kit-breakdown-trigger {
  flex: 0 0 auto;
  max-width: 166px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 7px 5px 9px;
  border: 1px solid #9db7ca;
  background: #f4f9fd;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.kit-breakdown-trigger:hover,
.kit-breakdown-trigger:focus-visible {
  border-color: var(--blue);
  background: #e8f3fb;
}

.kit-breakdown-trigger-count {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

body.kit-breakdown-open {
  overflow: hidden;
}

.kit-breakdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(11, 25, 36, .72);
  backdrop-filter: blur(2px);
}

.kit-breakdown-overlay[hidden] {
  display: none;
}

.kit-breakdown-dialog {
  width: min(900px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #9aaab5;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34);
  outline: none;
}

.kit-breakdown-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 4px solid var(--red);
  background: #f7f7f7;
}

.kit-breakdown-dialog-header > div {
  min-width: 0;
}

.kit-breakdown-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.kit-breakdown-dialog-header h2 {
  margin: 0;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.15;
}

.kit-breakdown-dialog-header p {
  margin: 5px 0 0;
  color: var(--gray-text);
  font-size: 12px;
  line-height: 1.45;
}

.kit-breakdown-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #bbc4ca;
  background: #fff;
  color: #34434d;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.kit-breakdown-close:hover,
.kit-breakdown-close:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.kit-breakdown-dialog-body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px 20px;
  scrollbar-gutter: stable;
}

.kit-breakdown-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(135px, .75fr));
  gap: 10px;
  margin-bottom: 18px;
}

.kit-breakdown-overview > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid #d7dee3;
  border-left: 4px solid var(--blue);
  background: #f8fafb;
}

.kit-breakdown-overview span {
  color: #68747d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kit-breakdown-overview strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #253640;
  font-size: 14px;
  line-height: 1.3;
}

.kit-breakdown-overview small {
  color: var(--gray-text);
  font-size: 11px;
  line-height: 1.3;
}

.kit-breakdown-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #cfd7dc;
}

.kit-breakdown-section-heading h3 {
  margin: 0;
  color: var(--blue);
  font-size: 17px;
}

.kit-breakdown-section-heading span {
  color: var(--gray-text);
  font-size: 11px;
  font-weight: 700;
}

.kit-breakdown-items {
  border: 1px solid #d6dde2;
  border-top: 0;
}

.kit-breakdown-empty {
  margin: 0;
  padding: 22px 16px;
  color: var(--gray-text);
  font-size: 13px;
  text-align: center;
}

.kit-breakdown-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 96px 105px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 12px;
  border-bottom: 1px solid #e0e5e8;
  background: #fff;
}

.kit-breakdown-item:nth-child(even) {
  background: #fafafa;
}

.kit-breakdown-item:last-child {
  border-bottom: 0;
}

.kit-breakdown-item-info {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.kit-breakdown-item-info strong {
  color: #2d3b44;
  font-size: 13px;
  line-height: 1.35;
}

.kit-breakdown-item-info span {
  color: var(--gray-text);
  font-size: 11px;
  line-height: 1.3;
}

.kit-breakdown-item-value {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}

.kit-breakdown-item-value span {
  color: #748089;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kit-breakdown-item-value strong {
  color: #263843;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.kit-breakdown-item-value:last-child strong {
  color: var(--red);
}

.kit-breakdown-totals {
  width: min(430px, 100%);
  display: grid;
  margin: 18px 0 0 auto;
  border: 1px solid #ccd5da;
  background: #fff;
}

.kit-breakdown-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 11px;
  border-bottom: 1px solid #e0e5e8;
  font-size: 12px;
}

.kit-breakdown-totals > div strong {
  white-space: nowrap;
}

.kit-breakdown-totals .kit-breakdown-per-kit-total {
  color: var(--blue);
  font-weight: 800;
}

.kit-breakdown-totals .kit-breakdown-order-total {
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 0;
  background: #fff3f3;
  color: #8f1f1f;
  font-size: 14px;
  font-weight: 800;
}

.kit-breakdown-totals p {
  margin: 0;
  padding: 8px 11px;
  border-top: 1px solid #e0e5e8;
  color: var(--gray-text);
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}

.kit-breakdown-dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 11px 20px;
  border-top: 1px solid #d6dde2;
  background: #f7f7f7;
}

@media (max-width: 700px) {
  .kit-breakdown-overlay {
    padding: 10px;
  }

  .kit-breakdown-dialog {
    max-height: calc(100vh - 20px);
  }

  .kit-breakdown-dialog-header,
  .kit-breakdown-dialog-body,
  .kit-breakdown-dialog-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .kit-breakdown-overview {
    grid-template-columns: 1fr 1fr;
  }

  .kit-breakdown-overview > div:first-child {
    grid-column: 1 / -1;
  }

  .kit-breakdown-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
  }

  .kit-breakdown-item-info {
    grid-column: 1 / -1;
  }

  .kit-breakdown-item-value {
    justify-items: start;
    text-align: left;
  }

  .kit-breakdown-item-value:last-child {
    justify-items: end;
    text-align: right;
  }
}

@media (max-width: 420px) {
  .quote-summary-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .kit-breakdown-trigger {
    width: 100%;
    max-width: none;
    justify-content: space-between;
    text-align: left;
  }

  .kit-breakdown-overview {
    grid-template-columns: 1fr;
  }

  .kit-breakdown-overview > div:first-child {
    grid-column: auto;
  }
}

/* Quote Summary and editable Current Kit Breakdown refinements */
.quote-summary-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.quote-summary-heading .header-specials {
  width: 100%;
  padding-top: 0;
  font-size: 18px;
  line-height: 1.2;
}

.kit-breakdown-trigger {
  width: 100%;
  max-width: none;
  min-height: 42px;
  justify-content: space-between;
  padding: 9px 10px 9px 13px;
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
}

.kit-breakdown-trigger > span:first-child {
  flex: 1 1 auto;
  text-align: center;
}

.kit-breakdown-trigger:hover,
.kit-breakdown-trigger:focus-visible {
  border-color: #0b2c50;
  background: #0b2c50;
  color: #fff;
}

.kit-breakdown-trigger-count {
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .55);
  font-size: 11px;
}

.kit-breakdown-dialog {
  width: min(960px, 100%);
}

.kit-breakdown-eyebrow {
  font-size: 11px;
}

.kit-breakdown-dialog-header h2 {
  font-size: 26px;
}

.kit-breakdown-dialog-header p {
  font-size: 14px;
  line-height: 1.5;
}

.kit-breakdown-dialog-body {
  font-size: 14px;
}

.kit-breakdown-overview span {
  font-size: 11px;
}

.kit-breakdown-overview strong {
  font-size: 15px;
}

.kit-breakdown-overview small {
  font-size: 12px;
}

.kit-breakdown-section-heading h3 {
  font-size: 19px;
}

.kit-breakdown-section-heading span {
  font-size: 12px;
}

.kit-breakdown-empty {
  font-size: 14px;
}

.kit-breakdown-item {
  grid-template-columns: minmax(0, 1fr) 142px 96px 38px;
  gap: 14px;
  min-height: 82px;
  padding: 12px 14px;
}

.kit-breakdown-item-info {
  gap: 4px;
}

.kit-breakdown-item-info strong {
  font-size: 15px;
  line-height: 1.35;
}

.kit-breakdown-item-info span {
  font-size: 12px;
  line-height: 1.35;
}

.kit-breakdown-item-info .kit-breakdown-item-unit-price {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.kit-breakdown-quantity-control {
  min-width: 0;
  display: grid;
  align-self: center;
  gap: 6px;
}

.kit-breakdown-control-label,
.kit-breakdown-item-value > span {
  color: #68747d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kit-breakdown-qty-stepper {
  width: 142px;
}

.kit-breakdown-qty-stepper input,
.kit-breakdown-qty-stepper button {
  font-size: 14px;
}

.kit-breakdown-line-total {
  align-self: center;
  justify-items: end;
  text-align: right;
}

.kit-breakdown-line-total strong {
  color: var(--red);
  font-size: 14px;
}

.kit-breakdown-remove {
  align-self: center;
}

.kit-breakdown-totals {
  width: min(500px, 100%);
}

.kit-breakdown-totals > div {
  padding: 10px 13px;
  font-size: 13px;
}

.kit-breakdown-totals > div strong {
  font-size: 14px;
}

.kit-breakdown-totals .kit-breakdown-order-total {
  font-size: 16px;
}

.kit-breakdown-totals .kit-breakdown-order-total strong {
  font-size: 17px;
}

.kit-breakdown-estimate-notices {
  display: grid;
  gap: 9px;
  padding: 12px 13px 13px;
  border-top: 1px solid #d6dde2;
  background: #fafafa;
}

.kit-breakdown-estimate-notices .estimate-shipping-note {
  color: #4c5962;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.kit-breakdown-estimate-notices .free-shipping-notice {
  padding: 8px 10px;
  font-size: 13px;
}

.kit-breakdown-estimate-notices .free-shipping-badge {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 11px;
}

.kit-breakdown-dialog-footer .btn-secondary {
  font-size: 13px;
}

@media (max-width: 700px) {
  .kit-breakdown-item {
    grid-template-columns: minmax(0, 1fr) auto 38px;
    align-items: end;
    gap: 10px 12px;
  }

  .kit-breakdown-item-info {
    grid-column: 1 / -1;
  }

  .kit-breakdown-quantity-control {
    grid-column: 1;
  }

  .kit-breakdown-line-total {
    grid-column: 2;
    justify-items: end;
    text-align: right;
  }

  .kit-breakdown-remove {
    grid-column: 3;
  }
}

@media (max-width: 420px) {
  .quote-summary-heading {
    display: grid;
  }

  .kit-breakdown-trigger {
    min-height: 44px;
    font-size: 12px;
  }

  .kit-breakdown-dialog-header h2 {
    font-size: 23px;
  }

  .kit-breakdown-dialog-header p {
    font-size: 13px;
  }

  .kit-breakdown-item {
    grid-template-columns: 142px minmax(72px, 1fr) 38px;
  }
}


/* Final submission review dialog */
body.kit-review-open {
  overflow: hidden;
}

.kit-review-dialog {
  width: min(980px, 100%);
}

.kit-review-dialog-body {
  display: grid;
  gap: 22px;
}

.kit-review-section {
  min-width: 0;
}

.kit-review-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #d6dde2;
  border-top: 0;
}

.kit-review-detail-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-right: 1px solid #e0e5e8;
  border-bottom: 1px solid #e0e5e8;
  background: #fff;
}

.kit-review-detail-grid > div:nth-child(2n) {
  border-right: 0;
}

/* The customer grid has four half-width cells followed by a full-width
   delivery-address row. Keep the Email and Phone divider intact; only the
   actual full-width final row should lose its bottom border. */
.kit-review-detail-grid .kit-review-detail-wide {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.kit-review-detail-grid span {
  color: #68747d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kit-review-detail-grid strong {
  overflow-wrap: anywhere;
  color: #263843;
  font-size: 14px;
  line-height: 1.4;
}

.kit-review-kit-grid {
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(135px, .8fr));
}

.kit-review-kit-grid > div,
.kit-review-kit-grid > div:nth-child(2n),
.kit-review-kit-grid > div:nth-last-child(-n + 2) {
  border-right: 1px solid #e0e5e8;
  border-bottom: 0;
}

.kit-review-kit-grid > div:last-child {
  border-right: 0;
}

.kit-review-items {
  border: 1px solid #d6dde2;
  border-top: 0;
}

.kit-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 105px 110px;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 11px 14px;
  border-bottom: 1px solid #e0e5e8;
  background: #fff;
}

.kit-review-item:nth-child(even) {
  background: #fafafa;
}

.kit-review-item:last-child {
  border-bottom: 0;
}

.kit-review-line-total strong {
  color: var(--red);
}

.kit-review-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: start;
  gap: 22px;
}

.kit-review-notes {
  min-height: 124px;
  padding: 14px;
  border: 1px solid #d6dde2;
  border-top: 0;
  background: #f8fafb;
  color: #34434d;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.kit-review-totals {
  width: 100%;
  margin: 0;
}

.kit-review-status {
  min-height: 0;
  margin: -4px 0 0;
}

.kit-review-dialog-footer {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kit-review-dialog-footer .btn-primary,
.kit-review-dialog-footer .btn-secondary {
  min-height: 42px;
  padding: 10px 16px;
}

.kit-review-dialog-footer .btn-primary[disabled] {
  cursor: wait;
  opacity: .72;
}

@media (max-width: 820px) {
  .kit-review-kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kit-review-kit-grid > div,
  .kit-review-kit-grid > div:nth-child(2n),
  .kit-review-kit-grid > div:nth-last-child(-n + 2) {
    border-right: 1px solid #e0e5e8;
    border-bottom: 1px solid #e0e5e8;
  }

  .kit-review-kit-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .kit-review-kit-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .kit-review-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .kit-review-detail-grid,
  .kit-review-kit-grid {
    grid-template-columns: 1fr;
  }

  .kit-review-detail-grid > div,
  .kit-review-detail-grid > div:nth-child(2n),
  .kit-review-detail-grid > div:nth-last-child(-n + 2),
  .kit-review-kit-grid > div,
  .kit-review-kit-grid > div:nth-child(2n),
  .kit-review-kit-grid > div:nth-last-child(-n + 2) {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid #e0e5e8;
  }

  .kit-review-detail-grid > div:last-child,
  .kit-review-kit-grid > div:last-child {
    border-bottom: 0;
  }

  .kit-review-item {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px 12px;
  }

  .kit-review-item .kit-breakdown-item-info {
    grid-column: 1 / -1;
  }

  .kit-review-item .kit-breakdown-item-value {
    justify-items: start;
    text-align: left;
  }

  .kit-review-item .kit-review-line-total {
    justify-items: end;
    text-align: right;
  }

  .kit-review-dialog-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .kit-review-dialog-footer .btn-primary,
  .kit-review-dialog-footer .btn-secondary {
    width: 100%;
  }
}
