.pre-purchase-checklist-page {
  --checklist-sticky-top: 84px;
  background: #f7fafc;
  color: #2c333e;
}

.pre-purchase-checklist-hero {
  padding: 3rem 0 2rem;
  background: #ffffff;
}

.pre-purchase-checklist-hero h1 {
  max-width: 780px;
  margin: 0 0 1rem;
  color: #102033;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.pre-purchase-checklist-hero p {
  max-width: 840px;
  margin: 0;
  color: #465465;
  font-size: 1rem;
  line-height: 1.7;
}

.inspection-checklist-card {
  margin: 1.5rem 0 3rem;
  border: 1px solid #d7e2eb;
  background: #ffffff;
}

.inspection-checklist-card__header {
  padding: 1.1rem 1rem;
  background: #22577a;
}

.inspection-checklist-card__header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.inspection-checklist-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.inspection-checklist-sticky-head {
  position: sticky;
  top: var(--checklist-sticky-top);
  z-index: 30;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid #d7e2eb;
  background: #ffffff;
}

.inspection-checklist-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.inspection-checklist-table__item-col {
  width: 22%;
}

.inspection-checklist-table__package-col {
  width: 19.5%;
}

.inspection-checklist-table th,
.inspection-checklist-table td {
  border: 1px solid #d7e2eb;
  padding: 0.9rem 0.8rem;
  vertical-align: middle;
}

.inspection-checklist-table__body-head {
  visibility: collapse;
}

.inspection-checklist-table--head {
  pointer-events: none;
}

.inspection-checklist-table thead th {
  min-height: 132px;
  background: #f1faef;
  color: #102033;
  text-align: center;
}

.inspection-checklist-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 35;
  background: #306386;
  color: #ffffff;
  text-align: left;
  text-transform: uppercase;
}

.inspection-checklist-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 4px 0 8px rgba(16, 32, 51, 0.08);
}

.inspection-checklist-table tbody th {
  background: #f7fafc;
  color: #374151;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.inspection-checklist-table td {
  background: #ffffff;
  text-align: center;
}

.inspection-checklist-table__section th {
  padding: 0;
  background: #eef4f8;
  color: #22577a;
}

.inspection-checklist-table__section-toggle {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0.78rem 0.8rem;
  background: transparent;
  color: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.inspection-checklist-table__section-toggle i {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: 1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.inspection-checklist-table__section-toggle[aria-expanded="false"] i {
  transform: rotate(-45deg);
}

.inspection-checklist-table__package,
.inspection-checklist-table__checks,
.inspection-checklist-table__duration {
  display: block;
}

.inspection-checklist-table__package {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.inspection-checklist-table__checks {
  margin-top: 0.65rem;
  color: #119000;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.inspection-checklist-table__duration {
  margin-top: 0.55rem;
  color: #465465;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.inspection-checklist-table__status {
  display: inline-flex;
  min-width: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.inspection-checklist-table__status--included {
  background: rgba(72, 166, 44, 0.14);
  color: #0f4610;
}

.inspection-checklist-table__status--not-included {
  background: rgba(186, 26, 26, 0.14);
  color: #ba1a1a;
}

.inspection-checklist-notes {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: -1.5rem 0 3rem;
  color: #465465;
  font-size: 0.9rem;
  line-height: 1.5;
}

.inspection-checklist-notes div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.inspection-checklist-notes p {
  max-width: 520px;
  margin: 0;
}

@media (max-width: 991.98px) {
  .inspection-checklist-table {
    min-width: 820px;
  }

  .inspection-checklist-table__item-col {
    width: 180px;
  }

  .inspection-checklist-table__package-col {
    width: 160px;
  }

  .inspection-checklist-table__section th {
    position: static;
  }

  .inspection-checklist-table__section-toggle {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 180px;
    background: #eef4f8;
    box-shadow: 4px 0 8px rgba(16, 32, 51, 0.08);
  }

  .inspection-checklist-notes {
    display: block;
  }

  .inspection-checklist-notes p {
    max-width: none;
    margin-top: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .pre-purchase-checklist-hero {
    padding: 2rem 0 1.25rem;
  }

  .pre-purchase-checklist-hero h1 {
    font-size: 2rem;
  }

  .inspection-checklist-card {
    margin-top: 1rem;
  }

  .inspection-checklist-card__header h2 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .inspection-checklist-table {
    min-width: 760px;
  }

  .inspection-checklist-table__item-col {
    width: 170px;
  }

  .inspection-checklist-table__package-col {
    width: 147px;
  }

  .inspection-checklist-table__section-toggle {
    width: 170px;
  }
}
