@layer components {
  /* The plans side by side while they fit, otherwise one below the other */
  .pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: var(--space-3);
  }

  /* Only the prices and buttons of the billing period chosen in the switch */
  .pricing:has(.segmented-control__input[value="monthly"]:checked) [data-period="six_months"],
  .pricing:has(.segmented-control__input[value="six_months"]:checked) [data-period="monthly"] {
    display: none;
  }
}
