.mtg-deck-list-copy {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: grid;
  max-width: min(22rem, calc(100vw - 2rem));
  justify-items: end;
  gap: 0.45rem;
  font: 600 0.85rem/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mtg-deck-list-copy button {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  color: #fff;
  background: #171717;
  box-shadow: 0 0.6rem 1.8rem rgb(0 0 0 / 32%);
  font: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.mtg-deck-list-copy button:hover {
  background: #2a2a2a;
}

.mtg-deck-list-copy button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.mtg-deck-list-copy button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.mtg-deck-list-copy a {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: #171717;
  box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 24%);
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.mtg-deck-list-copy a:hover {
  background: #2a2a2a;
}

.mtg-deck-list-copy a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.mtg-deck-list-copy p {
  margin: 0;
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  color: #fff;
  background: rgb(23 23 23 / 94%);
  box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 24%);
  text-align: right;
}

.mtg-deck-list-copy p:empty {
  display: none;
}

@media print {
  .mtg-deck-list-copy {
    display: none;
  }
}
