/* Contact email copy button (v281) */
.email-copy-button {
  -webkit-appearance: none;
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  vertical-align: baseline;
  cursor: pointer;
}

.email-copy-button:hover,
.email-copy-button.is-copied {
  color: #d8ff1f;
}

.email-copy-button:focus-visible {
  outline: 2px solid #d8ff1f;
  outline-offset: 3px;
  border-radius: 4px;
}

.email-copy-button[aria-busy="true"] {
  cursor: progress;
}

.ip-contact .email-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #c5d1e1;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.ip-contact .email-copy-button:hover,
.ip-contact .email-copy-button.is-copied {
  color: #d8ff1f;
  border-color: rgba(216, 255, 31, 0.38);
  background: rgba(216, 255, 31, 0.08);
}

.ip-contact .email-copy-button:active {
  transform: translateY(1px);
}

.legal-contact.email-copy-button {
  color: #d8ff1f !important;
  font-weight: inherit;
}

.email-copy-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 2147483647;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(216, 255, 31, 0.34);
  border-radius: 12px;
  background: rgba(18, 24, 34, 0.96);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.36);
  color: #f5f8fc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.email-copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.email-copy-toast.is-error {
  border-color: rgba(255, 122, 122, 0.44);
}

@media (prefers-reduced-motion: reduce) {
  .ip-contact .email-copy-button,
  .email-copy-toast {
    transition: none;
  }
}
