/* Reusable banners: layout responds to the banner's width, independent of its page. */
.balance-alert {
  --balance-alert-accent: var(--blue);
  container-type: inline-size;
  min-width: 0;
  border: 0;
  border-radius: 18px;
  background: var(--white);
}
.balance-alert--empty {
  --balance-alert-accent: #d74740;
}
.balance-alert-layout {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.balance-alert-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--white);
  background: var(--balance-alert-accent);
}
.balance-alert-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
}
.balance-alert-body {
  min-width: 0;
}
.balance-alert-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
.balance-alert-body p {
  margin: 6px 0 0;
  color: #595959;
  font-size: 14px;
  line-height: 1.6;
}
.balance-alert-topup {
  min-height: 44px;
  justify-self: start;
}
.balance-alert-close {
  display: grid;
  place-items: center;
  align-self: start;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #717171;
  transition: background-color 0.15s, color 0.15s;
}
.balance-alert-close:hover {
  color: var(--text);
  background: var(--inner);
}
.balance-alert-close .ui-icon {
  width: 20px;
  height: 20px;
}
@container (max-width: 760px) {
  .balance-alert-layout {
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    align-items: start;
  }
  .balance-alert-topup {
    grid-column: 2 / -1;
  }
  .balance-alert-close {
    grid-column: 3;
    grid-row: 1;
  }
}
@container (max-width: 440px) {
  .balance-alert-layout {
    grid-template-columns: 44px minmax(0, 1fr) 36px;
    gap: 12px;
    padding: 16px;
  }
  .balance-alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .balance-alert-icon svg {
    width: 28px;
    height: 28px;
  }
  .balance-alert-topup {
    grid-column: 1 / -1;
    width: 100%;
  }
}
