.sticky-sidenav {
  position: fixed;
  right: 0;
  top: 20%;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: right 0.3s ease;
  pointer-events: none;
}
@media screen and (max-width: 768px) {
  .sticky-sidenav {
    display: none;
  }
}
.sticky-sidenav-wrapper {
  position: relative;
}

.sticky-sidenav-closed {
  position: relative;
  background: var(--mainGradient);
  color: #ffffff;
  font-weight: 600;
  padding: 16px 18px;
  border: none;
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: 100%;
  transition: var(--baseTransition);
  pointer-events: auto;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  width: 100%;
  right: 0;
}
@media screen and (max-width: 1024px) {
  .sticky-sidenav-closed {
    font-size: 16px;
    padding: 10px 15px;
  }
}
.sticky-sidenav-closed.external-link:after {
  filter: brightness(0) invert(1);
  width: 15px;
  height: 15px;
}
.sticky-sidenav-closed:hover {
  background-size: 300%;
}

.sticky-sidenav-simple-link {
  text-decoration: none;
  color: #fff;
  background-size: 100%;
}

.sticky-sidenav-simple-link:hover {
  color: #fff;
  background-size: 300%;
}

.sticky-sidenav-open {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #ffffff;
  padding: 30px 30px 14px 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;
  pointer-events: none;
  will-change: transform, opacity, visibility;
  z-index: 999;
}

.sticky-sidenav-open.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sticky-sidenav-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;
}

.sticky-sidenav-close:hover {
  background-size: 300%;
}

.sticky-sidenav-title {
  font-weight: 600;
}

.sticky-sidenav-elements {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sticky-sidenav-element {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.sticky-sidenav-element:last-child {
  border-bottom: none;
}

.sticky-sidenav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.sticky-sidenav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--fontColor);
  border-bottom: 1px solid var(--backgroundColor);
}
.sticky-sidenav-link:last-child {
  border-bottom: 0;
}

.sticky-sidenav-icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .sticky-sidenav-open {
    width: 250px;
  }
}

/* Ensure visibility on different screen heights */
@media screen and (max-height: 800px) {
  .sticky-sidenav-open {
    width: 250px;
  }
}
