.hy-copy-anchor {
  position: relative;
}

.hy-copy-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hy-copy {
  position: absolute;
  right: 1.5em;
  bottom: 1.1em;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  line-height: 18px;
  color: var(--hy-copy-dim, rgba(255, 255, 255, 0.45));
  cursor: pointer;
  transition: color 0.2s linear;
  -webkit-appearance: none;
  appearance: none;
}
.hy-copy:hover,
.hy-copy.is-copied {
  color: var(--hy-copy-fg, #ffffff);
}
.hy-copy:focus-visible {
  color: var(--hy-copy-fg, #ffffff);
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.hy-copy__label {
  display: block;
  height: 18px;
  overflow: hidden;
  line-height: 18px;
}
.hy-copy__rows {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: translate 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.hy-copy__rows > span {
  height: 18px;
  white-space: nowrap;
}
.hy-copy:hover .hy-copy__rows,
.hy-copy:focus-visible .hy-copy__rows {
  translate: 0 -18px;
}

.hy-copy__icon {
  flex: none;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.hy-copy__icon .hy-copy__sheet {
  transition: translate 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s linear;
}
.hy-copy:hover .hy-copy__back,
.hy-copy:focus-visible .hy-copy__back {
  translate: -1px -1px;
}
.hy-copy:hover .hy-copy__front,
.hy-copy:focus-visible .hy-copy__front {
  translate: 1px 1px;
}
.hy-copy__icon .hy-copy__tick {
  stroke-dasharray: 1.02 2;
  stroke-dashoffset: 1.04;
  transition: stroke-dashoffset 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.hy-copy.is-copied .hy-copy__rows {
  translate: 0 -36px;
}
.hy-copy.is-copied .hy-copy__sheet {
  opacity: 0;
  translate: 0 0;
}
.hy-copy.is-copied .hy-copy__tick {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.12s;
}
.hy-copy.is-failed .hy-copy__tick {
  stroke-dashoffset: 1.04;
}

@media (prefers-reduced-motion: reduce) {
  .hy-copy,
  .hy-copy__rows,
  .hy-copy__icon .hy-copy__sheet,
  .hy-copy__icon .hy-copy__tick {
    transition: none;
  }
}
