/* RESELLER CREDITS AND FLEXIBLE PAYMENT V1 */

.flexible-payment-panel {
  margin-bottom: 24px;
  padding: 22px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 0.65fr);
  align-items: center;
  gap: 24px;
  border:
    1px solid
    rgba(138, 92, 246, 0.28);
  border-radius: 19px;
  background:
    linear-gradient(
      135deg,
      rgba(24, 204, 243, 0.055),
      rgba(138, 92, 246, 0.085),
      rgba(250, 60, 152, 0.055)
    );
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.flexible-payment-panel.selected {
  border-color:
    rgba(24, 204, 243, 0.70);
  box-shadow:
    0 0 0 1px
    rgba(250, 60, 152, 0.20),
    0 16px 45px
    rgba(24, 204, 243, 0.09);
}

.flexible-label {
  display: block;
  margin-bottom: 9px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.flexible-payment-copy h2 {
  margin-bottom: 9px;
  font-size: 25px;
}

.flexible-payment-copy p {
  margin-bottom: 8px;
  color: #d9dfeb;
  font-size: 13px;
  line-height: 1.55;
}

.flexible-payment-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.flexible-payment-controls label {
  display: block;
  margin-bottom: 8px;
}

.flexible-amount-input {
  height: 49px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border:
    1px solid
    rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(3, 7, 15, 0.72);
}

.flexible-amount-input:focus-within {
  border-color: var(--cyan);
  box-shadow:
    0 0 0 4px
    rgba(24, 204, 243, 0.08);
}

.flexible-amount-input span {
  padding-left: 14px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 900;
}

.flexible-amount-input input {
  height: 100%;
  margin: 0 !important;
  padding-left: 8px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 18px;
  font-weight: 850;
}

#useFlexibleAmount {
  width: 100%;
  min-height: 45px;
  margin-top: 11px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background:
    linear-gradient(
      100deg,
      #12bee8,
      #7759ef,
      #ef3b91
    );
  cursor: pointer;
  font-weight: 850;
}

.flexible-amount-error {
  min-height: 17px;
  margin-top: 7px;
  color: #ff8f96;
  font-size: 10px;
}

.flexible-limits {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

@media (max-width: 760px) {
  .flexible-payment-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .flexible-payment-panel {
    padding: 17px;
  }
}


/* FLEXIBLE PAYMENT BELOW PACKAGES V2 */

#plansGrid + .flexible-payment-panel {
  margin-top: 32px;
  margin-bottom: 0;
  border-top-width: 1px;
}

#plansGrid:empty + .flexible-payment-panel {
  display: none;
}

@media (max-width: 640px) {
  #plansGrid + .flexible-payment-panel {
    margin-top: 25px;
  }
}
