body {
  background: #f5f7fb;
  color: #101828;
}


.billing-history-page {
  min-height: 100vh;

  padding:
    65px 24px
    110px;
}


.billing-history-shell {
  width:
    min(
      1050px,
      100%
    );

  margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.billing-history-header {
  margin-bottom: 38px;
}


.billing-eyebrow {
  display: block;

  margin-bottom: 9px;

  color: #246bff;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 1.5px;
}


.billing-history-header h1 {
  margin: 0;

  font-size:
    clamp(
      40px,
      5vw,
      58px
    );

  line-height: 1;

  letter-spacing: -2px;
}


.billing-history-header p {
  max-width: 650px;

  margin:
    15px 0 0;

  color: #667085;

  font-size: 15px;

  line-height: 1.65;
}


/* =========================================
   SUMMARY
========================================= */

.billing-summary-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}


.billing-summary-card {
  padding: 24px;

  border:
    1px solid #e4e7ec;

  border-radius: 18px;

  background: #fff;

  box-shadow:
    0 10px 32px
    rgba(16,24,40,.05);
}


.billing-summary-label {
  display: block;

  margin-bottom: 10px;

  color: #667085;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;
}


.billing-summary-card strong {
  font-size: 24px;

  letter-spacing: -.6px;
}


/* =========================================
   SECTION
========================================= */

.billing-history-section {
  margin-top: 48px;
}


.billing-history-section-header {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 20px;
}


.billing-history-section-header h2 {
  margin: 0;

  font-size: 28px;

  letter-spacing: -.8px;
}


.billing-filter {
  min-height: 42px;

  padding:
    0 13px;

  border:
    1px solid #d0d5dd;

  border-radius: 10px;

  outline: none;

  background: #fff;

  color: #344054;

  font: inherit;

  font-size: 12px;
}


/* =========================================
   LIST
========================================= */

.billing-history-list {
  display: grid;

  gap: 12px;
}


.billing-history-item {
  display: grid;

  grid-template-columns:
    minmax(220px, 1.4fr)
    minmax(120px, .8fr)
    minmax(100px, .7fr)
    auto;

  align-items: center;

  gap: 20px;

  padding: 21px 23px;

  border:
    1px solid #e4e7ec;

  border-radius: 16px;

  background: #fff;

  box-shadow:
    0 7px 24px
    rgba(16,24,40,.035);
}


/* =========================================
   TRANSACTION INFO
========================================= */

.billing-payment-info {
  display: flex;

  align-items: center;

  gap: 15px;

  min-width: 0;
}


.billing-payment-icon {
  width: 45px;
  height: 45px;

  flex:
    0 0 45px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #f0f4ff;

  color: #246bff;

  font-size: 17px;
  font-weight: 800;
}


.billing-payment-copy {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 4px;
}


.billing-payment-copy strong {
  font-size: 14px;
}


.billing-payment-copy span {
  color: #667085;

  font-size: 11px;
}


/* =========================================
   AMOUNT
========================================= */

.billing-amount {
  display: flex;

  flex-direction: column;

  gap: 4px;
}


.billing-amount strong {
  font-size: 15px;
}


.billing-amount span {
  color: #667085;

  font-size: 11px;
}


/* =========================================
   STATUS
========================================= */

.billing-status {
  width: fit-content;

  padding:
    6px 9px;

  border-radius: 999px;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .4px;

  text-transform: uppercase;
}


.billing-status--paid {
  background:
    rgba(39,174,96,.1);

  color: #168344;
}


.billing-status--pending {
  background:
    rgba(245,158,11,.12);

  color: #b66a00;
}


.billing-status--failed {
  background:
    rgba(217,45,32,.09);

  color: #b42318;
}


.billing-status--refunded {
  background:
    rgba(36,107,255,.09);

  color: #246bff;
}


/* =========================================
   ACTION
========================================= */

.billing-action {
  display: flex;

  justify-content: flex-end;
}


.billing-invoice-link {
  min-height: 37px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding:
    0 12px;

  border:
    1px solid #d0d5dd;

  border-radius: 9px;

  background: #fff;

  color: #344054;

  font-size: 11px;
  font-weight: 700;

  text-decoration: none;
}


.billing-invoice-link:hover {
  background: #f8fafc;
}


/* =========================================
   EMPTY / LOADING / ERROR
========================================= */

.billing-history-message,
.billing-history-empty,
.billing-history-error {
  padding: 42px;

  border:
    1px solid #e4e7ec;

  border-radius: 18px;

  background: #fff;

  text-align: center;
}


.billing-history-message {
  color: #667085;
}


.billing-history-empty h3 {
  margin:
    13px 0 7px;

  font-size: 20px;
}


.billing-history-empty p {
  max-width: 440px;

  margin:
    0 auto;

  color: #667085;

  font-size: 13px;

  line-height: 1.6;
}


.billing-empty-icon {
  width: 52px;
  height: 52px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin: 0 auto;

  border-radius: 14px;

  background: #f0f4ff;

  color: #246bff;

  font-size: 22px;
  font-weight: 800;
}


.billing-history-error {
  color: #b42318;

  border-color:
    rgba(217,45,32,.18);

  background:
    rgba(217,45,32,.03);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 820px) {

  .billing-summary-grid {
    grid-template-columns: 1fr;
  }


  .billing-history-item {
    grid-template-columns:
      1fr auto;
  }


  .billing-amount {
    align-items: flex-end;
  }


  .billing-status {
    grid-column: 1;
  }


  .billing-action {
    grid-column: 2;

    grid-row: 2;
  }

}


@media (max-width: 600px) {

  .billing-history-page {
    padding:
      44px 16px
      80px;
  }


  .billing-history-section-header {
    align-items: stretch;

    flex-direction: column;
  }


  .billing-filter {
    width: 100%;
  }


  .billing-history-item {
    grid-template-columns: 1fr;

    gap: 15px;
  }


  .billing-amount {
    align-items: flex-start;
  }


  .billing-status,
  .billing-action {
    grid-column: auto;

    grid-row: auto;
  }


  .billing-action {
    justify-content: flex-start;
  }


  .billing-invoice-link {
    width: 100%;
  }

}