.floating-sidebar {
  position: fixed;
  top: 18%;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  border-radius: 5px;
  background: #05c3dd;
  box-shadow: rgba(102, 102, 102, 0.35) 0 0 10px;
}

.floating-sidebar__item {
  position: relative;
  display: flex;
  width: 78px;
  height: 90px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}

.floating-sidebar__item:last-child {
  height: 55px;
  border-bottom: 0;
}

.floating-sidebar__icon {
  display: block;
  max-width: 55%;
}

.floating-sidebar__text {
  padding-top: 6px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.floating-sidebar__panel {
  position: absolute;
  top: 0;
  right: 100%;
  padding-right: 12px;
}

.floating-sidebar__panel-inner {
  display: block;
  padding: 10px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: rgba(102, 102, 102, 0.35) 0 0 10px;
  color: #333333;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.5;
}

.floating-sidebar__panel--qr .floating-sidebar__panel-inner {
  width: 140px;
}

.floating-sidebar__panel--qr img {
  display: block;
  width: 100%;
  height: auto;
}

.floating-sidebar__item > .floating-sidebar__panel {
  display: none;
}

.floating-sidebar__item:hover > .floating-sidebar__panel,
.floating-sidebar__item:focus-visible > .floating-sidebar__panel {
  display: block;
}

.floating-sidebar__item.is-open > .floating-sidebar__panel {
  display: block;
}

.floating-sidebar__item--mobile {
  display: none;
}

@media (max-width: 640px) {
  .floating-sidebar {
    top: 52%;
    right: 10px;
    width: 46px;
    padding: 4px 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(15, 208, 227, 0.96) 0%, rgba(0, 171, 205, 0.96) 100%);
    box-shadow: 0 10px 24px rgba(0, 76, 122, 0.28);
    backdrop-filter: blur(4px);
    overflow: visible;
  }

  .floating-sidebar__item {
    width: 46px;
    height: 60px;
    border-bottom-color: rgba(255, 255, 255, 0.35);
  }

  .floating-sidebar__item:last-child {
    height: 38px;
  }

  .floating-sidebar__icon {
    width: 18px;
    max-width: none;
  }

  .floating-sidebar__text {
    padding-top: 5px;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.2px;
  }

  .floating-sidebar__panel {
    right: 38px;
    padding-right: 8px;
  }

  .floating-sidebar__panel-inner {
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 43, 84, 0.22);
    font-size: 13px;
    line-height: 22px;
  }

  .floating-sidebar__panel--qr .floating-sidebar__panel-inner {
    width: 112px;
  }

  .floating-sidebar__item--desktop {
    display: none;
  }

  .floating-sidebar__item--mobile {
    display: flex;
  }
}
