#ac-toggle {
  position: fixed !important;
  top: 120px;
  right: 20px;
  left: auto !important;
  bottom: auto !important;
  background: #007bff;
  color: #fff;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

#ac-menu {
  position: fixed;
  bottom: 300px;
  right: 30px;
  background: #fff;
  border-left: 4px solid #333;
  display: none;
  flex-direction: column;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.13);
  z-index: 9999;
  padding: 6px 0;
  border-radius: 10px;
  min-width: 210px;
  max-width: 240px;
}

#ac-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: #1787e0;
  color: white;
  border: none;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 6px;
  margin: 4px 8px;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  min-height: 32px;
}

#ac-menu button:last-child {
  border-bottom: none;
}

#ac-menu button i {
  font-size: 15px;
  min-width: 18px;
  text-align: center;
}

#ac-menu button:hover {
  background: #0056b3;
  color: #fff;
}

.ac-contrast {
  background: #000 !important;
  color: #fff !important;
}

.ac-contrast a,
.ac-contrast button {
  color: #ff0 !important;
  background: #000 !important;
  border-color: #fff !important;
}

.ac-grayscale main,
.ac-grayscale header,
.ac-grayscale footer,
.ac-grayscale section,
.ac-grayscale article {
  filter: grayscale(1);
}

#ac-guide-line-bar {
  position: fixed;
  left: 0;
  width: 100vw;
  height: 2px;
  background: #ff0;
  z-index: 99999;
  pointer-events: none;
}

.ac-marker-highlight {
  background: yellow !important;
  color: black !important;
  font-weight: bold;
}

#ac-marker.active {
  background: #ffeb3b;
  color: #333;
}

.ac-highlight-links a {
  background: yellow !important;
  color: #000 !important;
  text-decoration: underline !important;
}

div[vw] > div[vw-access-button].vlibras-toggle.active {
  position: fixed !important;
  bottom: 220px !important;
  top: auto !important;
  right: 10px !important;
  left: auto !important;
  z-index: 99999 !important;
}

@media (max-width: 768px) {
  #ac-toggle {
    position: fixed !important;
    top: 100px;
    right: 20px;
    left: auto !important;
    bottom: auto !important;
  }
  #ac-menu {
    min-width: 180px;
    top: 145px !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    display: none;
  }
}
@media (max-width: 400px) {
  #ac-toggle {
    width: 40px !important;
    height: 40px !important;
    font-size: 21px !important;
  }
  #ac-menu {
    min-width: 160px;
  }
}
.ac-grayscale #ac-toggle,
.ac-grayscale #ac-menu {
  filter: none !important;
  pointer-events: auto !important;
}
@media (max-width: 1280px) {
  .vlibras-toggle {
    position: fixed !important;
    top: -130px;
    left: auto !important;
    bottom: auto !important;
  }
}

@media (max-width: 768px) {
  div[vw] > div[vw-access-button].vlibras-toggle.active {
    position: fixed !important;
    bottom: 300px !important;
    top: auto !important;
  }
}
