/* UK / US switcher bar above the main navbar (includes/chartbar.php) */
:root { --chartbar-h: 42px; }

body { padding-top: var(--chartbar-h); }

/* the existing navbar is fixed-top; drop it below the bar */
.navbar.fixed-top { top: var(--chartbar-h); }

.chartbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--chartbar-h);
  z-index: 1035;                       /* above the navbar (1030) */
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}
.chartbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.chartbar-text { white-space: nowrap; }

.chartbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}
.chartbar-btn:hover, .chartbar-btn:focus, .chartbar-btn.show { color: #ffa7e4; border-color: #ffa7e4; background: transparent; }

.chartbar-flag { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; }
.chartbar-menu { min-width: 7rem; }
.chartbar-menu .dropdown-item { display: flex; font-weight: 600; align-items: center; gap: 0.6rem; text-align: left; }
.chartbar-menu .dropdown-item.active { background: #ffa7e4; color: #000; }

@media (max-width: 575.98px) {
  .chartbar { font-size: 0.8rem; }
  .chartbar-inner { gap: 0.5rem; }
}
