/* Hover copy button: one floating button that follows the value under the mouse (copy.js). */
.cp-float {
  position: fixed;
  z-index: 60;
  width: 24px;
  height: 24px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  user-select: none;
  -webkit-user-select: none;
}
.cp-float.on { display: grid; animation: cp-in .12s ease-out; }
.cp-float:hover { background: var(--hover); color: var(--primary-ink); }
.cp-float.done { color: var(--success); background: var(--success-soft); border-color: transparent; }
.cp-float.done::after {
  content: "تم النسخ";
  position: absolute;
  bottom: calc(100% + 6px);
  inset-inline-start: 50%;
  transform: translateX(50%);
  white-space: nowrap;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  pointer-events: none;
}
@keyframes cp-in { from { opacity: 0; } }
@media print { .cp-float { display: none !important; } }
