.gc-usage,
.gc-usage-footer {
  color: var(--gc-text, #fff);
  font: 400 .875rem/1.5 system-ui, sans-serif;
}

.gc-usage[hidden],
.gc-usage [hidden],
.gc-usage-footer[hidden] {
  display: none !important;
}

.gc-usage {
  background: var(--gc-panel, #1c1f26);
  border-block-start: 1px solid var(--gc-green, #84b529);
}

.gc-usage[data-prompt] {
  position: fixed;
  z-index: 15;
  inset: auto 0 0;
  max-block-size: 65vh;
  max-block-size: 65dvh;
  overflow: auto;
  padding-block-end: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px #0005;
}

:root {
  scroll-padding-bottom: var(--gc-usage-prompt-height, 0px);
}

.gc-usage-inner,
.gc-usage-footer {
  box-sizing: border-box;
  width: min(100%, var(--gc-content, 1120px));
  margin-inline: auto;
  padding: 8px 16px;
}

.gc-usage-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
}

.gc-usage h2,
.gc-usage p {
  margin: 0;
  color: inherit;
  font: inherit;
}

.gc-usage h2 {
  font-weight: 700;
}

.gc-usage details {
  display: inline;
  margin-inline-end: 8px;
}

.gc-usage summary,
.gc-usage a,
.gc-usage-footer .gc-usage-settings {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.gc-usage summary {
  display: inline-block;
}

.gc-usage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gc-usage .gc-usage-btn,
.gc-usage-footer .gc-usage-settings {
  min-height: 44px;
  margin: 0;
  padding: 6px 12px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.gc-usage .gc-usage-btn {
  min-width: 88px;
  border: 1px solid var(--gc-green, #84b529);
  border-radius: 8px;
  font-weight: 650;
  cursor: pointer;
}

.gc-usage-footer .gc-usage-settings {
  border: 0;
  padding-inline: 0;
}

.gc-usage .gc-usage-btn:hover:not(:disabled) {
  background: var(--gc-green-glow, rgba(132, 181, 41, .12));
}

.gc-usage .gc-usage-btn:disabled {
  cursor: wait;
  opacity: .65;
}

.gc-usage :focus-visible,
.gc-usage-footer :focus-visible {
  outline: 2px solid var(--gc-text, #fff);
  outline-offset: 2px;
}

.gc-usage [data-usage-status] {
  flex: 1 0 100%;
}

.gc-usage [data-usage-status]:empty {
  height: 0;
  margin-block-start: -4px;
}

@media (max-width: 520px) {
  .gc-usage-inner > div {
    flex: 1 1 100%;
  }

  .gc-usage .gc-usage-btn {
    flex: 1 1 0;
  }
}
