#accessibilityToggleWrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

#accessibilityToggle {
  width: 70px;
  height: 70px;
  max-height: 70px;
  border-radius: 50%;
  background: transparent !important;
  overflow: hidden;
  transition: all 0.4s ease-in-out, max-height 0.5s ease-in-out;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  filter: none !important;
  cursor: pointer;
  position: relative;
  padding: 0;
}

#accessibilityToggle:hover,
#accessibilityToggle:focus,
#accessibilityToggle:active,
#accessibility-open-btn:hover,
#accessibility-open-btn:focus,
#accessibility-open-btn:active {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  filter: none !important;
  background: transparent !important;
}

#accessibility-open-btn {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
}

#accessibilityToggle img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  transition: opacity 0.3s ease;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

#accessibilityToggle.open {
  max-width: 480px;
  width: 220px;
  min-width: 180px;
  height: auto;
  max-height: none;
  overflow: visible;
  border-radius: 14px;
  background: #011618 !important;
  border: 2px solid #000 !important;
  padding: 24px 20px 30px 20px;
}

#accessibilityToggle.open #accessibility-open-btn {
  width: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

#accessibilityToggle.open img {
  opacity: 0;
  height: 0;
  visibility: hidden;
}

#accessibilityContent {
  display: none;
  flex-direction: column;
  gap: 8px;
  color: white;
  font-family: sans-serif;
  pointer-events: none;
}

#accessibilityToggle.open #accessibilityContent {
  display: flex;
  pointer-events: auto;
}

#accessibilityContent button {
  display: block;
  width: 100%;
  margin: 0 0 0.5rem 0;
  padding: 0.5rem;
  background: #026e68;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s, transform 0.2s;
}

#accessibilityContent button:hover {
  background: #27ab90;
  transform: scale(1.03);
}

#accessibility-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none !important;
  color: #fff;
  border: none;
  padding: 0 !important;
  width: auto !important;
  font-size: 1.4rem;
  line-height: 1;
}

/* VEIKIANTYS accessibility režimai */
body.font-large * { font-size: 18px !important; }
body.font-small * { font-size: 12px !important; }
body.readable-font,
body.readable-font * { font-family: Arial, sans-serif !important; }
body.underline-links a { text-decoration: underline !important; }

body.high-contrast,
body.high-contrast * {
  background-color: #000 !important;
  background-image: none !important;
  color: #ff0 !important;
  border-color: #ff0 !important;
  box-shadow: none !important;
}

body.high-contrast a,
body.high-contrast a:link,
body.high-contrast a:visited,
body.high-contrast a:hover,
body.high-contrast a:active {
  color: #0ff !important;
  text-decoration: underline !important;
}

body.high-contrast table,
body.high-contrast td,
body.high-contrast th,
body.high-contrast div,
body.high-contrast p,
body.high-contrast ul,
body.high-contrast ol,
body.high-contrast li,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  background-color: #000 !important;
  color: #ff0 !important;
  border-color: #ff0 !important;
}

body.high-contrast .ipWidget,
body.high-contrast .ipContent,
body.high-contrast .ipWidget-ipText,
body.high-contrast .ipWidget > div,
body.high-contrast .ipContainer,
body.high-contrast .ipCol {
  background-color: #000 !important;
  background-image: none !important;
  color: #ff0 !important;
  border-color: #ff0 !important;
}
