
/* =========================================================
   MULTI PACK ACCESSIBILITY
   WCAG-oriented user preference controls
   ========================================================= */

.mp-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  transform: translateY(-150%);
  background: #111;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.mp-skip-link:focus {
  transform: translateY(0);
}

/* Accessibility button */
.mp-a11y-toggle {
  position: relative;
  left: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  line-height: 1;
  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.mp-a11y-toggle:hover,
.mp-a11y-toggle:focus-visible {
  background: #D88A1C;
  border-color: #D88A1C;
  color: #fff;
}

.mp-a11y-toggle:focus-visible,
.mp-a11y-panel button:focus-visible,
.mp-a11y-panel [tabindex]:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #D88A1C !important;
  outline-offset: 3px !important;
}

.mp-a11y-icon {
  font-size: 20px;
  line-height: 1;
}

/* Panel */
.mp-a11y-panel {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 99999;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  box-shadow: 0 18px 54px rgba(0,0,0,.22);
  padding: 20px;
}

.mp-a11y-panel[hidden] {
  display: none !important;
}

.mp-a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.mp-a11y-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #161616;
}

.mp-a11y-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #161616;
  font-size: 24px;
  cursor: pointer;
}

.mp-a11y-controls {
  display: grid;
  gap: 10px;
}

.mp-a11y-row {
  display: grid;
  grid-template-columns: 1fr 44px 44px;
  gap: 8px;
  align-items: center;
}

.mp-a11y-label {
  font-size: .9rem;
  font-weight: 700;
}

.mp-a11y-action,
.mp-a11y-option,
.mp-a11y-reset {
  min-height: 42px;
  border: 1px solid #bbb;
  background: #f7f7f7;
  color: #171717;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.mp-a11y-option {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font-weight: 650;
}

.mp-a11y-option[aria-pressed="true"] {
  background: #23211f;
  color: #fff;
  border-color: #23211f;
}

.mp-a11y-reset {
  margin-top: 4px;
  width: 100%;
  padding: 10px 12px;
  background: #D88A1C;
  border-color: #D88A1C;
  color: #fff;
  font-weight: 800;
}

/* User preference modes */

html.mp-a11y-readable-font body,
html.mp-a11y-readable-font button,
html.mp-a11y-readable-font input,
html.mp-a11y-readable-font select,
html.mp-a11y-readable-font textarea {
  font-family: Arial, Helvetica, sans-serif !important;
}

html.mp-a11y-links a:not(.mp-a11y-toggle) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}

html.mp-a11y-spacing body {
  letter-spacing: .035em !important;
  line-height: 1.75 !important;
}

html.mp-a11y-spacing p,
html.mp-a11y-spacing li,
html.mp-a11y-spacing a,
html.mp-a11y-spacing button,
html.mp-a11y-spacing label {
  line-height: 1.75 !important;
}

html.mp-a11y-grayscale body {
  filter: grayscale(1);
}

html.mp-a11y-high-contrast body {
  background: #000 !important;
  color: #fff !important;
}

html.mp-a11y-high-contrast main,
html.mp-a11y-high-contrast section,
html.mp-a11y-high-contrast article,
html.mp-a11y-high-contrast header,
html.mp-a11y-high-contrast footer,
html.mp-a11y-high-contrast nav,
html.mp-a11y-high-contrast div {
  border-color: #fff !important;
}

html.mp-a11y-high-contrast p,
html.mp-a11y-high-contrast h1,
html.mp-a11y-high-contrast h2,
html.mp-a11y-high-contrast h3,
html.mp-a11y-high-contrast h4,
html.mp-a11y-high-contrast h5,
html.mp-a11y-high-contrast h6,
html.mp-a11y-high-contrast li,
html.mp-a11y-high-contrast label,
html.mp-a11y-high-contrast span:not(.mp-a11y-icon) {
  color: #fff !important;
}

html.mp-a11y-high-contrast a {
  color: #ffb347 !important;
}

html.mp-a11y-high-contrast .mp-a11y-panel {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

html.mp-a11y-high-contrast .mp-a11y-panel-title,
html.mp-a11y-high-contrast .mp-a11y-close {
  color: #fff !important;
}

html.mp-a11y-high-contrast .mp-a11y-action,
html.mp-a11y-high-contrast .mp-a11y-option {
  background: #111 !important;
  color: #fff !important;
  border-color: #fff !important;
}

html.mp-a11y-reduce-motion *,
html.mp-a11y-reduce-motion *::before,
html.mp-a11y-reduce-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .mp-a11y-toggle {
    left: 0;
    width: 42px;
    height: 42px;
    margin-top: 8px;
  }

  .mp-a11y-panel {
    top: 76px;
    right: 16px;
  }
}

/* Footer accessibility button */
.mp-footer a[href="privacy.html"],
.mp-footer a[href="privacy-en.html"],
footer a[href="privacy.html"],
footer a[href="privacy-en.html"] {
  display: inline-flex !important;
  align-items: center !important;
}

.mp-a11y-toggle-footer {
  position: static !important;
  left: auto !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 34px !important;
  height: 34px !important;

  margin-left: 10px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;

  padding: 0 !important;

  vertical-align: middle !important;

  color: inherit !important;
  border-color: currentColor !important;
  flex: 0 0 34px !important;
}

.mp-a11y-toggle-footer .mp-a11y-icon {
  display: block !important;
  font-size: 18px !important;
  line-height: 1 !important;
}
