/* Shared theme-switch presentation. The existing site switch and plugin switch use icons only. */
.va-switch .va-mode-label {
  display: none !important;
}

.iee-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--iee-theme-border, #c9a961);
  border-radius: 8px;
  background: var(--iee-theme-surface, #fff);
  color: var(--iee-theme-text, #000);
  font: inherit;
  cursor: pointer;
}

.iee-theme-toggle__icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  line-height: 1;
  font-size: 16px;
}

.iee-theme-toggle__track {
  display: block;
  width: 30px;
  height: 18px;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.iee-theme-toggle__track i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  transition: transform .18s ease;
}

html[data-va-theme="dark"] .iee-theme-toggle__track i {
  transform: translateX(12px);
}

.iee-theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Highlighting is intentionally the one color exception on test surfaces.
   Restore the original pale yellow so marked text is obvious in both themes. */
html #ielts-full-reading-test .iee-user-highlight,
html .iee-reading-test .iee-user-highlight,
html .iee-listening-test .iee-user-highlight {
  background: #fff3a3 !important;
  color: #000000 !important;
}

html #ielts-full-reading-test .iee-user-highlight.iee-user-note,
html .iee-reading-test .iee-user-highlight.iee-user-note,
html .iee-listening-test .iee-user-highlight.iee-user-note {
  background: #fff3a3 !important;
  color: #000000 !important;
}
