/* UI1 — copy-pane icon (idle); label span for Kopieret/Fejl feedback */

body.text-first .copy-pane {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 10px !important;
  text-decoration: none !important;
  vertical-align: top;
}

body.text-first .copy-pane-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='2.5' width='7' height='9' rx='1'/%3E%3Crect x='2.5' y='5.5' width='7' height='9' rx='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='2.5' width='7' height='9' rx='1'/%3E%3Crect x='2.5' y='5.5' width='7' height='9' rx='1'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

body.text-first .copy-pane-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.text-first .copy-pane.is-copied .copy-pane-icon,
body.text-first .copy-pane.is-copy-error .copy-pane-icon {
  display: none;
}

body.text-first .copy-pane.is-copied .copy-pane-label,
body.text-first .copy-pane.is-copy-error .copy-pane-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  font-size: 0.64rem !important;
  font-weight: 600 !important;
}

body.text-first .copy-pane:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
  outline-style: solid !important;
}

@media (max-width: 720px) {
  body.text-first .copy-pane {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 10px !important;
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
  body.text-first .copy-pane {
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 8px !important;
  }
}