.dm-mailbox {
  padding: 0 40px 22px;
  margin-top: -4px;
}

.dm-mailbox__switch {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--accent);
  border-bottom: 1px dashed currentColor;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.dm-mailbox__switch:hover {
  color: var(--red);
  text-decoration: none;
}

.dm-mailbox__switch--open {
  opacity: .7;
}

.dm-mailbox__panel {
  margin-top: 12px;
}

.dm-mailbox-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dm-mailbox__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.dm-mailbox__input {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
}

.dm-mailbox__submit {
  min-width: 116px;
  height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.dm-mailbox__notice {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.dm-mailbox__notice--success {
  background: rgba(66, 185, 131, .12);
  color: #42b983;
}

.dm-mailbox__notice--error {
  background: rgba(226, 77, 114, .12);
  color: #e24d72;
}

.dm-mailbox__notice--warn {
  background: rgba(255, 199, 95, .14);
  color: #c98112;
}

@media (max-width: 480px) {
  .dm-mailbox {
    padding: 0 20px 20px;
  }

  .dm-mailbox-form {
    grid-template-columns: 1fr;
  }

  .dm-mailbox__submit {
    width: 100%;
  }
}
