.billing-profile {
  margin: 0 0 28px;
  padding: 21px;
  border: 1px solid #e1e6ec;
  border-radius: 17px;
  background: linear-gradient(135deg, #fff 0%, #fbfcfe 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
}

.billing-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 15px;
}

.billing-profile-grid label > span,
.plan-months > span {
  display: block;
  margin: 0 0 7px;
  color: #788292;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

.billing-profile-grid input {
  width: 100%;
  min-height: 43px;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  background: #fff;
  color: #152033;
  padding: 0 12px;
  font: inherit;
  font-size: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.billing-profile-grid input:focus {
  border-color: #f66718;
  box-shadow: 0 0 0 3px rgba(246, 103, 24, .12);
}

.billing-profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
}

.billing-profile-footer > span {
  color: #7f8998;
  font-size: 8px;
  line-height: 1.5;
}

.billing-profile-footer > span.saving { color: #a0610b; }
.billing-profile-footer > span.saved { color: #087a50; font-weight: 800; }
.billing-profile-footer > span.failed { color: #b42333; font-weight: 800; }
.billing-profile-footer .secondary { flex: 0 0 auto; }

.plan-months {
  display: block;
  margin-top: 17px;
}

.plan-months > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  border: 1px solid #dfe4ea;
  border-radius: 11px;
  overflow: hidden;
  background: #f8fafc;
}

.plan-months button,
.plan-months input {
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  color: #172033;
  text-align: center;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.plan-months button {
  cursor: pointer;
  color: #e85f15;
  transition: background .2s;
}

.plan-months button:hover { background: #fff0e8; }
.plan-months input { border-inline: 1px solid #e5e9ef; appearance: textfield; }
.plan-months input::-webkit-inner-spin-button { appearance: none; }
.plan-price em { display: block; margin-top: 5px; color: #778292; font-size: 8px; font-style: normal; }

@media (max-width: 700px) {
  .billing-profile { padding: 16px; }
  .billing-profile-grid { grid-template-columns: 1fr; }
  .billing-profile-footer { align-items: stretch; flex-direction: column; }
  .billing-profile-footer .secondary { width: 100%; }
}
