.ppf-compare {
  margin: 2rem 0;
  padding: 0;
  color: #1f2937;
  font-family: inherit;
}

.ppf-compare * {
  box-sizing: border-box;
}

.ppf-compare .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* -- Slider row ----------------------------------------------------------- */

.ppf-compare__slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label value"
    "slider slider"
    "scale scale";
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.ppf-compare__slider-label {
  grid-area: label;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.ppf-compare__slider-value {
  grid-area: value;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: #1e1b4b;
  font-variant-numeric: tabular-nums;
}

.ppf-compare__slider {
  grid-area: slider;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  outline: none;
  margin: 0.25rem 0 0;
}

.ppf-compare__slider::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right, #2563eb 0%, #2563eb var(--ppf-progress, 0%), #e5e7eb var(--ppf-progress, 0%), #e5e7eb 100%);
  border-radius: 2px;
}

.ppf-compare__slider::-moz-range-track {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
}

.ppf-compare__slider::-moz-range-progress {
  height: 4px;
  background: #2563eb;
  border-radius: 2px;
}

.ppf-compare__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2563eb;
  margin-top: -7px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ppf-compare__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2563eb;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ppf-compare__slider:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}

.ppf-compare__slider-scale {
  grid-area: scale;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6b7280;
}

.ppf-compare__slider-scale > :nth-child(2) {
  text-align: center;
  flex: 1;
}

.ppf-compare__slider-scale > :first-child {
  text-align: left;
}

.ppf-compare__slider-scale > :last-child {
  text-align: right;
}

/* -- Panels --------------------------------------------------------------- */

.ppf-compare__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.ppf-compare__panel {
  padding: 1.25rem;
  border: 1px solid transparent;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.ppf-compare__panel--cheaper {
  background: #e6f4ee;
  border-color: #bfe4d1;
}

.ppf-compare__panel--more-expensive {
  background: #fbeaea;
  border-color: #f4c6c6;
}

.ppf-compare__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ppf-compare__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.ppf-compare__badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 3px;
  line-height: 1;
}

.ppf-compare__panel--cheaper .ppf-compare__badge {
  background: #0f7a4a;
}

.ppf-compare__panel--more-expensive .ppf-compare__badge {
  background: #b1362a;
}

.ppf-compare__panel-name {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.2;
}

.ppf-compare__select {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%236b7280' d='M5 8l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 16px;
  padding-right: 1.75rem;
}

.ppf-compare__select:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ppf-compare__panel-descriptor {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

.ppf-compare__panel-body {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 0.75rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.ppf-compare__line-items {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.ppf-compare__line-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ppf-compare__line-item:last-child {
  border-bottom: 0;
}

.ppf-compare__line-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.ppf-compare__line-label {
  font-size: 0.95rem;
  color: #1f2937;
}

.ppf-compare__line-value {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
}

.ppf-compare__line-note {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.15);
  font-size: 0.8rem;
  color: #4b5563;
  font-style: italic;
}

.ppf-compare__footnotes {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.ppf-compare__footnote {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.5;
  padding: 0.15rem 0;
}

.ppf-compare__renewal-warning {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #b1362a;
  line-height: 1.5;
  padding-top: 0.4rem;
  border-top: 1px dotted rgba(177, 54, 42, 0.4);
}

.ppf-compare__panel-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(15, 23, 42, 0.15);
  padding-top: 0.85rem;
  gap: 1rem;
}

.ppf-compare__total-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.ppf-compare__total-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
