/* Demo color wheel — presenter tool for the RPM Car Club demo ONLY.
   Self-contained rcd- classes; fixed dark styling so the control itself
   stays readable no matter which club color is applied to the site.
   Companion to color-demo.js. The picked color is saved server-side as
   the club's color for every visitor until changed or reset; this file
   only styles the control itself. */

.rcd-launcher {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9995;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #1c1c1e;
  color: #fff;
  font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}
.rcd-launcher:hover { background: #000; }
.rcd-launcher .rcd-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(#e33, #e8720c, #f2c94c, #1e8a3c, #0f8b8d, #1c5fd6, #7b2fd6, #e33);
  border: 1px solid rgba(255, 255, 255, 0.55);
  flex: none;
}

.rcd-panel {
  position: fixed;
  left: 18px;
  bottom: 76px;
  z-index: 9996;
  width: min(92vw, 302px);
  background: #fff;
  color: #1c1c1e;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 14px 16px 16px;
}
.rcd-panel[hidden] { display: none; }
.rcd-title { font-weight: 700; font-size: 15px; margin: 0 0 2px; }
.rcd-sub { font-size: 12px; color: #5a5a5e; margin: 0 0 12px; }

.rcd-swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.rcd-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 0;
  cursor: pointer;
}
.rcd-swatch:hover { transform: scale(1.12); }
.rcd-swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1c1c1e;
}

.rcd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.rcd-row label { font-size: 13px; font-weight: 600; }
.rcd-row input[type="color"] {
  width: 46px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.rcd-hex {
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #5a5a5e;
  text-transform: uppercase;
}

.rcd-reset {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #f2f2f4;
  color: #1c1c1e;
  font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
}
.rcd-reset:hover { background: #e7e7ea; }
.rcd-note { font-size: 11px; color: #8a8a8e; margin: 10px 0 0; }
