.price-list {
  width: 100%;
  padding-bottom: var(--theme-pricelist-padding-bottom, 40px);
  background: var(--theme-pricelist-background, transparent);
  font-synthesis: weight style small-caps;
}

.price-list__content {
  display: flow-root;
  max-width: var(--theme-pricelist-content-width, 1440px);
  min-height: 400px;
  padding: var(--theme-pricelist-content-padding, 40px 40px 0);
}

.price-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.price-list__header h1,
.price-list__category-heading {
  margin: 0;
  color: var(--theme-pricelist-heading-copy, var(--primary));
  font-family: var(--theme-pricelist-heading-font, var(--home-heading-font, var(--heading-font)));
  font-size: 32px;
  font-weight: var(--theme-pricelist-heading-weight, 400);
  line-height: 32px;
}

.price-list__header .price-list__category-heading {
  margin: 32px 0 0;
}

.price-list__calculator > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: var(--theme-content-action-red-height, auto);
  padding: var(--theme-content-action-padding, 20px);
  border: var(--theme-pricelist-action-border, var(--theme-content-action-red-border, 0));
  border-radius: var(--theme-content-action-radius, 0);
  box-shadow: var(--theme-content-action-red-shadow, none);
  background: var(--theme-pricelist-action-background, var(--theme-content-action-red-background, var(--primaryBtn, var(--primary))));
  color: var(--theme-content-action-red-copy, #fff);
  font: var(--theme-catalogue-calculator-font, var(--theme-content-action-font, 400 15px / 15px var(--heading-font)));
  letter-spacing: var(--theme-content-action-spacing, normal);
  text-transform: var(--theme-content-action-transform, none);
  cursor: pointer;
  list-style: none;
}

.price-list__notes {
  margin: 2rem 0 20px;
  color: var(--theme-pricelist-note-copy, inherit);
  font-family: var(--theme-pricelist-note-font, inherit);
  font-size: var(--theme-pricelist-note-size, 14px);
  line-height: var(--theme-pricelist-note-line, inherit);
}

.price-list__note-marker {
  color: var(--theme-pricelist-note-marker-copy, inherit);
}

.price-list .pl-msel-btn {
  font: 400 14px var(--theme-pricelist-picker-font, Arial);
}

.model-tbl-container {
  position: relative;
  color: var(--theme-price-grid-copy, inherit);
}

.pricelist-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 2rem 0 1rem;
}

.pricelist-bar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pricelist-bar > .pricelist-bar__actions:only-child {
  margin-left: auto;
}

.pricelist-bar .finance-popover > div {
  top: 100%;
  right: 0;
  left: auto;
  margin-top: 4px;
  z-index: 200;
}

/* legacy-code/css_base/base.css: .pricelist-bar__actions .red. */
.pricelist-bar [data-finance-listing] button {
  margin: 0;
}

@media (max-width: 768px) {
  .pricelist-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pricelist-bar__actions,
  .pricelist-bar__actions .finance-popover,
  .pricelist-bar__actions .finance-popover > summary {
    width: 100%;
  }

  .pricelist-bar .finance-popover > div {
    right: auto;
    left: 0;
    width: 100%;
  }
}

.price-list--honda {
  padding-bottom: 0;
}

.price-list--honda .price-list__content {
  padding: 40px 20px;
}

.price-list--honda .price-list__calculator > summary {
  padding: var(--theme-content-action-padding);
  font: var(--theme-model-section-action-font);
}

.price-list--non-car .price-list__content {
  max-width: 1280px;
  min-height: 0;
}

.price-list--non-car .price-list__notes {
  margin-top: 12px;
}

.pl-scroll-wrap {
  position: relative;
  margin-bottom: 24px;
}

.pl-grid {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.pl-head, .pl-row {
  display: grid;
  grid-template-columns: var(--pl-cols);
  gap: 6px 8px;
  align-items: center;
  padding: 12px 16px;
}

.pl-head {
  background: var(--theme-price-grid-heading-background, var(--secondary, #000));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.pl-head-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 2px;
  text-align: center;
}

.pl-head-name {
  align-items: flex-start;
  font-size: 16px;
  text-align: left;
}

.pl-head-sub {
  color: #fffc;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
}

.pl-row {
  margin: 0;
  border-bottom: 1px solid #ececee;
  transition: background .15s linear;
}

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

.pl-row:hover {
  background: var(--theme-price-grid-row-hover-background, var(--tableHighlight, #796f6e1a));
}

.pl-row:has(a) {
  cursor: pointer;
}

.pl-cell {
  min-width: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
}

.pl-cell dd {
  margin: 0;
}

.pl-name > dd {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.pl-name,
.pl-name-text a {
  color: inherit;
  text-align: left;
}

.pl-name-text a:hover {
  color: inherit;
}

.pl-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.pl-name-text {
  font-weight: 600;
}

.pl-mdlname {
  font-weight: 600;
}

.pl-name-text a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.pl-name-model, .pl-label {
  display: none;
}

.pl-price {
  line-height: 1.25;
}

.pl-price-now, .pl-lease-now {
  color: var(--theme-price-grid-amount-copy, var(--primary, #000));
  font-weight: 600;
  white-space: nowrap;
}

.pl-lease-terms {
  display: block;
  color: #777;
  font-size: 11px;
  line-height: 1.2;
}

.pl-lease-terms-same {
  display: none;
}

.pl-price-was {
  display: block;
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}

.pl-price:has(.pl-price-was) .pl-price-now {
  color: #d32f2f;
}

.pl-fee {
  color: #555;
  font-size: 12px;
}

.pl-fee-line {
  display: block;
  white-space: nowrap;
}

.pl-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-cta > dd {
  min-width: 0;
  max-width: 100%;
}

.pl-btn {
  display: var(--theme-content-action-red-display, block);
  align-items: var(--theme-content-action-red-align, normal);
  justify-content: center;
  width: auto;
  height: var(--theme-price-grid-action-height, auto);
  min-height: 40px;
  max-width: 100%;
  margin: 0;
  border: var(--theme-content-action-red-border, 0);
  border-radius: var(--theme-price-grid-action-radius, var(--theme-content-action-red-radius, var(--theme-content-action-radius, 0)));
  padding: 10px;
  background: var(--theme-content-action-red-background, var(--primaryBtn, var(--primary)));
  color: var(--theme-content-action-red-copy, #fff);
  box-shadow: var(--theme-content-action-red-shadow, none);
  font: var(--theme-price-grid-action-font, var(--theme-content-action-red-font, var(--theme-content-action-font, 400 15px / 15px var(--heading-font))));
  text-transform: var(--theme-content-action-transform, none);
  letter-spacing: var(--theme-content-action-spacing, normal);
  text-align: center;
  cursor: pointer;
  transition: all .2s linear;
}

.pl-btn:hover {
  border: var(--theme-content-action-red-hover-border, var(--theme-content-action-red-border, 0));
  background: var(--theme-content-action-red-hover-background, var(--primaryBtn-hover, var(--primary-hover)));
  color: var(--theme-content-action-red-hover-copy, #fff);
  opacity: var(--theme-content-action-red-hover-opacity, 1);
}

.pl-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pl-search {
  position: relative;
  flex: 0 1 320px;
  min-width: 0;
}

.pl-msel-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 34px;
  gap: 8px;
  margin: 0;
  border: 1px solid #d9d9de;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-family: Arial, sans-serif;
  text-align: left;
  list-style: none;
  cursor: pointer;
}

.pl-msel-btn:focus,
[data-price-picker]:has([data-price-filter]:checked) > .pl-msel-btn {
  outline: none;
  border-color: #9b9ba1;
}

.pl-msel-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pl-msel-caret {
  flex: none;
  width: 12px;
  height: 8px;
  fill: none;
  stroke: #999;
  stroke-width: 2;
}

.pl-msel-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 50;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #d9d9de;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.pl-msel-opt {
  display: flex;
  align-items: center;
  width: auto;
  gap: 8px;
  margin: 0;
  border-radius: 6px;
  padding: 7px 8px;
  color: #333;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.pl-msel-opt:hover {
  background: #f4f4f6;
}

.pl-msel-opt input {
  flex: none;
  width: auto;
  height: auto;
  margin: 0;
  accent-color: var(--secondary, #333);
}

.pl-view-toggle {
  display: none;
}

.pl-scroll-wrap::before, .pl-scroll-wrap::after, .pl-mxwrap::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 28px;
  opacity: 0;
  pointer-events: none;
  content: "";
  transition: opacity .2s ease;
}

.pl-scroll-wrap::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, .28), transparent);
}

.pl-scroll-wrap::after, .pl-mxwrap::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, .28), transparent);
}

.pl-scroll-wrap.pl-show-left::before, .pl-scroll-wrap.pl-show-right::after, .pl-mxwrap.pl-show-right::after {
  opacity: 1;
}

@media (min-width: 681px) {
  .pl-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .pl-grid {
    min-width: var(--pl-min);
  }
}

@media (max-width: 1020px) {
  /* Original style_resp.css keeps the heading span and button text intact. */
  .pricelist-bar__title > span {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
  }

  .pricelist-bar .finance-popover > summary,
  .pricelist-bar .model-detail__actions > a {
    white-space: nowrap;
  }

  .price-list__content {
    padding-inline: 20px;
  }

  .pl-btn {
    white-space: nowrap;
  }

  .pl-view-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
  }

  .pl-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    padding: 6px;
    background: transparent;
    line-height: 0;
    cursor: pointer;
  }

  .pl-view-btn svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: #c9c5c5;
  }

  .pl-view-btn:hover svg, .pl-view-btn.is-active svg {
    fill: #796f6e;
  }

  .pl-scroll-wrap.pl-show-left::before {
    opacity: 0;
  }

  .pl-mxwrap {
    position: relative;
  }

  .pl-grid.pl-matrix {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--pl-count), auto);
    grid-template-columns: var(--theme-price-grid-label-width, min(9.5em, 38vw));
    grid-auto-columns: minmax(150px, 1fr);
    min-width: 0;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 12px 0 0 12px;
    scrollbar-width: thin;
  }

  .pl-matrix .pl-head, .pl-matrix .pl-row {
    display: contents;
  }

  .pl-matrix .pl-cell, .pl-matrix .pl-head-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    border-right: 1px solid #f1f1f1;
    border-bottom: 1px solid #eee;
    padding: 10px 12px;
    text-align: center;
  }

  .pl-matrix .pl-head-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    align-items: flex-start;
    border-bottom-color: #ffffff1f;
    background: var(--theme-price-grid-heading-background, var(--secondary, #000));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    overflow-wrap: break-word;
  }

  .pl-matrix .pl-cell:not(.pl-name):not(.pl-cta) > dd {
    display: contents;
  }

  .pl-matrix.pl-show-left .pl-head-cell {
    box-shadow: 7px 0 8px -4px #0006;
  }

  .pl-matrix .pl-head-sub {
    color: rgb(255 255 255 / .75);
  }

  .pl-matrix .pl-name {
    border-bottom: 2px solid #e5e5e5;
    background: #fff;
  }

  .pl-matrix .pl-name > dd {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .pl-matrix .pl-thumb {
    width: 90px;
    max-height: 54px;
  }

  .pl-grid.pl-matrix .pl-name-text {
    font-size: 13px;
    font-weight: 700;
  }

  .pl-matrix .pl-head-name {
    border-bottom: 2px solid #ffffff1f;
  }

  .pl-matrix .pl-head-mdlname,
  .pl-matrix .pl-cell.pl-mdlname {
    border-bottom: none;
  }

  .pl-matrix .pl-cta {
    border-bottom: 0;
    padding: 8px;
  }

  .pl-matrix .pl-cta > dd, .pl-matrix .pl-btn {
    width: 100%;
  }

  .pl-matrix .pl-btn {
    display: flex;
    align-items: center;
    min-height: 0;
    height: auto;
    padding: 8px 10px;
    font-size: 12px;
    line-height: normal;
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .price-list--non-car .price-list__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-list--non-car .price-list__header > h1:not(.price-list__category-heading) {
    margin-bottom: 10px;
  }

  .price-list--non-car .price-list__calculator {
    align-self: flex-end;
    width: auto;
    margin: 0 0 0 10px;
  }

  .price-list__header .price-list__category-heading {
    margin-bottom: 18px;
  }

  .price-list {
    padding: var(--theme-pricelist-mobile-padding, 0 0 var(--theme-pricelist-padding-bottom, 40px));
  }

  .price-list--honda {
    padding: 0;
  }

  .price-list__content {
    min-height: 0;
    padding: var(--theme-pricelist-content-mobile-padding, 20px 20px 0);
  }

  .price-list--honda .price-list__content {
    padding: 20px 20px 40px;
  }

  .price-list--non-car .price-list__content {
    padding: 40px 20px;
  }

  .pl-name-model {
    display: inline;
  }

  .pl-grid:not(.pl-matrix) {
    overflow: visible;
    background: transparent;
  }

  .pl-grid:not(.pl-matrix) .pl-head {
    display: none;
  }

  .pl-grid:not(.pl-matrix) .pl-row {
    grid-template-columns: repeat(6, 1fr);
    align-items: stretch;
    column-gap: 0;
    margin-bottom: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 8px 16px 14px;
    background: #fff;
    box-shadow: 0 2px 8px #00000014;
  }

  .pl-grid:not(.pl-matrix) .pl-row:hover {
    background: #fff;
    box-shadow: 0 4px 12px #0000001f;
  }

  .pl-grid:not(.pl-matrix) .pl-cell {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 2px 12px;
    border-bottom: 1px solid #f1f1f1;
    padding: 8px 0;
    text-align: right;
  }

  .pl-grid:not(.pl-matrix) .pl-cell > dd {
    display: contents;
  }

  .pl-grid:not(.pl-matrix) .pl-label {
    display: block;
    grid-column: 1;
    grid-row: 1;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
  }

  .pl-label-sub {
    display: block;
    color: #999;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
  }

  .pl-grid:not(.pl-matrix) .pl-cell > dd > :is(span, del) {
    grid-column: 2;
    text-align: right;
  }

  .pl-grid:not(.pl-matrix) .pl-cell:has(> dd > .pl-v:empty) {
    display: none;
  }

  .pl-grid:not(.pl-matrix) .pl-name {
    display: block;
    margin-bottom: 2px;
    border-bottom: 2px solid #f1f1f1;
    padding: 8px 0 12px;
  }

  .pl-grid:not(.pl-matrix) .pl-name > dd {
    display: flex;
  }

  .pl-grid:not(.pl-matrix) .pl-name:not(:has(.pl-thumb)) {
    margin: -8px -16px 8px;
    border-bottom: 0;
    border-radius: 11px 11px 0 0;
    padding: 16px;
    background: #f7f7f8;
  }

  .pl-grid:not(.pl-matrix) .pl-name-text {
    font-size: 16px;
    font-weight: 700;
  }

  .pl-grid:not(.pl-matrix) .pl-name > dd > .pl-name-text {
    text-align: left;
  }

  .pl-grid:not(.pl-matrix) .pl-lease-terms-same {
    display: block;
    grid-column: 2;
    text-align: right;
  }

  .pl-grid:not(.pl-matrix) .pl-thumb {
    width: 84px;
    max-height: 56px;
  }

  .pl-grid:not(.pl-matrix) .pl-cell.pl-spec {
    display: flex;
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border-bottom: 0;
    padding: 8px 12px 8px 0;
    text-align: left;
  }

  .pl-grid:not(.pl-matrix) .pl-spec + .pl-cell:not(.pl-spec) {
    border-top: 1px solid #f1f1f1;
  }

  .pl-grid:not(.pl-matrix) .pl-spec .pl-label {
    font-size: 11px;
    font-weight: 500;
  }

  .pl-grid:not(.pl-matrix) .pl-spec > dd > .pl-v {
    margin-top: auto;
    font-weight: 600;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .pl-grid:not(.pl-matrix) .pl-fee-line {
    white-space: normal;
  }

  .pl-grid:not(.pl-matrix) .pl-fee:not(:has(.pl-fee-line)) {
    display: none;
  }

  .pl-grid:not(.pl-matrix) .pl-cta {
    display: block;
    border-bottom: 0;
    padding: 12px 0 0;
  }

  .pl-grid:not(.pl-matrix) .pl-btn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 0;
    height: auto;
    margin-top: 5px;
    padding: 9px 10px;
    white-space: normal;
  }

  .pl-matrix .pl-btn {
    margin-top: 5px;
  }
}

@media (max-width: 540px) {
  .price-list__header {
    flex-direction: column;
    gap: 8px;
  }

  .price-list__header h1 {
    margin-bottom: 10px;
  }

  .price-list__calculator {
    width: 100%;
  }

  .price-list__calculator > summary {
    min-height: 40px;
    padding: 0 15px;
  }

  .price-list--honda .price-list__header {
    align-items: flex-start;
  }

  .price-list--honda:not(.price-list--non-car) .price-list__calculator {
    margin-top: 10px;
  }
}

body.has-high-contrast :is(.pl-grid, .pl-head, .pl-row, .pl-head-cell) {
  border-color: #ff0 !important;
  background: #000 !important;
  color: #ff0 !important;
}

body.has-high-contrast :is(.pl-head-sub, .pl-price-now, .pl-price-was, .pl-lease-now, .pl-lease-terms, .pl-fee, .pl-label, .pl-label-sub) {
  color: #ff0 !important;
}
