/* Separate controls preserve the email link's native markup and destination. */
button.mgr-email-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin: 0 0 0 .35em;
  padding: 7px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}

button.mgr-email-copy:hover,
button.mgr-email-copy:focus-visible {
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: inherit;
  transform: translateY(-1px);
}

button.mgr-email-copy:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

button.mgr-email-copy svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.mgr-email-feedback {
  position: fixed;
  z-index: 100010;
  width: max-content;
  max-width: min(340px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #fff;
  color: #1e2435;
  box-shadow: 0 8px 28px rgb(29 0 100 / 18%);
  font-family: Lato, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  overflow-wrap: anywhere;
  user-select: text;
}

.mgr-email-feedback[hidden] { display: none; }

.mgr-email-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (pointer: coarse) {
  button.mgr-email-copy {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
}

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