/* Price comparisons retain their real headings, values and manufacturer links.
   Load after the palette and earlier component styles. */
main section.prices .dp-table-scroll {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 26px;
  overflow-x: auto;
  border: 1px solid #dfe5e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: #b7c5cf #f3f5f7;
}
main section.prices table.table-1.pt-price-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
  table-layout: fixed;
  background: #fff;
  color: #303840;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
main section.prices table.table-1.pt-price-table thead { background: #f3f5f7; }
main section.prices table.table-1.pt-price-table thead tr th,
main section.prices table.table-1.pt-price-table tbody tr td {
  width: auto;
  padding: 17px 22px;
  border: 0;
  border-bottom: 1px solid #e7ecef;
  border-radius: 0;
  background: transparent;
  vertical-align: middle;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
}
main section.prices table.table-1.pt-price-table thead tr th {
  padding-top: 18px;
  padding-bottom: 18px;
  color: #405361;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
main section.prices table.table-1.pt-price-table tbody tr:nth-child(even) td { background: #fafbfc; }
main section.prices table.table-1.pt-price-table tbody tr:last-child td { border-bottom: 0; }
main section.prices table.table-1.pt-price-table th:first-child,
main section.prices table.table-1.pt-price-table td:first-child { width: 36%; }
main section.prices table.table-1.pt-price-table th:last-child,
main section.prices table.table-1.pt-price-table td:last-child { width: 32%; text-align: right; }
main section.prices table.table-1.pt-price-table tbody tr td:last-child { color: #37566d; font-weight: 600; }
main section.prices table.table-1.pt-price-table.count-2 th:first-child,
main section.prices table.table-1.pt-price-table.count-2 td:first-child { width: 65%; }
main section.prices table.table-1.pt-price-table.count-2 th:last-child,
main section.prices table.table-1.pt-price-table.count-2 td:last-child { width: 35%; border-left: 0; }
main section.prices table.table-1.pt-comparison .pt-table-warranty { display: block; margin-bottom: 4px; color: #6a7780; font-size: 13px; font-weight: 400; line-height: 1.35; }
main section.prices table.table-1.pt-comparison .pt-table-price { display: block; color: #37566d; font-size: 18px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
main section.prices table.table-1.pt-comparison .pt-price-separator { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }

/* The brand name is the link; its compact label stays next to its own arrow. */
main section.prices table.table-1.pt-price-table tbody tr td a.rv8-table-brand {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: #303840;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
main section.prices table.table-1.pt-price-table tbody tr td a.rv8-table-brand::after { content: none; }
main section.prices table.table-1.pt-price-table .rv8-table-brand .rv8-table-link-label {
  display: inline-block;
  color: #37566d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #bdcbd5;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.prices2 .prices2-item-footer a.prices2-item-link.rv8-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 6px 8px;
  border: 1px solid #d5dfe6;
  border-radius: 7px;
  background: #fff;
  color: #37566d;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
.prices2 .prices2-item-footer a.prices2-item-link.rv8-brand-link::after { content: '→'; flex: none; margin: 0; color: currentColor; font-size: 16px; line-height: 1; }

.prices2 .prices2-item-name a.rv8-brand-name { text-decoration-color: #bdcbd5; text-underline-offset: 4px; }
.prices2 .prices2-item-name a.rv8-brand-name::after { color: #37566d; }
main section.prices :is(.dp-table-scroll, a.rv8-table-brand):focus-visible,
.prices2 .prices2-item-footer a.rv8-brand-link:focus-visible { outline: 2px solid #37566d; outline-offset: 3px; }

/* Existing disclosure handlers still own their panels and their height. */
main section.prices .table-1-caption { position: relative; margin: 26px 0 18px; }
main section.prices .table-1-caption > span {
  display: flex;
  align-items: center;
  min-height: 60px;
  margin: 0;
  padding: 15px 64px 15px 22px;
  border: 1px solid #dfe5e9;
  border-radius: 12px;
  background: #f3f5f7;
  color: #303840;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
main section.prices .table-1-caption > button.arrow,
main section.prices .table-1-caption > button.arrow.active {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: #37566d;
  transform: none;
}
main section.prices .table-1-caption > button.arrow::before,
main section.prices .table-1-caption > button.arrow::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor; transform: translate(-50%, -50%); }
main section.prices .table-1-caption > button.arrow::after { transform: translate(-50%, -50%) rotate(90deg); }
main section.prices .table-1-caption > button.arrow.active::after { opacity: 0; }
.dp-calculator-page .dp-calculator-price-details { border-color: #dfe5e9; border-radius: 12px; }
.dp-calculator-page .dp-calculator-price-details > summary { min-height: 60px; color: #303840; font-size: 17px; }
.dp-calculator-page .dp-calculator-price-details[open] > summary { background: #f3f5f7; }
.dp-calculator-page .dp-calculator-price-details > summary::after { color: #37566d; }

@media (hover: hover) and (pointer: fine) {
  main section.prices table.table-1.pt-price-table tbody tr:hover td { background: #f3f7fa; }
  main section.prices table.table-1.pt-price-table a.rv8-table-brand:hover { color: #37566d; }
  main section.prices table.table-1.pt-price-table .rv8-table-brand:hover .rv8-table-link-label { color: #243e52; text-decoration-color: currentColor; }
  .prices2 .prices2-item-footer a.prices2-item-link.rv8-brand-link:hover { background: #edf2f6; color: #243e52; text-decoration-color: currentColor; }
  main section.prices .table-1-caption > button.arrow:hover { background: #e5edf2; }
  .dp-calculator-page .dp-calculator-price-details > summary:hover { background: #f3f5f7; }
}

@media (max-width: 767px) {
  main section.prices .dp-table-scroll { margin-bottom: 20px; border-radius: 12px; }
  main section.prices table.table-1.pt-price-table thead tr th,
  main section.prices table.table-1.pt-price-table tbody tr td { padding: 14px; }
  main section.prices .table-1-caption > span { min-height: 60px; padding-left: 16px; font-size: 16px; }
  .dp-calculator-page .dp-calculator-price-details > summary { font-size: 16px; }
}

@media (max-width: 639px) {
  /* The HTML retains explicit table/row/cell roles. Labels below come directly
     from each source column heading, including the full guarantee/price label. */
  main section.prices table.table-1.pt-price-table.pt-comparison,
  main section.prices table.table-1.pt-price-table.pt-comparison thead,
  main section.prices table.table-1.pt-price-table.pt-comparison thead tr,
  main section.prices table.table-1.pt-price-table.pt-comparison tbody { display: block; width: 100%; }
  main section.prices table.table-1.pt-price-table.pt-comparison thead tr { position: relative; }
  main section.prices table.table-1.pt-price-table.pt-comparison thead tr th:first-child { display: block; width: 100%; padding: 15px 16px; border: 0; font-size: 16px; color: #303840; }
  main section.prices table.table-1.pt-price-table.pt-comparison thead tr th:not(:first-child) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
  main section.prices table.table-1.pt-price-table.pt-comparison tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; padding: 15px 16px 17px; border-top: 1px solid #e7ecef; background: #fff; }
  main section.prices table.table-1.pt-price-table.pt-comparison tbody tr:nth-child(even) { background: #fafbfc; }
  main section.prices table.table-1.pt-price-table.pt-comparison tbody tr td { display: block; width: auto; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; color: #303840; font-size: 14px; line-height: 1.4; text-align: left; overflow-wrap: break-word; }
  main section.prices table.table-1.pt-price-table.pt-comparison tbody tr td:first-child { grid-column: 1 / -1; }
  main section.prices table.table-1.pt-price-table.pt-comparison tbody tr td:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #6a7780; font-size: 11px; font-weight: 400; line-height: 1.35; }
  main section.prices table.table-1.pt-price-table.pt-comparison tbody tr td:last-child { color: #37566d; font-weight: 600; }
  main section.prices table.table-1.pt-price-table.pt-comparison tbody tr td a.rv8-table-brand { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; width: 100%; min-height: 30px; padding: 2px 0; font-size: 16px; }
  main section.prices table.table-1.pt-price-table.pt-comparison .rv8-table-brand .rv8-table-link-label { font-size: 12px; }
  main section.prices table.table-1.pt-price-table.count-2 { font-size: 14px; }
  main section.prices table.table-1.pt-price-table.count-2 th:first-child,
  main section.prices table.table-1.pt-price-table.count-2 td:first-child { width: 57%; }
  main section.prices table.table-1.pt-price-table.count-2 th:last-child,
  main section.prices table.table-1.pt-price-table.count-2 td:last-child { width: 43%; }
  main section.prices table.table-1.pt-price-table.count-2 thead tr th,
  main section.prices table.table-1.pt-price-table.count-2 tbody tr td { padding: 13px 11px; font-size: 13px; }
  .prices2 .prices2-item-footer a.prices2-item-link.rv8-brand-link { min-height: 44px; margin-top: 6px; padding: 6px 4px; font-size: 12px; }
  .prices2 .prices2-item-footer a.prices2-item-link.rv8-brand-link::after { content: none; }
}
@media (max-width: 359px) {
  main section.prices table.table-1.pt-comparison .pt-table-price { font-size: 17px; }
  main section.prices table.table-1.pt-comparison .pt-table-warranty { font-size: 12px; }
}
