/* Eletroware Mail R73 — presentation-only theme corrections for three mail notices.
   Keep this file after the R72 read-state stylesheet. No mail logic is changed. */

/* Confirmed send result: compact, restrained surface; leave shared action toasts untouched. */
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) {
  position: fixed !important;
  z-index: 10020 !important;
  right: max(16px, calc((100vw - 980px) / 2 + 16px)) !important;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: min(390px, calc(100vw - 32px)) !important;
  box-sizing: border-box !important;
  padding: 12px 13px !important;
  color: #233238 !important;
  background: #ffffff !important;
  border: 1px solid #dbe5e3 !important;
  border-left: 4px solid #168b80 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(20, 43, 48, .15) !important;
  animation: ew-new-mail-in .22s ease-out both !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast).is-pending {
  color: #233238 !important;
  background: #ffffff !important;
  border-color: #dbe5e3 !important;
  border-left-color: #168b80 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast).is-warning {
  border-color: #e8d9b7 !important;
  border-left-color: #c28b24 !important;
  background: #fffdf7 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-icon {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  color: #ffffff !important;
  background: #168b80 !important;
  border-radius: 9px !important;
  font-size: 14px !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast).is-warning .ew-mail-send-toast-icon {
  color: #624710 !important;
  background: #f1c36b !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-copy strong {
  color: #233238 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-copy span {
  color: #5d7072 !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-actions {
  align-self: center !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-open {
  min-height: 32px !important;
  padding: 6px 9px !important;
  color: #286b63 !important;
  background: #f5faf9 !important;
  border: 1px solid #c8ded9 !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-open:hover {
  background: #e8f4f1 !important;
  border-color: #9fc9c0 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-dismiss {
  display: grid !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  place-items: center !important;
  padding: 0 !important;
  color: #66797a !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 7px !important;
  font-size: 18px !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-dismiss:hover {
  background: #f0f5f4 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) {
  color: #e6efed !important;
  background: #17252a !important;
  border-color: #38514f !important;
  border-left-color: #62c4b0 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32) !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast).is-warning {
  background: #302b1e !important;
  border-color: #625334 !important;
  border-left-color: #e1b75c !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-copy strong {
  color: #e6efed !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-copy span {
  color: #b6c9c9 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-open {
  color: #c2e7df !important;
  background: #203633 !important;
  border-color: #456760 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-open:hover {
  background: #29433e !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-dismiss {
  color: #b4c3c2 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-dismiss:hover {
  background: #263638 !important;
}
@media (max-width: 560px) {
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) {
    right: 16px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 7px 9px !important;
    width: calc(100vw - 40px) !important;
    max-width: 390px !important;
    padding: 11px 12px !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding-right: 23px !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-actions {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-send-toast:not(.ew-mail-action-toast) .ew-mail-send-toast-dismiss {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
  }
}

/* In-app new-mail alert: colors follow the root theme class, including live theme changes. */
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert {
  position: fixed !important;
  z-index: 10021 !important;
  top: 16px !important;
  right: max(16px, calc((100vw - 980px) / 2 + 16px)) !important;
  width: min(360px, calc(100vw - 32px)) !important;
  box-sizing: border-box !important;
  gap: 10px !important;
  padding: 11px 12px !important;
  color: #233238 !important;
  background: #ffffff !important;
  border: 1px solid #dbe5e3 !important;
  border-left: 3px solid #168b80 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(20, 43, 48, .15) !important;
  animation: ew-new-mail-in .22s ease-out both !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-icon {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  color: #ffffff !important;
  background: #168b80 !important;
  border-radius: 9px !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-copy strong {
  color: #233238 !important;
  font-size: 12px !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-copy span {
  color: #465e62 !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-copy small {
  color: #66797a !important;
  font-size: 10.5px !important;
  line-height: 1.4 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-open {
  min-height: 31px !important;
  padding: 6px 10px !important;
  color: #286b63 !important;
  background: #f5faf9 !important;
  border: 1px solid #c8ded9 !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-open:hover {
  background: #e8f4f1 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-dismiss {
  display: grid !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  place-items: center !important;
  color: #66797a !important;
  border-radius: 7px !important;
  font-size: 18px !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-dismiss:hover {
  background: #f0f5f4 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert.is-delivery-failure {
  color: #473134 !important;
  background: #fff4f3 !important;
  border-color: #e4c7c7 !important;
  border-left-color: #c74343 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert.is-delivery-failure .ew-new-mail-alert-icon {
  color: #ffffff !important;
  background: #b83d43 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert.is-delivery-failure .ew-new-mail-alert-copy strong {
  color: #79353a !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert.is-delivery-failure .ew-new-mail-alert-open {
  color: #ffffff !important;
  background: #b83d43 !important;
  border-color: #b83d43 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert {
  color: #e6efed !important;
  background: #17252a !important;
  border-color: #38514f !important;
  border-left-color: #62c4b0 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32) !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert .ew-new-mail-alert-copy strong {
  color: #e6efed !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert .ew-new-mail-alert-copy span {
  color: #c0d0d1 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert .ew-new-mail-alert-copy small,
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert .ew-new-mail-alert-dismiss {
  color: #aabebe !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert .ew-new-mail-alert-icon {
  color: #173b36 !important;
  background: #75d5c1 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert .ew-new-mail-alert-open {
  color: #c2e7df !important;
  background: #203633 !important;
  border-color: #456760 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert .ew-new-mail-alert-open:hover,
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert .ew-new-mail-alert-dismiss:hover {
  background: #29433e !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert.is-delivery-failure {
  color: #ffe6e6 !important;
  background: #3a2729 !important;
  border-color: #74484a !important;
  border-left-color: #ef7777 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert.is-delivery-failure .ew-mail-new-alert-copy strong,
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert.is-delivery-failure .ew-new-mail-alert-copy strong {
  color: #ffd1d1 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert.is-delivery-failure .ew-new-mail-alert-open {
  color: #ffffff !important;
  background: #b83d43 !important;
  border-color: #b83d43 !important;
}
@media (max-width: 560px) {
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert {
    top: max(12px, env(safe-area-inset-top, 0px)) !important;
    right: 16px !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) 28px !important;
    gap: 7px 9px !important;
    width: calc(100vw - 40px) !important;
    max-width: 390px !important;
    padding: 10px 11px !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-copy {
    grid-column: 2 / 4 !important;
    grid-row: 1 !important;
    padding-right: 1px !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-open {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-new-mail-alert-dismiss {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: start !important;
  }
}

/* Actual in-app delete alertdialog, not the unrelated native discard dialog. */
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-confirm {
  position: fixed !important;
  z-index: 1100 !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  padding: 20px !important;
  background: transparent !important;
  backdrop-filter: blur(2px) !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: rgba(23, 39, 43, .32) !important;
  backdrop-filter: blur(2px) !important;
  cursor: default !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-card {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  width: min(450px, 100%) !important;
  box-sizing: border-box !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 13px !important;
  padding: 23px !important;
  color: #233238 !important;
  border: 1px solid #e1e9e8 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 48px rgba(20, 43, 48, .20) !important;
  text-align: center !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-icon {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  color: #a83d43 !important;
  background: #fff1f0 !important;
  border: 1px solid #efcecc !important;
  border-radius: 12px !important;
  font-size: 21px !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 7px !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-copy .ew-mail-native-eyebrow {
  color: #8a6b45 !important;
  font-size: 10px !important;
  letter-spacing: .08em !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-copy h3 {
  margin: 0 !important;
  color: #233238 !important;
  font-size: 18px !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-copy p {
  max-width: 365px !important;
  margin: 0 !important;
  color: #5d7072 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions {
  display: flex !important;
  width: 100% !important;
  justify-content: flex-end !important;
  gap: 9px !important;
  margin-top: 3px !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions button {
  min-width: 132px !important;
  min-height: 38px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions .ew-mail-native-secondary {
  color: #435a5d !important;
  background: #f7faf9 !important;
  border: 1px solid #d6e2e0 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions .ew-mail-native-secondary:hover {
  background: #eef4f3 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions .ew-mail-native-danger {
  color: #ffffff !important;
  background: #b83d43 !important;
  border: 1px solid #b83d43 !important;
}
body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions .ew-mail-native-danger:hover {
  background: #a83238 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-confirm {
  background: transparent !important;
  backdrop-filter: blur(3px) !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-backdrop {
  background: rgba(3, 10, 17, .58) !important;
  backdrop-filter: blur(3px) !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-card {
  color: #e6efed !important;
  border-color: #394a4c !important;
  background: #19262b !important;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .38) !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-icon {
  color: #ffc3c3 !important;
  background: #422d31 !important;
  border-color: #674147 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-copy .ew-mail-native-eyebrow {
  color: #d7b685 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-copy h3 {
  color: #e6efed !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-copy p {
  color: #b6c9c9 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions .ew-mail-native-secondary {
  color: #d5e1df !important;
  background: #263538 !important;
  border-color: #45595a !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions .ew-mail-native-secondary:hover {
  background: #304448 !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions .ew-mail-native-danger {
  color: #ffffff !important;
  background: #c2484e !important;
  border-color: #c2484e !important;
}
html.dark body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions .ew-mail-native-danger:hover {
  background: #a9363d !important;
}
@media (max-width: 520px) {
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-confirm {
    padding: 14px !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-card {
    padding: 19px 16px !important;
    border-radius: 14px !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions {
    flex-direction: column-reverse !important;
    justify-content: stretch !important;
  }
  body.ew-v2-collab .ew-mail-redesign-v17 .ew-mail-delete-actions button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* The new-mail banner sits below the global toolbar and above the mailbox panes. */
body.ew-v2-collab dialog.ew-mail-native-dialog.ew-mail-redesign-v17 .ew-v63-app > .ew-new-mail-alert {
  position: relative !important;
  inset: auto !important;
  z-index: 7 !important;
  align-self: flex-end !important;
  flex: 0 0 auto !important;
  width: min(420px, calc(100% - 24px)) !important;
  max-width: calc(100% - 24px) !important;
  margin: 8px 12px !important;
  box-sizing: border-box !important;
}
/* Send feedback belongs to the composer, where it can never obscure the form. */
body.ew-v2-collab dialog.ew-mail-native-dialog.ew-mail-redesign-v17 .ew-v63-compose-window > .ew-mail-send-toast:not(.ew-mail-action-toast) {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  width: calc(100% - 28px) !important;
  max-width: 560px !important;
  margin: 8px auto 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 760px) {
  body.ew-v2-collab dialog.ew-mail-native-dialog.ew-mail-redesign-v17 .ew-v63-app > .ew-new-mail-alert {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 6px 10px !important;
  }
  body.ew-v2-collab dialog.ew-mail-native-dialog.ew-mail-redesign-v17 .ew-v63-compose-window > .ew-mail-send-toast:not(.ew-mail-action-toast) {
    width: calc(100% - 24px) !important;
    margin: 8px 12px 0 !important;
  }
}
