/* Deadline-mail settings readability pass. Scoped to the notification modal. */
#notification-modal > .notification-modal {
  width: min(760px, 96vw) !important;
  max-height: 92vh !important;
  padding: 32px !important;
}

#notification-modal > .notification-modal > .eyebrow {
  font-size: 11px !important;
  line-height: 1.25 !important;
  letter-spacing: .14em !important;
}

#notification-modal > .notification-modal > h2 {
  margin: 10px 0 8px !important;
  font-size: 27px !important;
  line-height: 1.2 !important;
}

#notification-modal .notification-description {
  margin: 0 0 18px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

/* The setup instructions are intentionally hidden; the SMTP fields remain
   available under the editable advanced configuration section. */
#notification-modal .gmail-setup,
#notification-modal .mail-test-target {
  display: none !important;
}

#notification-modal .notification-enabled {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  min-height: 52px !important;
  margin: 0 0 19px !important;
  padding: 12px 14px !important;
  border: 1px solid #e3ddd4 !important;
  border-radius: 11px !important;
  background: #faf9f6 !important;
  color: #303631 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 720 !important;
}

#notification-modal .notification-enabled input[type="checkbox"] {
  appearance: none !important;
  position: relative !important;
  width: 46px !important;
  height: 26px !important;
  min-width: 46px !important;
  min-height: 26px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #c8cec9 !important;
  box-shadow: inset 0 0 0 1px #b8c0b9 !important;
  cursor: pointer !important;
  transition: background .18s ease, box-shadow .18s ease !important;
}

#notification-modal .notification-enabled input[type="checkbox"]::after {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(22, 28, 23, .22) !important;
  transition: transform .18s ease !important;
}

#notification-modal .notification-enabled input[type="checkbox"]:checked {
  background: #2f7c60 !important;
  box-shadow: inset 0 0 0 1px #276b52 !important;
}

#notification-modal .notification-enabled input[type="checkbox"]:checked::after {
  transform: translateX(20px) !important;
}

#notification-modal #notification-form > .form-grid,
#notification-modal .smtp-advanced .form-grid {
  gap: 14px !important;
}

#notification-modal #notification-form label:not(.notification-enabled) {
  gap: 8px !important;
  color: #666c67 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 650 !important;
}

#notification-modal #notification-form input:not([type="checkbox"]),
#notification-modal #notification-form select {
  min-height: 46px !important;
  height: 46px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

#notification-modal #notification-form .field-hint {
  margin-top: 1px !important;
  color: #858b85 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

#notification-modal .smtp-advanced {
  margin-top: 18px !important;
  padding: 14px 15px !important;
  border-radius: 11px !important;
  background: #fcfbf8 !important;
}

#notification-modal .smtp-advanced summary {
  color: #3f4741 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 720 !important;
}

#notification-modal .notification-status {
  min-height: 48px !important;
  margin-top: 18px !important;
  padding: 13px 14px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

#notification-modal .notification-status small {
  font-size: 12px !important;
}

#notification-modal form footer {
  gap: 10px !important;
  margin-top: 21px !important;
}

#notification-modal form footer button {
  min-height: 42px !important;
  height: auto !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 720 !important;
}

#notification-modal .notification-history {
  margin-top: 22px !important;
}

#notification-modal .notification-history h3 {
  font-size: 16px !important;
  line-height: 1.3 !important;
}

#notification-modal .mail-history-empty {
  font-size: 12px !important;
}

#notification-modal .mail-entry b {
  font-size: 13px !important;
}

#notification-modal .mail-entry small,
#notification-modal .mail-entry em {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

@media (max-width: 640px) {
  #notification-modal > .notification-modal {
    width: 96vw !important;
    max-height: 94vh !important;
    padding: 25px 20px !important;
  }

  #notification-modal > .notification-modal > h2 {
    font-size: 24px !important;
  }

  #notification-modal .notification-description {
    font-size: 12.5px !important;
  }

  #notification-modal #notification-form label:not(.notification-enabled) {
    font-size: 12.5px !important;
  }

  #notification-modal #notification-form input:not([type="checkbox"]),
  #notification-modal #notification-form select {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
  }

  #notification-modal form footer {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  #notification-modal form footer button {
    width: 100% !important;
  }
}
