:root {
  --thc-wps-a11y-font-scale: 100%;
}

html {
  font-size: var(--thc-wps-a11y-font-scale);
}

.thc-wps-a11y-root {
  position: fixed;
  bottom: 18px;
  z-index: 99999;
  display: grid;
  gap: 12px;
  max-width: min(92vw, 380px);
}

.thc-wps-a11y-root--right {
  right: 18px;
}

.thc-wps-a11y-root--left {
  left: 18px;
}

.thc-wps-a11y-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: .8rem .95rem;
  border: 0;
  border-radius: 999px;
  background: var(--thc-wps-a11y-accent, #0b57d0);
  color: var(--thc-wps-a11y-icon-color, #fff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
  cursor: pointer;
  font: inherit;
}

.thc-wps-a11y-trigger__icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.thc-wps-a11y-trigger__label {
  font-weight: 600;
}

.thc-wps-a11y-panel {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: var(--thc-wps-a11y-surface, #fff);
  color: var(--thc-wps-a11y-text, #0f172a);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .2);
  overflow: hidden;
}

.thc-wps-a11y-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.thc-wps-a11y-panel__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.thc-wps-a11y-panel__eyebrow {
  margin: 0 0 4px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--thc-wps-a11y-accent, #0b57d0) 68%, #0f172a);
}

.thc-wps-a11y-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.thc-wps-a11y-panel__body {
  display: grid;
  gap: 16px;
  padding: 16px 18px 18px;
}

.thc-wps-a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.thc-wps-a11y-toggle,
.thc-wps-a11y-action,
.thc-wps-a11y-link {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: .78rem .85rem;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.thc-wps-a11y-toggle:hover,
.thc-wps-a11y-action:hover,
.thc-wps-a11y-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--thc-wps-a11y-accent, #0b57d0) 38%, rgba(15, 23, 42, .12));
}

.thc-wps-a11y-toggle[aria-pressed="true"] {
  background: color-mix(in srgb, var(--thc-wps-a11y-accent, #0b57d0) 10%, #fff);
  border-color: color-mix(in srgb, var(--thc-wps-a11y-accent, #0b57d0) 64%, rgba(15, 23, 42, .12));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--thc-wps-a11y-accent, #0b57d0) 18%, transparent);
}

.thc-wps-a11y-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.thc-wps-a11y-scale__label {
  font-weight: 600;
}

.thc-wps-a11y-scale__actions {
  display: inline-flex;
  gap: 8px;
}

.thc-wps-a11y-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thc-wps-a11y-link {
  text-decoration: none;
}

.thc-wps-a11y-statement {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, .04);
}

.thc-wps-a11y-statement h3,
.thc-wps-a11y-statement p {
  margin: 0;
}

.thc-wps-a11y-status {
  margin: 0;
  min-height: 1.1em;
  font-size: .92rem;
  color: color-mix(in srgb, var(--thc-wps-a11y-text, #0f172a) 72%, transparent);
}

.thc-wps-a11y-guide {
  position: fixed;
  left: 0;
  right: 0;
  height: 44px;
  pointer-events: none;
  z-index: 99998;
  background: linear-gradient(180deg, rgba(245, 158, 11, .02) 0%, rgba(245, 158, 11, .24) 48%, rgba(245, 158, 11, .02) 100%);
  border-top: 1px solid rgba(245, 158, 11, .5);
  border-bottom: 1px solid rgba(245, 158, 11, .5);
  transform: translateY(-50%);
}

.thc-wps-a11y-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100000;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
}

.thc-wps-a11y-skip-link:focus {
  top: 16px;
}

html.thc-wps-a11y-grayscale body > *:not(.thc-wps-a11y-root) {
  filter: grayscale(1);
}

html.thc-wps-a11y-underline-links a:not(.thc-wps-a11y-link) {
  text-decoration: underline !important;
  text-underline-offset: .15em;
}

html.thc-wps-a11y-readable-font body :not(.thc-wps-a11y-root):not(.thc-wps-a11y-root *) {
  font-family: Arial, Helvetica, sans-serif !important;
}

html.thc-wps-a11y-hide-images body :is(main, article, section, aside, figure, picture) img,
html.thc-wps-a11y-hide-images body :is(main, article, section, aside, figure, picture) svg {
  opacity: .08 !important;
}

html.thc-wps-a11y-pause-animations body * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.thc-wps-a11y-line-height body :is(p, li, dd, dt, blockquote) {
  line-height: 1.9 !important;
}

html.thc-wps-a11y-text-align body :is(p, li, dd, dt, blockquote) {
  text-align: left !important;
  max-width: 72ch;
}

html.thc-wps-a11y-focus-outline body :focus,
html.thc-wps-a11y-focus-outline body :focus-visible {
  outline: 3px solid var(--thc-wps-a11y-focus, #f59e0b) !important;
  outline-offset: 3px !important;
}

html.thc-wps-a11y-contrast body {
  background: #050505 !important;
  color: #fff !important;
}

html.thc-wps-a11y-contrast body a:not(.thc-wps-a11y-link) {
  color: #fde047 !important;
}

@media (max-width: 782px) {
  .thc-wps-a11y-root {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }

  .thc-wps-a11y-grid {
    grid-template-columns: 1fr;
  }

  .thc-wps-a11y-scale {
    align-items: start;
    flex-direction: column;
  }
}
