/* Multi-club switcher — overlay on topper / lounge sticky name (no extra page chrome) */

.rcs-club-switcher {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
}

.rcs-club-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

.rcs-club-switcher.is-multi .rcs-club-switcher__btn {
  cursor: pointer;
  border-radius: 6px;
}

.rcs-club-switcher.is-multi .rcs-club-switcher__btn:hover,
.rcs-club-switcher.is-multi .rcs-club-switcher__btn:focus-visible {
  outline: none;
}

.rcs-club-switcher.is-multi .rcs-club-switcher__btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45);
}

.rcs-club-switcher__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rcs-club-switcher__chev {
  flex: 0 0 auto;
  font-size: 1.45em;
  line-height: 1;
  font-weight: 700;
  opacity: 0.95;
  transform: translateY(1px);
}

.rcs-club-switcher.is-open .rcs-club-switcher__chev {
  transform: translateY(1px) rotate(180deg);
}

.rcs-club-switcher__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  min-width: min(100%, 12rem);
  max-width: min(20rem, 80vw);
  max-height: min(50vh, 280px);
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111827;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

/* Portaled to body — escapes topper overflow clipping */
.rcs-club-switcher__menu.is-portaled {
  position: fixed;
  z-index: 400;
  min-width: 12rem;
}

html[data-theme="light"] .rcs-club-switcher__menu {
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.rcs-club-switcher__option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e5e7eb;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

html[data-theme="light"] .rcs-club-switcher__option {
  color: #0f172a;
}

.rcs-club-switcher__option:hover,
.rcs-club-switcher__option:focus-visible {
  outline: none;
  background: rgba(239, 68, 68, 0.18);
}

.rcs-club-switcher__option.is-active {
  background: rgba(239, 68, 68, 0.28);
  color: #fff;
}

html[data-theme="light"] .rcs-club-switcher__option.is-active {
  background: rgba(225, 6, 0, 0.12);
  color: #b91c1c;
}

/* Admin topper: keep name styling on the label */
.rcs-club-admin-topper-name .rcs-club-switcher {
  max-width: 100%;
}

.rcs-club-admin-topper-name .rcs-club-switcher__btn {
  max-width: 100%;
  color: #ef4444;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.rcs-club-admin-topper-name .rcs-club-switcher__label {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rcs-club-admin-topper-name .rcs-club-switcher__chev {
  flex: 0 0 auto;
}

/* Lounge sticky name */
.rcs-club-lounge-sticky-bar__club .rcs-club-switcher__btn {
  color: inherit;
}

.rcs-club-lounge-sticky-bar__club .rcs-club-switcher__label.rcs-club-lounge-club-name {
  display: block;
}
