.card {
  position: relative;
  background: var(--ks-color-neutral-surface);
  border: var(--ks-shell-border-width) solid var(--ks-shell-border-color);
  border-radius: var(--ks-shell-radius-card);
  padding: var(--ks-card-padding);
  min-height: 120px;
  box-shadow: var(--ks-shadow-card-shell);
  background-image: var(--ks-card-material-surface);
}

.card::before,
.bill-summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 var(--ks-card-material-rim-light),
    inset 1px 0 0 rgba(255, 255, 255, 0.48),
    inset -1px 0 0 var(--ks-card-material-rim-side),
    inset 0 -1px 0 var(--ks-card-material-rim-dark);
}

.card h2 {
  margin: 0 0 var(--ks-space-16);
  font-size: var(--ks-font-size-h3);
  line-height: var(--ks-line-height-h3);
  font-weight: var(--ks-font-weight-semibold);
}

.card p {
  margin: 0;
  color: var(--ks-color-neutral-text-secondary);
  font-size: var(--ks-font-size-body);
  line-height: var(--ks-line-height-body);
}

@media (max-width: 767px) {
  .card {
    padding: var(--ks-space-16);
    min-height: 100px;
  }
}


.bill-summary-grid {
  width: var(--ks-shell-width);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.bill-summary-card {
  position: relative;
  min-height: 145px;
  padding: 24px 16px;
  border: var(--ks-shell-border-width) solid var(--ks-shell-border-color);
  border-radius: var(--ks-shell-radius-card-sm);
  background: #ffffff;
  background-image: var(--ks-card-material-surface-soft);
  box-shadow: var(--ks-shadow-card-shell);
}

.bill-summary-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(rgba(148, 163, 184, 0.38), rgba(148, 163, 184, 0.38)) top / 100% 1px no-repeat,
    linear-gradient(rgba(148, 163, 184, 0.28), rgba(148, 163, 184, 0.28)) bottom / 100% 1px no-repeat;
}

.bill-summary-card__lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 100%;
}

.bill-summary-card__icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9))
    drop-shadow(0 2px 2px rgba(15, 23, 42, 0.22));
}

.bill-summary-card__label {
  margin: 0;
  color: var(--color-footer-bg) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.bill-summary-card__value {
  margin: 0;
  color: var(--color-button-primary) !important;
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: none;
  -webkit-text-stroke: 0.6px #ffffff;
  paint-order: stroke fill;
}

@media (min-width: 1024px) {
  .bill-summary-grid {
    width: 100%;
    max-width: var(--homepage-center-lane-width, var(--ks-shell-width));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 1023px) {
  .bill-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .bill-summary-card {
    background: #ffffff;
  }
}


@media (max-width: 767px) {
  .bill-summary-card {
    min-height: 132px;
    padding: 20px 14px;
  }
}

html.theme-dark .card,
html.theme-dark .bill-summary-card {
  background: #132033;
  background-image: none;
  border-color: rgba(127, 149, 184, 0.34);
  box-shadow: none;
}

html.theme-dark .bill-summary-card::after {
  background: none;
}

html.theme-dark .bill-summary-card__icon {
  filter:
    brightness(0) invert(0.95)
    sepia(0.08) saturate(0.7)
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.06))
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.24));
}

html.theme-dark .bill-summary-card__label {
  color: #eef4fb !important;
}

html.theme-dark .bill-summary-card__value {
  color: #7fd5ef !important;
  -webkit-text-stroke: 0;
}
