#copy,
#copy-template {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.copy-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
}
.copy-icon svg {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.copy-check {
  opacity: 0;
  transform: scale(0.7);
}
.copy-confirmed .copy-download {
  opacity: 0;
  transform: translateY(3px);
}
.copy-confirmed .copy-check {
  opacity: 1;
  transform: scale(1);
}
.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  max-width: min(390px, calc(100vw - 32px));
  padding: 16px 20px;
  border: 1px solid #3a8656;
  border-radius: 12px;
  background: #236c40;
  color: white;
  box-shadow: 0 8px 28px #143c302b;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.copy-toast.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .copy-icon svg,
  .copy-toast {
    transition: none;
  }
}
