/* MMO: 2026-11-23 EHDS PATTERN39 compact slider, non-clinical presentation only.
 * Copyright (c) 2026 Maurice M. Ohayon. All rights reserved.
 * Native radio choices remain in the form and own the response protocol. */
#surveyContainer .ad-question-item[data-mmo-ehds39="1"] > .ai-categorical-choices {
  display: none !important;
}
#surveyContainer .mmo-ehds39-control,
#surveyContainer .mmo-ehds39-control * { box-sizing: border-box; }
#surveyContainer .mmo-ehds39-control {
  margin: 3px 0 12px;
  padding: 7px 7px 5px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
}
#surveyContainer .mmo-ehds39-line {
  min-height: 39px;
  display: flex;
  align-items: center;
  padding: 0 5px;
}
#surveyContainer .mmo-ehds39-range {
  display: block !important;
  appearance: none;
  -webkit-appearance: none;
  width: 100% !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer;
  touch-action: pan-y;
}
#surveyContainer .mmo-ehds39-range::-webkit-slider-runnable-track {
  height: 3px; border-radius: 4px;
  background: linear-gradient(90deg,#4576de 0%,#aac1f2 50%,#de6680 100%);
}
#surveyContainer .mmo-ehds39-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #497bdc;
  margin-top: -7px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
#surveyContainer .mmo-ehds39-range::-moz-range-track {
  height: 3px; border-radius: 4px; background: #759ce3;
}
#surveyContainer .mmo-ehds39-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #497bdc; background:#fff;
}
#surveyContainer .mmo-ehds39-control[data-answer="empty"] .mmo-ehds39-range::-webkit-slider-thumb {
  background: #f5f6f8; border-color: #afb7c5; opacity: .65;
}
#surveyContainer .mmo-ehds39-control[data-answer="special"] .mmo-ehds39-range::-webkit-slider-thumb {
  background: #f5f6f8; border-color: #afb7c5; opacity: .45;
}
#surveyContainer .mmo-ehds39-control[data-answer="ordinal"] .mmo-ehds39-range::-webkit-slider-thumb {
  background: #2d9e57; border-color:#2d9e57;
}
#surveyContainer .mmo-ehds39-ticks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  margin: -2px -5px 3px;
}
#surveyContainer .mmo-ehds39-tick {
  min-width: 0;
  font-size: clamp(9px, 2.5vw, 11px);
  line-height: 1.1;
  text-align: center;
  color: #56708b;
  padding: 2px 2px 1px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
#surveyContainer .mmo-ehds39-tick:hover {color:#1f4c94;}
#surveyContainer .mmo-ehds39-footer {
  display:flex; align-items:center; justify-content:space-between;
  gap:5px; flex-wrap:wrap;
  margin-top:4px;
}
#surveyContainer .mmo-ehds39-current {
  font-size: 12px; line-height:1.2; font-weight: 600; color:#31578b;
}
#surveyContainer .mmo-ehds39-control[data-answer="ordinal"] .mmo-ehds39-current {color:#158143;}
#surveyContainer .mmo-ehds39-specials {
  display: flex; flex-wrap:wrap; gap:5px;
}
#surveyContainer .mmo-ehds39-special {
  appearance:none; -webkit-appearance:none;
  border:1px solid #cad5e6; background:#f8fafc;
  border-radius:5px;
  color:#49627e; font-size:11px; font-weight:500;
  min-height:28px; line-height:1.1; padding:4px 7px;
}
#surveyContainer .mmo-ehds39-special[aria-pressed="true"] {
  background:#e3f4e9; color:#147840; border-color:#51a66e;
}
#surveyContainer .mmo-ehds39-error { font-size: 11px; color:#a71d29; }
#surveyContainer .mmo-ehds39-control input:focus-visible,
#surveyContainer .mmo-ehds39-control button:focus-visible {
  outline:2px solid #2462be; outline-offset:2px;
}
