.mary-contact-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.mary-contact-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line, #d7d5ce);
  border-radius: 20px;
  padding: 0;
  background: var(--paper, #f7f7f5);
  color: var(--ink, #171713);
  box-shadow: 0 24px 80px rgb(0 0 0 / 24%);
}

.mary-contact-dialog::backdrop { background: rgb(20 20 16 / 65%); }
.mary-contact-panel { padding: clamp(24px, 5vw, 48px); }
.mary-contact-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.mary-contact-head h2 { margin: 0; }
.mary-contact-close { min-width: 48px; min-height: 44px; width: auto; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; font: inherit; white-space: nowrap; }
.mary-contact-form { display: grid; gap: 18px; margin-top: 24px; }
.mary-contact-form label { display: grid; gap: 7px; font-weight: 700; }
.mary-contact-form input,
.mary-contact-form textarea { width: 100%; border: 1px solid var(--line, #bbb); border-radius: 8px; background: #fff; color: #171713; font: inherit; padding: 12px; }
.mary-contact-form textarea { min-height: 140px; resize: vertical; }
.mary-contact-form .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mary-contact-note,
.mary-contact-address,
.mary-contact-status { font-size: .92rem; }
.mary-contact-status:focus { outline: 2px solid currentColor; outline-offset: 4px; }
body.mary-contact-open { overflow: hidden; }
