/* gs-select.css – 06/12/2026: one CLEAR selected state on every Go page (light + dark, ar + en).
   Checkbox: empty box -> orange box with white tick. Radio: empty circle -> orange ring + orange dot.
   Selected option rows / chips get an orange tint + orange edge. Loaded LAST (after app-dark.css).
   :not(#gs-z) adds ID weight so older page rules (which painted the checked box white / dark) can't win.
   Put class "gs-native" on an input to keep its own look. Source: /root/select-fix. */
:root { --gss-or: #ED6F40; --gss-or-dk: #c2410c; --gss-box: #fff; --gss-edge: #94a3b8; --gss-tint: rgba(237,111,64,.14); --gss-tx: #1e293b; }
html.gs-dark { --gss-box: rgba(15,23,42,.6); --gss-edge: rgba(226,232,240,.6); --gss-tint: rgba(237,111,64,.24); --gss-tx: #fff; }

:root body input[type=checkbox]:not(.gs-native):not(#gs-z),
:root body input[type=radio]:not(.gs-native):not(#gs-z) {
  -webkit-appearance: none !important; appearance: none !important; position: relative; flex-shrink: 0; box-sizing: border-box;
  min-width: 16px; min-height: 16px; padding: 0 !important; cursor: pointer; vertical-align: middle;
  background: var(--gss-box) !important; background-image: none !important; box-shadow: none !important;
  border: 2px solid var(--gss-edge) !important; border-radius: 5px; transition: background .12s, border-color .12s, box-shadow .12s;
}
:root body input[type=radio]:not(.gs-native):not(#gs-z) { border-radius: 50% !important; }
:root body input[type=checkbox]:not(.gs-native):not(#gs-z):hover,
:root body input[type=radio]:not(.gs-native):not(#gs-z):hover { border-color: var(--gss-or) !important; }

/* checked = solid orange + white tick */
:root body input[type=checkbox]:not(.gs-native):not(#gs-z):checked {
  background: var(--gss-or) !important; border-color: var(--gss-or) !important; }
:root body input[type=checkbox]:not(.gs-native):not(#gs-z)::before,
:root body input[type=radio]:not(.gs-native):not(#gs-z)::before,
:root body input[type=radio]:not(.gs-native):not(#gs-z)::after { display: none !important; content: none !important; }
:root body input[type=checkbox]:not(.gs-native):not(#gs-z)::after { content: none; }
:root body input[type=checkbox]:not(.gs-native):not(#gs-z):checked::after {
  content: "" !important; display: block !important; position: absolute; left: 50%; top: 45%; width: 28%; height: 55%;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; background: none; transform: translate(-50%, -50%) rotate(45deg); }
/* indeterminate (select-all partly) = orange with white bar */
:root body input[type=checkbox]:not(.gs-native):not(#gs-z):indeterminate { background: var(--gss-or) !important; border-color: var(--gss-or) !important; }
:root body input[type=checkbox]:not(.gs-native):not(#gs-z):indeterminate::after {
  content: "" !important; display: block !important; position: absolute; left: 22%; right: 22%; top: 50%; height: 2.5px; margin-top: -1.25px; background: #fff; border: 0; transform: none; }

/* radio checked = orange ring + orange dot */
:root body input[type=radio]:not(.gs-native):not(#gs-z):checked {
  border-color: var(--gss-or) !important; background: radial-gradient(circle, var(--gss-or) 0 42%, var(--gss-box) 47%) !important; }

:root body input[type=checkbox]:not(.gs-native):not(#gs-z):focus-visible,
:root body input[type=radio]:not(.gs-native):not(#gs-z):focus-visible { outline: 2px solid var(--gss-or); outline-offset: 2px; }
:root body input[type=checkbox]:not(.gs-native):not(#gs-z):disabled,
:root body input[type=radio]:not(.gs-native):not(#gs-z):disabled { opacity: .45; cursor: not-allowed; }

/* the row / option that holds a checked input */
:root body :is(.hp-opt, .hp-chk, .hp-qopt, .hp-hrow, .goid-check, .goid-q-opt, .gt-opt, .gj-opt, .gst-pick-q, .gha-opt, .ghp-brow):has(input:checked):not(#gs-z) {
  background: var(--gss-tint) !important; box-shadow: inset 0 0 0 1.5px var(--gss-or) !important; border-radius: 10px; color: var(--gss-tx) !important; }
:root body :is(.hp-opt, .hp-chk, .hp-qopt, .goid-check, .gt-opt, .gj-opt):has(input:checked):not(#gs-z) :is(span, b, strong, em) { color: var(--gss-tx) !important; font-weight: 700; }

/* chips / option cards marked selected by class */
:root body :is(.goid-q-opt.on, .gt-opt.sel, .gocv-tpl.on, .gst-chip.on):not(#gs-z) {
  background: var(--gss-tint) !important; box-shadow: inset 0 0 0 1.5px var(--gss-or) !important; color: var(--gss-tx) !important; font-weight: 700; }

/* selected text */
::selection { background: rgba(237,111,64,.35); color: inherit; }
