/* Estimated capacity in the listen tab: a bar fixed at the bottom centre of the window. */
#listenSoundBudget { position:fixed; left:0; right:0; bottom:calc(var(--listen-budget-bar,0px) + max(20px,env(safe-area-inset-bottom))); z-index:70; box-sizing:border-box; width:min(460px,calc(100vw - 24px)); margin-inline:auto; padding:10px 14px 11px; border:1px solid #dce5f0; border-radius:14px; color:#152c48; background:#fff; box-shadow:0 8px 28px rgba(18,45,85,.22); font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
#listenSoundBudget[hidden], body:not([data-active-tab="listen"]) #listenSoundBudget, body.receipt-preview-open #listenSoundBudget, body.mobile-menu-open #listenSoundBudget { display:none; }
#listenSoundBudget[data-tone="danger"] { border-color:#e9a9b4; background:#fff7f8; }
#listenSoundBudget[data-tone="warn"] { border-color:#e6cd93; background:#fffbf1; }
.listen-budget-heading { display:flex; align-items:baseline; gap:2px 8px; flex-wrap:wrap; }
.listen-budget-percent { margin-left:auto; font-weight:700; }
.listen-budget-status { color:#08724c; font-size:13px; font-weight:600; }
.listen-budget-meter { height:7px; margin-top:7px; overflow:hidden; border-radius:7px; background:#dce7f4; }
.listen-budget-fill { display:block; height:100%; border-radius:inherit; background:#0066dc; transition:width .2s ease; }
.listen-sound-budget[data-tone="warn"] .listen-budget-status { color:#805600; }
.listen-sound-budget[data-tone="warn"] .listen-budget-fill { background:#c47e00; }
.listen-sound-budget[data-tone="danger"] .listen-budget-status, .listen-sound-budget[data-tone="danger"] .listen-budget-percent { color:#a11e30; }
.listen-sound-budget[data-tone="danger"] .listen-budget-fill { background:#bb263e; }
.listen-budget-note { display:flex; align-items:center; justify-content:space-between; gap:0 10px; flex-wrap:wrap; margin-top:5px; color:#405775; font-size:13px; }
.listen-sound-budget[data-tone="danger"] .listen-budget-note { color:#8a1a2b; font-weight:600; }
body .listen-sound-budget .listen-budget-guide { min-height:32px; padding:0; border:0; background:none; color:#0057d9; font:inherit; font-weight:700; text-decoration:underline; cursor:pointer; }
/* Keeps the end of the page clear of the bar. */
body.storefront[data-active-tab="listen"] .site-shell { padding-bottom:calc(var(--listen-budget-bar,0px) + var(--listen-budget-height,0px) + 28px); }

/* Popup: built on the PPM dialog, only the extra controls are added here. */
.listen-budget-dialog p[hidden], .listen-budget-dialog button[hidden] { display:none; }
.listen-budget-dialog a.ppm-bus-keep { display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; box-sizing:border-box; font-size:14px; font-weight:800; text-decoration:none; }

@media (max-width:860px) {
  #listenSoundBudget { bottom:calc(var(--listen-budget-bar,0px) + 8px); padding:8px 12px 9px; }
  #listenSoundBudget .listen-budget-guide { min-height:40px; }
  /* The round buttons move above the bar so nothing is covered. */
  body[data-active-tab="listen"] :is(.zalo-chat-bubble,.store-back-top) { bottom:calc(var(--listen-budget-bar,0px) + var(--listen-budget-height,0px) + 16px) !important; }
}
/* The note already says it is over, and the percentage must stay on the first line. */
@media (max-width:360px) {
  .listen-sound-budget[data-tone="danger"] .listen-budget-status { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  .listen-budget-fill { transition:none; }
}
/* Marks recommended choices; pinned colours so it reads the same on a selected, blue option. */
.option-hot-badge { display:inline-block; margin-left:6px; padding:1px 6px; border-radius:999px; background:#fff1e8; color:#b93a0c; font-size:11px; font-weight:700; line-height:1.45; white-space:nowrap; vertical-align:1px; }
.mode-chip .option-hot-badge { margin-left:0; }
body.storefront #listen #pricing .board-version-choice strong .option-hot-badge { display:inline-block; width:auto; margin:0 0 0 6px; padding:1px 6px; }
/* No blue focus frame on dropdowns (2026-11-07, owner request). Background tint and darker border stay as the focus cue. */
body.storefront select:focus,body.storefront select:focus-visible{outline:none!important;box-shadow:none!important;border-color:#8a97ab!important}
