/* XT Floating Buttons - Frontend */
.xtfb-buttons {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.xtfb-buttons--hidden {
  transform: translateY(-50%) translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.xtfb-btn {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xtfb-btn__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 8px 0 0 8px;
  transform: translateX(calc(100% - 48px));
}

.xtfb-btn__link:hover {
  transform: translateX(0);
  color: #ffffff;
  text-decoration: none;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
}

.xtfb-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #ffffff;
}

.xtfb-btn__text {
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #ffffff;
  text-transform: uppercase;
}

.xtfb-btn__link:hover .xtfb-btn__text {
  opacity: 1;
}

/* Spacing between buttons */
.xtfb-btn + .xtfb-btn {
  margin-top: 4px;
}

/* Device visibility */
@media (min-width: 1025px) {
  .xtfb-btn:not(.xtfb-show-desktop) {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .xtfb-btn:not(.xtfb-show-tablet) {
    display: none;
  }
}

@media (max-width: 768px) {
  .xtfb-btn:not(.xtfb-show-mobile) {
    display: none;
  }

  .xtfb-btn__link {
    padding: 12px 16px;
    font-size: 12px;
    transform: translateX(calc(100% - 42px));
  }

  .xtfb-btn__icon {
    width: 16px;
    height: 16px;
  }
}
