.at-accessibility-wrapper {
  position: fixed;
  right: 0;
  bottom: 1%;
  z-index: 10000;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateY(-50%);
  will-change: transform;
  transition: var(--baseTransition, all 0.3s ease);
}

.sticky-sidenav-open.active ~ .at-accessibility-wrapper,
aside.sidebar.fixed:hover ~ .at-accessibility-wrapper,
aside.sidebar.fixed:focus ~ .at-accessibility-wrapper,
aside.sidebar.fixed:focus-visible ~ .at-accessibility-wrapper {
  right: 80px;
  z-index: 10000;
}
@media screen and (max-width: 640px) {
  .at-accessibility-wrapper {
    bottom: 100px;
  }
  aside.sidebar.fixed:hover ~ .at-accessibility-wrapper,
  aside.sidebar.fixed:focus ~ .at-accessibility-wrapper,
  aside.sidebar.fixed:focus-visible ~ .at-accessibility-wrapper {
    bottom: 200px;
    z-index: 10000;
  }
}

.at-accessibility-btn {
  position: relative;
  width: 73px;
  height: 65px;
  background: var(--secondColor, black);
  color: #ffffff;
  border: none;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--baseTransition, all 0.3s ease);
  --ssn-shadow: -4px 4px 12px rgba(0, 0, 0, 0.1);
  --ssn-shadow-colored: -4px 4px 12px var(--ssn-shadow-color);
  box-shadow: var(--ssn-ring-offset-shadow, 0 0 #0000),
    var(--ssn-ring-shadow, 0 0 #0000), var(--ssn-shadow);
}
.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(--mainColor, black);
  background-size: 100%;
  transition: var(--baseTransition, all 0.3s ease);
  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 {
  outline: 2px solid #fff;
  outline-offset: -6px;
}

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

.at-accessibility-toolbar {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  padding: 60px 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;
  &.disable-animations {
    @media (prefers-reduced-motion: reduce) {
      display: none;
    }
  }
}

.at-toolbar-link {
  width: 100%;
  padding: 12px;
  background: none;
  border: 1px solid var(--mainColor, black);
  color: var(--fontColor, black);
  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, black);
  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, 16px);
  background-size: 100%;
  overflow: hidden;
  line-height: inherit;
  cursor: pointer;
  padding: 10px 25px;
  position: relative;
  background: transparent;
  color: var(--main-color, black);
  border: 2px solid var(--mainColor, black);
  transition: var(--baseTransition, all 0.3s ease);
  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(--mainColor, black);
  z-index: -1;
  transition: var(--baseTransition, all 0.3s ease);
}
.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(--mainColor, black);
}
.reset_all button:hover svg,
.reset_all button:focus svg {
  filter: brightness(0) invert(1);
}

/* Accessibility Features */
.grayscale > * {
  filter: grayscale(100%) !important;
}

.high-contrast {
  --mainColor: #003840 !important;
  --mainColorRGB: 0, 56, 64 !important;
  --mainColorLight: #2e7f82 !important;
  --mainColorVeryLight: #e0f0f0 !important;
  --mainColorDark: #002a30 !important;
  --secondColor: #65760a !important;
  --secondColorRGB: 138, 158, 26 !important;
  --secondColorLight: #a8c030 !important;
  --secondColorDark: #6e7e14 !important;
  --thirdColor: #d06a20 !important;
  --accesibilityColor: #d15a00 !important;
  --thirdColorRGB: 208, 106, 32 !important;
  --fourthColor: #b0302d !important;
  --fourthColorRGB: 176, 48, 45 !important;
  --fontColor: #003840 !important;
  --fontColorLight: #5a5a5a !important;
  --backgroundColor: #e5e2df !important;
  --backgroundColorRGB: 229, 226, 223 !important;
  --backgroundColorDark: #a0a0a0 !important;
  --warningColor: #8a0000 !important;
  --formBorderColor: #8a8a8a !important;
}

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

/* Responsive Design */
@media screen and (max-width: 768px) {
  .at-accessibility-btn {
    width: 50px;
    height: 54px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }
  .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;
  }
}
@media screen and (max-width: 640px) {
  .at-accessibility-wrapper {
    top: auto;
    z-index: 10000;
    transform: translateY(0);
    bottom: 100px;
  }
  aside.sidebar.fixed:hover ~ .at-accessibility-wrapper {
    bottom: 200px;
  }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
  .at-accessibility-wrapper {
    right: 20px;
  }
  aside.sidebar.fixed:hover ~ .at-accessibility-wrapper,
  aside.sidebar.fixed:focus ~ .at-accessibility-wrapper,
  aside.sidebar.fixed:focus-visible ~ .at-accessibility-wrapper {
    right: 100px;
    z-index: 10000;
  }
}
/* Focus Styles */
.at-accessibility-btn:focus-visible,
.at-toolbar-link:focus-visible {
  outline: 2px solid var(--secondColor, black);
  outline-offset: 2px;
}

/* Active States */
.at-toolbar-link[aria-pressed="true"],
.at-toolbar-link:hover {
  background-color: var(--mainColor, black);
  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;
}

body.has-accessibility-toolbar.has-sticky-nav {
  .at-accessibility-wrapper {
    z-index: 10000;
  }
  
  aside.sidebar.fixed {
    z-index: 9999;
  }
}

@media screen and (max-width: 480px) {
  .at-accessibility-wrapper {
    bottom: 120px !important;
  }
  
  aside.sidebar.fixed:hover ~ .at-accessibility-wrapper,
  aside.sidebar.fixed:focus ~ .at-accessibility-wrapper,
  aside.sidebar.fixed:focus-visible ~ .at-accessibility-wrapper {
    bottom: 250px !important;
    z-index: 10000;
  }
}
