/* Floating Theme Switcher */
.fb-theme-switcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #222;
}

.fb-theme-switcher .fb-ts-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Close (hide for this session) button */
.fb-theme-switcher .fb-ts-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 14px;
  line-height: 1;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.fb-theme-switcher .fb-ts-close:hover {
  color: #222;
  background: rgba(0,0,0,0.03);
}

.fb-theme-switcher .fb-ts-label {
  font-weight: 600;
  font-size: 13px;
}

.fb-theme-switcher .fb-ts-current {
  font-size: 13px;
  color: #666;
}

.fb-theme-switcher .fb-ts-list {
  display: none;
  max-height: 260px;
  overflow: auto;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.fb-theme-switcher.open .fb-ts-list { display: block; }

.fb-theme-switcher .fb-ts-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}

.fb-theme-switcher .fb-ts-item:hover {
  background: rgba(0,0,0,0.03);
}

.fb-theme-switcher .fb-ts-item.active {
  background: linear-gradient(90deg,#eaf4ff,#f7fbff);
  font-weight: 700;
}

/* small responsive tweak */
@media (max-width: 600px) {
  .fb-theme-switcher { right: 10px; left: 10px; bottom: 10px; }
}

/* Ensure visibility when admin bar is present (logged-in users) */
body.admin-bar .fb-theme-switcher {
  z-index: 100000; /* above admin bar's 99999 */
}

/* Also ensure the switcher is always visible and not hidden by any theme styles */
.fb-theme-switcher {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
