/* Compact footer: scoped styles shared by source and the production-only patch. */
.widget-container:has(.usage-plan-footer) { --usage-footer-space: 24px; padding-bottom: var(--usage-footer-space); }
.usage-plan-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 16px; row-gap: 24px; margin-top: var(--usage-footer-space,24px); padding: 0; position: relative; }
.widget-container .usage-plan-footer .view-history-button { position: static !important; margin: 0; width: auto; flex-shrink: 0; }
.usage-compact { max-width: 100%; font-family: 'Manrope', sans-serif; letter-spacing: -0.4px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; min-width: 0; color: #fff; }
.usage-compact-label { display: flex; align-items: center; min-height: 30px; color: rgba(255,255,255,.55); font-size: 13px; font-weight: 600; }
.usage-compact-periods { display: flex; align-items: center; box-sizing: border-box; height: 30px; padding: 2px; background: rgba(255,255,255,.03); border: 1px solid rgba(234,236,245,.09); border-radius: 7px; }
.usage-compact-periods button { padding: 5px 7px; border: 1px solid transparent; border-radius: 5px; color: rgba(255,255,255,.55); background: transparent; font: 600 12px/1 'Manrope', sans-serif; white-space: nowrap; cursor: pointer; }
.usage-compact-periods button:hover { color: #fff; }
.usage-compact-periods button[aria-pressed="true"] { color: #a995ff; border-color: rgba(112,85,226,.3); background: rgba(112,85,226,.15); }
.usage-compact-periods button:focus-visible { outline: 2px solid #a995ff; outline-offset: 2px; }
/* The main row centers against View History; the note never shifts that row. */
.usage-compact-result { position: relative; min-height: 30px; flex-shrink: 0; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.usage-compact-result strong { display: flex; align-items: center; gap: 4px; min-height: 30px; font-weight: 700; white-space: nowrap; }
.usage-compact-result strong span { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600; }
.usage-compact-result small { position: absolute; top: 100%; left: 0; display: block; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.5; margin-top: 3px; white-space: nowrap; }
.usage-compact-unavailable { display: flex; align-items: center; min-height: 30px; font-size: 12px; color: rgba(255,255,255,.55); }
.usage-compact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 768px) {
  .widget-container:has(.usage-plan-footer) { --usage-footer-space: 20px; }
}
@media (max-width: 480px) {
  .widget-container:has(.usage-plan-footer) { --usage-footer-space: 18px; }
  .usage-compact { gap: 8px; }
  .widget-container .usage-plan-footer .view-history-button { margin-left: auto; }
}
