.plans.card-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.plans.card-container .card:not(:first-child) {
  margin-left: -1px;
}

.plans .card {
  min-width: 16rem;
  width: 16rem;
  max-width: 18rem;
  border-radius: 0;
  flex-grow: 1;
  border-color: #dddfe2;
  position: relative;
}

.plans .card .name {
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.plans .card .name .content {
  position: relative;
  z-index: 0;
}

.plans .card .card-body {
  padding: 1rem 0.7rem 0.7rem 0.7rem;
}

.plans .card.most-popular {
  border: solid 1px var(--ref-color-primary-60);
  z-index: 1;
}

.plans .card.most-popular > div:first-child {
  position: absolute;
  top: -1.5rem;
  left: -1px;
  font-size: 0.85rem;
  height: calc(1.5rem - 1px);
  line-height: calc(1.5rem - 1px);
  text-align: center;
  width: calc(100% + 2px);
  color: var(--ref-color-primary-45);
  background-color: var(--ref-color-primary-95);
  border-left: solid 1px var(--ref-color-primary-95);
  border-right: solid 1px var(--ref-color-primary-95);
}

.plans .card .price {
  color: var(--ref-color-primary-60);
  font-size: 2rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.03rem;
  line-height: 2.5rem;
}

.plans .card hr {
  border: none;
  border-top: solid 1px #dddfe2;
}

.plans .card ol,
.plans ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plans .card ul li {
  display: flex;
  text-align: left;
  margin: 0.9375rem 0;
}

.plans .card ul li .space {
  margin: 0 0.25rem;
}

.plans .card ul li i {
  color: var(--ref-color-primary-60);
  margin: .3rem .5rem 0 0;
  font-style: normal;
}

.plans .campaign-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  color: white;
  padding: 0.2rem 0.4rem;
  background-color: var(--danger);
}

.plans .current-plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  color: var(--ref-color-primary-45);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-xl);
  background: var(--ref-color-primary-95);
  font-weight: bold;
}

.plans .current-plan-badge.cancelled {
  color: white;
  background: #dc3545;
}

.plans .badge-spacer {
  display: inline-block;
  height: 0.5rem;
}

.plans .no-discount-label {
  color: #212529;
  display: inline-block;
}

.plans .no-discount-label::after {
  content: "";
  display: block;
  position: relative;
  top: -0.7rem;
  height: 1px;
  width: 100%;
  border-bottom: solid 1px rgba(0 0 0 / 80%);
  color: #212529;
}


.plans .card button:disabled {
  color: var(--ref-color-primary-50);
  opacity: 1;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .plans.card-container {
    flex-direction: column;
    align-items: center;
  }

  .plans.card-container .card {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .plans.card-container .card.most-popular {
    margin-top: 2rem !important;
  }
}
