.billing-dialog {
  width: min(760px, calc(100vw - 48px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #20242c;
  box-shadow: 0 24px 80px #11182735;
  overflow: hidden;
}

.billing-dialog::backdrop {
  background: #252b3573;
  backdrop-filter: blur(2px);
}

.dialog-close {
  position: absolute;
  top: 19px;
  right: 22px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #667085;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 34px 24px;
  border-bottom: 1px solid #e8ebf0;
}

.dialog-heading p {
  margin: 0 0 6px;
  color: #667085;
  font-size: 14px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 25px;
}

.dialog-heading > span {
  margin: 8px 48px 0 0;
  padding: 7px 10px;
  border-radius: 5px;
  background: #f3f5f8;
  color: #5d697a;
  font-size: 13px;
  font-weight: 600;
}

.dialog-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 34px 0;
  padding: 17px 20px;
  border-radius: 6px;
  background: #f7f8fa;
  color: #667085;
}

.dialog-balance strong {
  color: #20242c;
  font-size: 23px;
}

.dialog-balance small {
  color: #687386;
  font-size: 13px;
  font-weight: 500;
}

.dialog-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 22px 34px;
}

.package-option {
  position: relative;
  display: flex;
  min-height: 128px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 19px;
  border: 1px solid #dce1e8;
  border-radius: 7px;
  background: #fff;
  color: #242933;
  text-align: left;
  cursor: pointer;
}

.package-option span {
  color: #667085;
  font-size: 14px;
}

.package-option strong {
  margin-top: 7px;
  font-size: 25px;
}

.package-option small {
  margin-top: 7px;
  color: #7c8797;
  font-size: 12px;
}

.package-option em {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 4px 9px;
  border-radius: 0 7px 0 7px;
  background: #202a3a;
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.package-option.selected {
  padding: 18px;
  border: 2px solid #293447;
  background: #fafbfc;
  box-shadow: 0 5px 14px #29344712;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 34px;
  padding: 16px 18px;
  border: 1px solid #dce1e8;
  border-radius: 7px;
}

.alipay-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #1677ff;
  color: #fff;
  font-weight: 800;
}

.payment-method b,
.payment-method span {
  display: block;
}

.payment-method b {
  font-size: 14px;
}

.payment-method span {
  margin-top: 4px;
  color: #8993a2;
  font-size: 12px;
}

.payment-method i {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-left: auto;
  border-radius: 50%;
  background: #293447;
  color: #fff;
  font-size: 12px;
  font-style: normal;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 24px;
  padding: 20px 34px;
  border-top: 1px solid #e8ebf0;
  background: #fafbfc;
}

.dialog-actions button {
  min-width: 106px;
  padding: 11px 20px;
  border: 1px solid #cbd1da;
  border-radius: 6px;
  background: #fff;
  color: #586476;
  cursor: pointer;
}

.dialog-actions .pay-action {
  border-color: #293447;
  background: #293447;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 820px) {
  .billing-dialog {
    width: calc(100vw - 28px);
  }

  .dialog-packages {
    grid-template-columns: 1fr;
  }
}
