
#shenali-accessibility-launcher,
#shenali-accessibility-panel,
#shenali-accessibility-panel * {
  box-sizing: border-box;
}

#shenali-accessibility-launcher {
  position: fixed;
  left: 18px;
  bottom: 20px;
  z-index: 2147483000;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #043b3f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#shenali-accessibility-launcher:hover,
#shenali-accessibility-launcher:focus-visible {
  transform: translateY(-2px) scale(1.04);
  background: #07565b;
}

#shenali-accessibility-launcher:focus-visible,
#shenali-accessibility-panel button:focus-visible {
  outline: 3px solid #20e2ca;
  outline-offset: 3px;
}

#shenali-accessibility-launcher svg {
  width: 29px;
  height: 29px;
  pointer-events: none;
}

#shenali-accessibility-panel {
  position: fixed;
  left: 18px;
  bottom: 86px;
  z-index: 2147483001;
  width: min(360px, calc(100vw - 36px));
  max-height: min(620px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: #f4f7f6;
  color: #102b2d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: Arial, Helvetica, sans-serif;
}

#shenali-accessibility-panel[hidden] {
  display: none !important;
}

.shenali-a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  background: #043b3f;
  color: #ffffff;
}

.shenali-a11y-header-title {
  margin: 0;
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.shenali-a11y-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.shenali-a11y-content {
  max-height: min(520px, calc(100vh - 210px));
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.shenali-a11y-section-title {
  margin: 2px 0 11px;
  color: #193d40 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
}

.shenali-a11y-counter {
  display: grid;
  grid-template-columns: 1fr 48px 60px 48px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #d6e0df;
  border-radius: 12px;
  background: #ffffff;
}

.shenali-a11y-label {
  color: #173638 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.shenali-a11y-value {
  color: #173638 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center;
}

.shenali-a11y-small-button {
  width: 44px;
  height: 38px;
  padding: 0;
  border: 1px solid #bfd0ce;
  border-radius: 9px;
  background: #edf4f3;
  color: #043b3f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
}

.shenali-a11y-small-button:hover {
  background: #d9eae7;
}

.shenali-a11y-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.shenali-a11y-option {
  min-height: 54px;
  padding: 10px 9px;
  border: 1px solid #cedbd9;
  border-radius: 11px;
  background: #ffffff;
  color: #173638;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.shenali-a11y-option:hover {
  border-color: #5d8c88;
  background: #edf6f4;
}

.shenali-a11y-option[aria-pressed="true"] {
  border-color: #043b3f;
  background: #043b3f;
  color: #ffffff;
}

.shenali-a11y-reset {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 11px;
  background: #15ccb3;
  color: #052e31;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.shenali-a11y-reset:hover {
  background: #42e0ca;
}

/* Skip link */
.shenali-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2147483647;
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

/* Applied accessibility states */
html.shenali-a11y-grayscale {
  filter: grayscale(1);
}

html.shenali-a11y-high-contrast {
  filter: contrast(1.45);
}

html.shenali-a11y-grayscale.shenali-a11y-high-contrast {
  filter: grayscale(1) contrast(1.45);
}

body.shenali-a11y-readable-font
  *:not(#shenali-accessibility-panel):not(#shenali-accessibility-panel *) {
  font-family: Arial, Helvetica, sans-serif !important;
}

body.shenali-a11y-highlight-links
  a:not(#shenali-accessibility-panel a):not(.shenali-skip-link) {
  outline: 3px solid #ffdf00 !important;
  outline-offset: 3px !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  text-decoration: underline !important;
}

body.shenali-a11y-hide-images
  img:not(#shenali-accessibility-panel img) {
  visibility: hidden !important;
}

body.shenali-a11y-hide-images
  *:not(#shenali-accessibility-panel):not(#shenali-accessibility-panel *) {
  background-image: none !important;
}

body.shenali-a11y-pause-motion
  *:not(#shenali-accessibility-panel):not(#shenali-accessibility-panel *) {
  animation-play-state: paused !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

@media screen and (max-width: 767px) {
  #shenali-accessibility-launcher {
    left: 10px;
    bottom: 12px;
    width: 50px;
    height: 50px;
  }

  #shenali-accessibility-panel {
    left: 8px;
    bottom: 70px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 88px);
    border-radius: 15px;
  }

  .shenali-a11y-content {
    max-height: calc(100dvh - 175px);
  }

  .shenali-a11y-options {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #shenali-accessibility-launcher,
  .shenali-skip-link {
    transition: none;
  }
}
