.at-accessibility-wrapper {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 99;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateY(-50%);
  will-change: transform;
  transition: right 0.3s ease;
}

/* Adjust position when sidenav is open */
.sticky-sidenav-open.active + .at-accessibility-wrapper {
  right: 300px; /* Move left when sidenav is open */
}

.at-accessibility-btn {
  position: relative;
  width: 64px;
  height: 65px;
  background: var(--mainGradient);
  color: #ffffff;
  border: none;
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--baseTransition);
}
.at-accessibility-btn-close {
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 0px 0px 0px 21px;
  padding: 14px 20px;
  border: 0;
  color: #fff;
  background: var(--mainGradient);
  background-size: 100%;
  transition: var(--baseTransition);
  cursor: pointer;
  font-size: 16px !important;
  line-height: 1 !important;
  height: auto !important;
  min-height: 48px !important;
}
.accesibility_title {
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 120% !important;
  font-size: 18px !important;
}
.at-accessibility-btn:hover,
.at-accessibility-btn:focus,
.at-accessibility-btn-close:hover,
.at-accessibility-btn-close:focus {
  background-size: 300%;
}

.at-accessibility-btn .at-icon {
  font-size: 24px;
  line-height: 1;
}

.at-accessibility-toolbar {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #ffffff;
  padding: 65px 30px 30px 30px;
  box-shadow: 0px 9px 45px 10px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  min-width: 350px;
  max-height: 50vh;
  overflow-y: auto;
  will-change: transform, opacity, visibility;
}

.at-accessibility-toolbar:not([aria-hidden="true"]) {
  opacity: 1;
  visibility: visible;
}

.at-toolbar-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.at-toolbar-item {
  margin: 0;
}

.at-toolbar-link {
  width: 100%;
  padding: 12px;
  background: none;
  border: 1px solid var(--mainColor);
  color: var(--fontColor);
  font-size: 16px !important;
  line-height: 120% !important;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  transition: all 0.2s ease;
}

.at-toolbar-link:hover,
.at-toolbar-link:focus {
  background-color: var(--mainColor);
  color: #ffffff;
  outline: none;
}

.at-toolbar-link .at-icon {
  font-size: 18px;
  line-height: 1;
}

.reset_all button {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--baseFontSize);
  background-size: 100%;
  overflow: hidden;
  line-height: inherit;
  cursor: pointer;
  padding: 10px 25px;
  position: relative;
  background: transparent;
  color: var(--mainColor);
  border: 2px solid var(--mainColor);
  transition: var(--baseTransition);
  z-index: 1;
  margin-top: 20px;
}
.reset_all button:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: var(--mainGradient);
  z-index: -1;
  transition: var(--baseTransition);
}
.reset_all button svg {
  width: 16px;
  margin-top: 1px;
}
.reset_all button:hover {
  color: #fff;
  background: transparent;
}

.reset_all button:hover:before,
.reset_all button:focus:before {
  opacity: 1;
  background: var(--mainGradient);
}
.reset_all button:hover svg,
.reset_all button:focus svg {
  filter: brightness(0) invert(1);
}

/* Accessibility Features */
.grayscale #site,.grayscale .at-accessibility-toolbar,.grayscale .sticky-sidenav {
  filter: grayscale(100%) !important;
}

.high-contrast {
  --mainColor: #2c3e50 !important; /* Dark slate for primary elements */
  --secondColor: #34495e !important; /* Slightly lighter slate for secondary */
  --bannerBgColor: #1a252f !important; /* Very dark slate for banners */
  --frameBgColor: #1a252f !important; /* Very dark slate for frames */
  --mainGradient: linear-gradient(270deg, #2c3e50 0%, #1a252f 100%) !important;
  --backgroundColorLightBlue: #f7f7f7 !important; /* Very dark slate for light elements */
  --gradientColorLeft: #1a252f !important; /* Very dark slate gradient start */
  --gradientColorRight: #2c3e50 !important; /* Dark slate gradient end */
}

.underline-links a {
  text-decoration: underline !important;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .at-accessibility-wrapper {
    top: auto;
    z-index: 99;
    transform: translateY(0);
    bottom: 50px;
  }
  .at-accessibility-btn {
    width: 40px;
    height: 40px;
  }
  .at-accessibility-btn svg {
    width: 27px;
  }
  .at-accessibility-toolbar {
    min-width: 320px;
    padding-left: 20px;
    padding-right: 20px;
    max-height: 65vh;
    top: auto;
    bottom: 0;
  }
}

/* Focus Styles */
.at-accessibility-btn:focus-visible,
.at-toolbar-link:focus-visible {
  outline: 2px solid var(--secondColor);
  outline-offset: 2px;
}

/* Active States */
.at-toolbar-link[aria-pressed="true"],
.at-toolbar-link:hover {
  background-color: var(--mainColor);
  color: #ffffff;
}
.at-toolbar-link[aria-pressed="true"] svg,
.at-toolbar-link:hover svg,
.at-toolbar-link:focus-within svg {
  filter: brightness(0) invert(1);
}
/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
