.sttc-floating-actions {
  position: fixed;
  right: 18px;
  top: 56%;
  transform: translateY(-50%);
  z-index: 9998;
}

.sttc-floating-actions__trigger {
  align-items: center;
  background: linear-gradient(135deg, #9b1c1f 0%, #c73535 56%, #f59e0b 100%);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(155, 28, 31, 0.34);
  color: #fff;
  display: inline-flex;
  gap: 8px;
  min-height: 50px;
  overflow: visible;
  padding: 0 14px 0 12px;
  position: relative;
}

.sttc-floating-actions__trigger:after {
  background: rgba(155, 28, 31, 0.2);
  border-radius: inherit;
  content: "";
  inset: -7px;
  position: absolute;
  z-index: -1;
}

.sttc-floating-actions__pulse {
  animation: sttcAdmissionPulse 1.55s ease-in-out infinite;
  background: #fff;
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.sttc-floating-actions__trigger span:last-child {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sttc-floating-actions__trigger i {
  font-size: 18px;
}

.sttc-floating-actions__panel {
  display: grid;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 62px;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 205px;
}

.sttc-floating-actions:hover .sttc-floating-actions__panel,
.sttc-floating-actions:focus-within .sttc-floating-actions__panel,
.sttc-floating-actions.is-open .sttc-floating-actions__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sttc-floating-actions__item {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(155, 28, 31, 0.14);
  border-radius: 15px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  color: #172033;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 50px;
  padding: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sttc-floating-actions__item:hover,
.sttc-floating-actions__item:focus {
  border-color: rgba(155, 28, 31, 0.28);
  color: #9b1c1f;
  outline: none;
  text-decoration: none;
  transform: translateX(-4px);
}

.sttc-floating-actions__item i {
  align-items: center;
  background: #16213a;
  border-radius: 11px;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.sttc-floating-actions__item--primary i {
  background: #9b1c1f;
}

.sttc-floating-actions__item--accent i {
  background: #d97706;
}

.scrollToTop {
  align-items: center !important;
  background: #9b1c1f !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  border-radius: 16px !important;
  bottom: 26px !important;
  box-shadow: 0 16px 34px rgba(155, 28, 31, 0.26) !important;
  color: #fff !important;
  display: inline-flex !important;
  font-size: 24px !important;
  height: 46px !important;
  justify-content: center !important;
  line-height: 1 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  right: 22px !important;
  text-decoration: none !important;
  transform: translateY(12px) !important;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease !important;
  visibility: hidden !important;
  width: 46px !important;
  z-index: 9999 !important;
}

.scrollToTop i {
  color: inherit !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.scrollToTop.is-visible {
  display: inline-flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.scrollToTop[style*="display: block"],
.scrollToTop[style*="display: inline"],
.scrollToTop[style*="opacity: 1"] {
  display: inline-flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.scrollToTop:hover,
.scrollToTop:focus {
  background: #16213a !important;
  color: #fff !important;
  outline: none;
  transform: translateY(-2px) !important;
}

@keyframes sttcAdmissionPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    transform: scale(0.82);
  }
}

@media (max-width: 767px) {
  .sttc-floating-actions {
    right: 10px;
    top: auto;
    bottom: 76px;
    transform: none;
  }

  .sttc-floating-actions__trigger {
    min-height: 46px;
    padding-right: 12px;
  }

  .sttc-floating-actions__panel {
    right: 0;
    top: auto;
    bottom: 58px;
    width: 196px;
  }

  .scrollToTop {
    bottom: 18px !important;
    height: 42px !important;
    right: 12px !important;
    width: 42px !important;
  }
}
