#plansModal .plan-payment-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#plansModal .current-plan-badge {
  align-self: flex-start;
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(200, 245, 69, .48);
  border-radius: 999px;
  background: rgba(200, 245, 69, .12);
  color: #d4f681;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

#plansModal .plan-payment-choice {
  padding: 0;
  min-height: 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

#plansModal .plan-payment-choice .plan-payment-logo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
}

@media (min-width: 701px) {
  #plansModal .plan-cards-grid {
    align-items: stretch;
  }

  #plansModal .plan-card {
    height: 100%;
    min-height: 580px;
  }

  #plansModal .plan-free-box,
  #plansModal .plan-btns {
    margin-top: auto;
  }

  #plansModal .plan-free-box {
    margin-bottom: 12px;
  }

  #plansModal .plan-payment-options {
    width: min(100%, 186px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* Keep the mobile payment choices the same size and centre the remaining two. */
.plan-pay-sheet-methods { display: flex; justify-content: center; gap: 10px; }
.plan-pay-sheet-methods button { flex: 0 0 calc((100% - 20px) / 3); min-width: 0; padding: 0; border: 0; overflow: hidden; }
.plan-pay-sheet-methods button:first-child { background: #14162e; }
.plan-pay-sheet-methods button:nth-child(2) { background: #fff; }
.plan-pay-sheet-methods img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.plan-pay-sheet-methods button:focus-visible { outline: 3px solid #c8f545; outline-offset: 3px; }
