/* Site-scoped adapters; native billing values and APIs remain unchanged. */
html[data-baiyun-balance-path="/playground"]
  [data-slot="input-group"]:has(textarea[data-slot="input-group-control"][name="message"])
  button:has(svg.lucide-paperclip),
html[data-baiyun-balance-path="/playground"]
  [data-slot="input-group"]:has(textarea[data-slot="input-group-control"][name="message"])
  button:has(svg.lucide-globe) {
  display: none !important;
}

html[data-baiyun-balance-path="/playground"] [data-baiyun-balance-notice] {
  margin: 0.5rem 0.25rem 0;
  color: var(--muted-foreground, #667085);
  font-size: 0.75rem;
  line-height: 1.6;
}

html[data-baiyun-balance-path="/playground"] [data-baiyun-balance-notice] a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

html[data-baiyun-balance-path="/playground"] [data-baiyun-balance-notice] a:focus-visible {
  outline: 2px solid var(--ring, #3b82f6);
  outline-offset: 3px;
  border-radius: 2px;
}

html[data-baiyun-balance-path="/system-settings/billing/payment"] [data-baiyun-balance-hidden] {
  display: none !important;
}

html[data-baiyun-balance-path="/wallet"] [data-baiyun-balance-empty-referral] {
  display: none !important;
}

html[data-baiyun-balance-path="/system-settings/billing/payment"] [data-baiyun-balance-payment-tabs="epay-only"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0 !important;
  width: min(100%, 22rem);
}

html[data-baiyun-balance-path="/wallet"] [data-baiyun-payment-fee] {
  min-width: 0;
  color: var(--muted-foreground, #667085);
  font-size: 0.8125rem;
  line-height: 1.6;
}

html[data-baiyun-balance-path="/wallet"] [data-baiyun-payment-fee="notice"] {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.5rem;
  background: var(--muted, #f5f6f8);
}

html[data-baiyun-balance-path="/wallet"] [data-baiyun-payment-fee] p {
  margin: 0;
  overflow-wrap: anywhere;
}

html[data-baiyun-balance-path="/wallet"] [data-baiyun-payment-fee="wallet"] {
  grid-column: 1 / -1;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.5rem;
}

html[data-baiyun-balance-path="/wallet"] .baiyun-payment-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

html[data-baiyun-balance-path="/wallet"] .baiyun-payment-fee-row strong {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--foreground, #111827);
  font-weight: 500;
}

html[data-baiyun-balance-path="/wallet"] .baiyun-payment-total {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #e5e7eb);
  color: var(--foreground, #111827);
  font-weight: 500;
}

html[data-baiyun-balance-path="/wallet"] .baiyun-payment-total strong {
  font-size: 1.25rem;
  font-weight: 700;
}

html[data-baiyun-balance-path="/wallet"] [data-baiyun-payment-base] span.text-2xl {
  font-size: 1rem;
}

html[data-baiyun-balance-path="/wallet"] [data-baiyun-payment-fee="dialog"] .baiyun-payment-total strong {
  font-size: 1.75rem;
}

html[data-baiyun-balance-path="/wallet"] [data-baiyun-payment-fee="dialog"] p {
  margin-top: 0.625rem;
  font-size: 0.75rem;
}

html[data-baiyun-balance-path="/wallet"] [data-baiyun-payment-fee="preset"] {
  display: flex;
  width: 100%;
  flex-direction: column;
  font-size: 0.6875rem;
  overflow-wrap: anywhere;
}

html[data-baiyun-balance-path="/wallet"] [data-baiyun-payment-fee="preset"] strong {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground, #111827);
}

html[data-baiyun-balance-path="/wallet"] button:has(> [data-baiyun-payment-fee="preset"]) {
  height: auto;
  min-width: 0;
}
