/* Keep paired action buttons side by side on phones. */
@media (max-width: 820px) {
  .actions:has(> .btn:nth-child(2):last-child),
  .cta-actions,
  .contract-intro-actions,
  .contract-actions,
  .store-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
  }

  .actions:has(> .btn:nth-child(2):last-child) > .btn,
  .cta-actions > .btn,
  .contract-intro-actions > a,
  .contract-actions > a,
  .store-actions > a {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 13px;
    white-space: nowrap;
  }

  /* The prepaid self-opening guide keeps its original full-width stack. */
  body.self-open-page .actions,
  body.self-open-page .cta-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body.self-open-page .actions > .btn,
  body.self-open-page .cta-actions > .btn {
    width: 100% !important;
  }
}
