/* ═══ common_new1/css/floating.css ══════════════════
 * 우측 하단 플로팅 액션 버튼 (PDF, 공유, 맨위로)
 * 무채색 톤, hover 시 다크 강조
 * ═══════════════════════════════════════════════ */

.floating-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 150;
}

.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), transform var(--ease);
}

.floating-btn:hover {
  background: var(--accent);
  color: var(--ink-invert);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.floating-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* 공유 toast */
.floating-btn__toast {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--ink-strong);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}
.floating-btn__toast.is-show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .floating-wrap {
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }
  .floating-btn {
    width: 40px;
    height: 40px;
  }
}
