.copy-email-toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 11px 15px 11px 11px;
  color: #fff;
  background: rgba(24, 24, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.copy-email-toast[hidden] {
  display: none;
}

.copy-email-toast[data-state='visible'] {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.copy-email-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: #0d3322;
  background: #55e6a5;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.copy-email-toast[data-kind='error'] .copy-email-toast__icon {
  color: #fff;
  background: #e7521e;
}

.copy-email-toast__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.copy-email-toast__title {
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.copy-email-toast__email {
  overflow: hidden;
  max-width: min(280px, calc(100vw - 104px));
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-email-inline {
  appearance: none;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.copy-email-inline:hover {
  color: var(--accent, #ff6431);
}

.copy-email-inline:focus-visible {
  outline: 2px solid var(--accent, #ff6431);
  outline-offset: 3px;
  border-radius: 3px;
}

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