.floating-actions {
  position: fixed;
  z-index: 90;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex;
  width: 104px;
  flex-direction: column;
  gap: 8px;
}

.floating-actions[hidden] {
  display: none;
}

.floating-service-link,
.kakao-channel-float {
  width: 104px;
  border-radius: 999px;
}

.floating-service-link {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: 103px;
  height: 45px;
  min-height: 45px;
  align-self: center;
  align-items: center;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px;
  padding: 0 5px 0 0;
  border: 0;
  background: #fafaf8;
  box-shadow: 0 2px 6px rgba(18, 24, 32, .08), 0 10px 28px rgba(18, 24, 32, .16);
  color: #121820;
  font-family: "Pretendard", AppleSDGothicNeo-Regular, "Noto Sans KR", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.2, .65, .25, 1), scale .15s ease-out;
}

.floating-service-link::before {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #37197d url("/favicon.ico") center / cover no-repeat;
  content: "";
}

.floating-service-link:hover {
  transform: translateY(-3px);
}

.kakao-channel-float {
  display: block;
  height: 48px;
  line-height: 0;
  transition: transform .22s cubic-bezier(.2, .65, .25, 1), scale .15s ease-out;
}

.floating-service-link:active,
.kakao-channel-float:active {
  scale: .96;
}

.kakao-channel-float img {
  display: block;
  width: 104px;
  height: 48px;
}

.kakao-channel-float:hover {
  transform: translateY(-3px);
}

.floating-service-link:focus-visible,
.kakao-channel-float:focus-visible {
  outline: 2px solid #121820;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #fff;
}

@media (max-width: 720px) {
  .floating-actions {
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-service-link,
  .kakao-channel-float {
    transition: none;
  }
}
