/* The saved cursor preference applies to every page that loads bb-cursor-pref.js. */

html.bb-cursor-disabled .cursor,
html.bb-cursor-disabled .cursor-dot {
  display: none !important;
}

html.bb-cursor-disabled,
html.bb-cursor-disabled *,
html.bb-cursor-disabled body,
html.bb-cursor-disabled body * {
  cursor: auto !important;
}

/* Account-menu quick switch (mounted by bb-cursor-pref.js) */
#bbNavAuth .bb-cursor-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 10px 10px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font: 700 14px/1.4 var(--bb-control-font, inherit);
  color: var(--bb-control-muted, #90A4AE);
}
#bbNavAuth .bb-cursor-setting input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
#bbNavAuth .bb-cursor-setting__switch {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.18s ease, border-color 0.18s ease;
}
#bbNavAuth .bb-cursor-setting__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eceff1;
  transition: transform 0.18s ease;
}
#bbNavAuth .bb-cursor-setting input:checked + .bb-cursor-setting__switch {
  background: var(--bb-kelly, #00c853);
  border-color: var(--bb-kelly, #00c853);
}
#bbNavAuth .bb-cursor-setting input:checked + .bb-cursor-setting__switch::after { transform: translateX(18px); }
#bbNavAuth .bb-cursor-setting input:focus-visible + .bb-cursor-setting__switch { outline: 2px solid var(--bb-kelly, #00c853); outline-offset: 2px; }
html[data-bb-theme='patriotic'] #bbNavAuth .bb-cursor-setting { border-color: var(--bb-control-border, rgba(10,34,64,0.2)); }
html[data-bb-theme='patriotic'] #bbNavAuth .bb-cursor-setting__switch { background: rgba(10, 34, 64, 0.12); border-color: rgba(10, 34, 64, 0.25); }
/* Touch screens never show the reticle, so the switch would do nothing there. */
@media (hover: none) and (pointer: coarse) {
  #bbNavAuth .bb-cursor-setting { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #bbNavAuth .bb-cursor-setting__switch, #bbNavAuth .bb-cursor-setting__switch::after { transition: none; }
}
#bbNavAuth .bb-cursor-setting + #bbNavLogout { margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0 0 5px 5px; }
html[data-bb-theme='patriotic'] #bbNavAuth .bb-cursor-setting + #bbNavLogout { border-color: var(--bb-control-border, rgba(10,34,64,0.2)); }
