/* Floating window settings gear menu (viewer + streamer) */

.ws-header-settings-wrap,
.fcp-header-settings-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ws-settings-menu,
.fcp-settings-menu {
  /* Fixed to the viewport so the menu overlays the whole screen and is never
     clipped by the floating window's `overflow: hidden`. Sits above the floating
     window and globe controls so it stays usable while a stream is live. */
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 3200;
  min-width: 220px;
  width: min(300px, 90vw);
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 22, 0.97);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  pointer-events: auto;
}

.ws-settings-menu.open,
.fcp-settings-menu.open {
  display: block;
}

.ws-settings-title,
.fcp-settings-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.ws-settings-row,
.fcp-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #e2e8f0;
}

.ws-ringtone-select,
.fcp-ringtone-select {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.ws-settings-test-ring,
.fcp-settings-test-ring {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.1);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 6px;
}

.ws-settings-test-ring:hover,
.fcp-settings-test-ring:hover {
  background: rgba(0, 212, 255, 0.18);
}

.ws-settings-save-layout,
.fcp-settings-save-layout {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ws-settings-save-layout:hover,
.fcp-settings-save-layout:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ws-settings-action,
.fcp-settings-action {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ws-settings-action:hover,
.fcp-settings-action:hover {
  background: rgba(255, 255, 255, 0.1);
}
