/* Pricing summary only. Keep the existing grade accordion and desktop cards. */
.pricing-presentation #grade-prices .pp-cost-switcher[hidden],
.pricing-presentation #grade-prices .plan-card[hidden] { display: none !important; }

/* Phones already identify the grade in the accordion and the three plans in
   the switcher. Omit the duplicate introduction and its spacing. */
@media (max-width: 700px) {
  .pricing-presentation #grade-prices .pp-grade-heading { display: none; }
}

@media (max-width: 900px) {
  /* Share all eight rows, including the three rows inside the price block.
     Invisible cards still size the rows, so text and font changes stay aligned. */
  .pricing-presentation #grade-prices .pp-cost-tabs-active .plan-grid {
    grid-template-rows: repeat(8, auto);
    row-gap: 0;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs-active .plan-card {
    display: grid;
    container-type: normal;
    grid-area: 1 / 1 / span 8 / span 1;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs-active .plan-card h3 {
    /* Match the original card-width sizing without containment on subgrids. */
    font-size: clamp(11px, calc((100cqw - 50px) * .049), 18px);
  }
  .pricing-presentation #grade-prices .pp-cost-tabs-active .plan-card[hidden] {
    display: grid !important;
    visibility: hidden;
    pointer-events: none;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs-active .plan-price {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    min-height: 0;
    margin-top: 18px;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs-active .plan-includes {
    align-content: start;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs-active .plan-actions {
    margin-top: 0;
    align-self: stretch;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs-active .plan-actions .contract-btn {
    height: 100%;
  }
  .pricing-presentation #grade-prices .pp-cost-switcher {
    max-width: 500px;
    margin: 0 auto 16px;
  }
  .pricing-presentation #grade-prices .pp-cost-switcher-guide {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
  }
  .pricing-presentation #grade-prices .pp-cost-switcher-guide > span {
    color: #536579;
    font-size: 11px;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 86px;
    padding: 9px 3px;
    border: 1px solid #aebfc6;
    border-radius: 8px;
    background: #fffdfa;
    color: #17394b;
    font: inherit;
    line-height: 1.4;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs button strong {
    font-size: clamp(11px, 3.3vw, 14px);
    white-space: nowrap;
  }
  .pricing-presentation #grade-prices .pp-cost-tab-number {
    font: 700 11px/1 Arial, sans-serif;
    opacity: .75;
  }
  .pricing-presentation #grade-prices .pp-cost-tab-detail { font-size: 11px; }
  .pricing-presentation #grade-prices .pp-cost-tabs button[aria-selected="true"] {
    border-color: #17394b;
    background: #17394b;
    color: #fff;
    box-shadow: inset 0 -3px #c8a861;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs button[aria-selected="true"]::after {
    content: "";
    position: absolute;
    bottom: -6px;
    border-top: 6px solid #c8a861;
    border-inline: 6px solid transparent;
  }
  .pricing-presentation #grade-prices .pp-cost-tabs button:focus-visible {
    outline: 3px solid #708f8b;
    outline-offset: 3px;
  }
}
