.fixed-actions {
  z-index: 19;
  grid-template-columns: 52px;
  gap: 8px;
  display: grid;
  position: fixed;
  top: 50%;
  right: clamp(14px, 2vw, 30px);
  transform: translateY(-50%);
}

.fixed-action {
  color: #fff;
  cursor: pointer;
  background: #0f2631;
  border: 1px solid #ffffff38;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  box-shadow: 0 10px 28px #04111942;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    opacity 0.2s,
    transform 0.2s;
  display: flex;
  position: relative;
}

.fixed-action-email {
  background: var(--red);
  border-color: var(--red);
}

.fixed-action:hover {
  background: var(--hero-light);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.fixed-action-email:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.fixed-action svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 23px;
  height: 23px;
}

.fixed-action-label {
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: #0f2631;
  border-radius: 3px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  transition:
    opacity 0.18s,
    transform 0.18s,
    visibility 0.18s;
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translate(5px, -50%);
}

.fixed-action:hover .fixed-action-label,
.fixed-action:focus-visible .fixed-action-label {
  visibility: visible;
  opacity: 1;
  transform: translate(0, -50%);
}

.fixed-action-top {
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
}

.fixed-action-top.visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .fixed-actions {
    grid-template-columns: 46px;
    top: auto;
    right: 12px;
    bottom: 16px;
    transform: none;
  }

  .fixed-action {
    width: 46px;
    height: 46px;
  }

  .fixed-action-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fixed-action,
  .fixed-action-label {
    transition: none;
  }
}
