/* Filtro daltonici — picker + modalità anomalia / protanomalia / discromatico
 * Sul client Nitro il filtro si applica SOLO all'iframe (non a #root).
 */

.rplife-cb-picker {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.rplife-cb-picker[hidden] {
  display: none !important;
}

.rplife-cb-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.62);
  backdrop-filter: blur(2px);
}

.rplife-cb-picker__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(165deg, #142536 0%, #0a1520 100%);
  color: #eaf4ff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  padding: 1rem 1rem 0.85rem;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.rplife-cb-picker__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.rplife-cb-picker__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.rplife-cb-picker__head p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(234, 244, 255, 0.68);
}

.rplife-cb-picker__close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.rplife-cb-picker__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.rplife-cb-picker__opts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rplife-cb-picker__opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.rplife-cb-picker__opt:hover {
  background: rgba(122, 215, 255, 0.12);
  border-color: rgba(122, 215, 255, 0.4);
}

.rplife-cb-picker__opt.is-selected {
  border-color: rgba(245, 197, 66, 0.85);
  background: rgba(245, 197, 66, 0.14);
  box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.25);
}

.rplife-cb-picker__opt strong {
  font-size: 0.92rem;
  font-weight: 750;
}

.rplife-cb-picker__opt span {
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(234, 244, 255, 0.62);
}
