.astricode-billing {
  max-width: 1040px;
}

.astricode-billing__header {
  max-width: 760px;
  margin-bottom: 30px;
}

.astricode-billing__intro {
  max-width: 720px;
  color: #626c7d;
  font-size: 17px;
  line-height: 1.72;
}

.astricode-billing__list {
  gap: 22px;
}

.astricode-order-card {
  overflow: hidden;
  border: 1px solid #d9e0e9;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(17, 28, 48, .055);
}

.astricode-order-card__top {
  padding: 30px 32px 24px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.astricode-order-card__label,
.astricode-order-card__invoices-label {
  color: #6b74ca;
}

.astricode-order-card h2 {
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -.045em;
}

.astricode-order-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #cfe9dc;
  background: #effaf4;
  color: #28785a;
}

.astricode-order-card__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}

.astricode-order-card__products {
  margin: 0;
  padding: 24px 32px 10px 52px;
  color: #354052;
  font-size: 15px;
}

.astricode-order-card__meta {
  margin-top: 18px;
  background: #f7f9fb;
}

.astricode-order-card__meta div {
  padding: 22px 24px;
}

.astricode-order-card__meta dt {
  color: #8a94a4;
}

.astricode-order-card__meta dd {
  color: #1d2738;
  font-size: 15px;
}

.astricode-order-card__meta div:first-child dd {
  font-size: 19px;
  letter-spacing: -.02em;
}

.astricode-order-card__invoices {
  padding: 26px 32px 30px;
}

.astricode-invoice-row {
  min-height: 70px;
  padding: 16px 0;
}

.astricode-invoice-row strong {
  font-size: 15px;
}

.astricode-invoice-download-button,
.astricode-demo-invoice summary {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.astricode-invoice-download-button:hover,
.astricode-demo-invoice summary:hover {
  transform: translateY(-1px);
}

.astricode-billing__footnote {
  margin-top: 26px;
  border-style: dashed;
  background: #f8fafc;
}

.astricode-demo-surface .astricode-demo-banner {
  margin-bottom: 30px;
  border-color: #cfd7ff;
  background: #f5f6ff;
}

.astricode-demo-surface .astricode-demo-banner__badge {
  background: #e9ebff;
  color: #5f65bd;
}

.astricode-demo-surface .astricode-demo-banner strong {
  color: #202a3b;
}

.astricode-demo-surface .astricode-demo-banner div span {
  color: #667084;
}

.astricode-demo-invoice-chip {
  border-color: #d8def0;
  background: #f7f8fb;
  color: #5f6879;
}

.astricode-demo-invoice {
  margin-top: 16px;
  border: 1px solid #dfe4ec;
  border-radius: 16px;
  background: #f8fafc;
}

.astricode-demo-invoice summary {
  padding: 16px 18px;
  color: #303b4c;
}

.astricode-demo-invoice[open] summary {
  border-bottom-color: #dfe4ec;
}

.astricode-demo-invoice__sheet {
  margin: 18px;
  padding: 28px;
  border: 1px solid #e2e6ec;
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(17, 28, 48, .07);
}

.astricode-demo-invoice__warning {
  align-items: flex-start;
  border-bottom-color: #172033;
}

.astricode-demo-invoice__warning strong {
  font-size: 22px;
  letter-spacing: -.025em;
}

.astricode-demo-invoice__warning span {
  max-width: 260px;
  color: #a13f3f;
  line-height: 1.45;
}

.astricode-demo-invoice__head {
  gap: 34px;
  padding: 26px 0;
}

.astricode-demo-invoice__head strong {
  color: #172033;
  font-size: 16px;
}

.astricode-demo-invoice__meta {
  border-radius: 9px;
  overflow: hidden;
}

.astricode-demo-invoice__meta div {
  padding: 14px;
}

.astricode-demo-invoice__line {
  padding: 15px 0;
}

.astricode-demo-invoice__total {
  padding-top: 24px;
}

.astricode-demo-invoice__total strong {
  color: #172033;
  font-size: 24px;
  letter-spacing: -.03em;
}

.astricode-demo-invoice__legal {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .astricode-billing__header {
    margin-bottom: 24px;
  }

  .astricode-order-card {
    border-radius: 18px;
    box-shadow: none;
  }

  .astricode-order-card__top {
    padding: 24px;
  }

  .astricode-order-card__products {
    padding: 22px 24px 8px 42px;
  }

  .astricode-order-card__meta {
    grid-template-columns: 1fr 1fr;
  }

  .astricode-order-card__meta div {
    padding: 18px 20px;
  }

  .astricode-order-card__invoices {
    padding: 22px 24px 26px;
  }

  .astricode-demo-invoice__sheet {
    margin: 10px;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .astricode-order-card__top {
    gap: 16px;
  }

  .astricode-order-card__status {
    align-self: flex-start;
  }

  .astricode-order-card__meta {
    grid-template-columns: 1fr;
  }

  .astricode-order-card__meta div {
    border-right: 0;
    border-bottom: 1px solid #e4e8ee;
  }

  .astricode-order-card__meta div:last-child {
    border-bottom: 0;
  }

  .astricode-demo-invoice__warning,
  .astricode-demo-invoice__head {
    grid-template-columns: 1fr;
  }

  .astricode-demo-invoice__warning span {
    max-width: none;
  }

  .astricode-demo-invoice__meta {
    grid-template-columns: 1fr;
  }

  .astricode-demo-invoice__line {
    grid-template-columns: minmax(0,1fr) 34px 68px;
    gap: 8px;
    font-size: 12px;
  }

  .astricode-demo-invoice__total {
    text-align: left;
  }
}
