/* Both price tables use the same spacing and tabular figures. */
.plan-comparison {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 6rem);
  scroll-margin-top: 5.5rem;
}
.plan-comparison h2,
.plan-included h3,
.cost-guide h1,
.cost-guide h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}
.plan-comparison h2 {
  margin: 0 0 clamp(1.75rem, 4vw, 3rem);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
/* Mark the heading on a keyboard jump instead of outlining the entire section. */
.plan-comparison:focus { outline: none; }
.plan-comparison:focus-visible > h2 {
  text-decoration: underline var(--edit-french-blue) 2px;
  text-underline-offset: .15em;
}
.plan-overview,
.plan-options {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.plan-totals {
  width: 100%;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--edit-ink);
}
.plan-totals caption,
.plan-included h3 {
  text-align: start;
  margin: 0 0 1rem;
  font: 600 1.125rem/1.35 var(--font-text);
}
.plan-totals th,
.plan-totals td {
  padding: .875rem clamp(.375rem, 1.2vw, 1rem);
  border-bottom: var(--hairline);
  text-align: end;
}
.plan-totals thead th,
.plan-totals thead td {
  background: var(--edit-paper);
  color: var(--edit-blue-deep);
  font-size: clamp(.8125rem, 2.8vw, 1rem);
}
.plan-totals thead tr > :first-child { border-start-start-radius: .625rem; }
.plan-totals thead tr > :last-child { border-start-end-radius: .625rem; }
.plan-totals tbody th { text-align: start; }
.plan-billing,
.plan-included ul,
.cost-guide p {
  color: var(--edit-ink-soft);
  line-height: 1.6;
}
.plan-billing { margin: 1rem 0 0; }
.plan-care p {
  margin: 0;
  color: var(--edit-ink-soft);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.plan-care p.plan-shipping { margin-top: 1rem; }
.plan-care p + h3 { margin-top: 1.5rem; }
.plan-comparison tfoot th { text-align: start; }
.plan-comparison tfoot tr > * { color: var(--edit-blue-deep); }
.plan-comparison .plan-totals { table-layout: fixed; }
.plan-comparison .plan-totals thead td { width: 38%; }
.plan-comparison .plan-totals th { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .plan-comparison .plan-totals thead td { width: 34%; }
}
.plan-included ul { margin: 0; padding-inline-start: 1.2rem; }
.plan-included li { padding-inline-start: .25rem; }
.plan-included li + li { margin-top: .5rem; }
.plan-included li::marker { color: var(--edit-french-blue); }
.plan-options {
  gap: 1rem;
  margin-block: clamp(1.75rem, 4vw, 3rem) 1rem;
}
.plan-option {
  display: grid;
  align-content: start;
  gap: .5rem;
  padding: clamp(.875rem, 2vw, 1.5rem);
  background: var(--edit-paper);
  border: var(--hairline);
  border-radius: var(--r-lg);
}
.plan-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  color: var(--edit-blue-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.plan-link:hover { color: var(--edit-ink); }
.plan-option .btn,
.cost-guide .btn {
  min-height: 48px;
  padding: .875rem 1rem;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}
.plan-page main a:focus-visible {
  outline: 3px solid var(--edit-blue-deep);
  outline-offset: 3px;
}
.cost-guide {
  width: min(100% - 2.5rem, 44rem);
  margin: clamp(7rem, 12vw, 10rem) auto 5rem;
}
.cost-guide h1 { margin: 1rem 0; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.cost-guide h2 { margin: 2rem 0 .75rem; font-size: 2rem; }
.cost-guide p { margin: .75rem 0; }
.cost-guide .plan-totals { margin-block: 2rem 1.5rem; }
.cost-guide .btn { margin-top: 1rem; }
@media (min-width: 48rem) {
  .plan-overview { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .plan-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-included { padding-inline-start: 2rem; border-inline-start: var(--hairline); }
}
@media (max-width: 700px) {
  /* Let the header scroll away so every price row can be read together. */
  .plan-page > .bb-nav { position: absolute; }
  .plan-comparison { scroll-margin-top: 0; }
  html:has(.plan-page) { scroll-padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.plan-page) { scroll-behavior: auto; }
}

.care-guide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.care-guide-nav .language-switcher__link { min-height: 44px; min-width: 44px; }

.plan-comparison .plan-option { gap: 32px; }
@media (max-width: 700px) {
  .plan-comparison .plan-option { gap: 24px; }
}

/* Keep the renewal amount visible alongside the other treatment details. */
.wlh-page .sr-facts { flex-wrap: wrap !important; }
.wlh-page .sr-facts span { max-width: 100%; overflow-wrap: anywhere; }
