#minicompose_container {
  position: fixed;
  z-index: 1200;
  right: 24px;
  bottom: 0;
  display: flex;
  width: auto;
  height: auto;
  align-items: flex-end;
  gap: 12px;
  text-align: left;
  pointer-events: none;
}

#minicompose_container.omail-has-maximized::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.56);
  animation: omail-compose-backdrop-in 160ms ease both;
  pointer-events: auto;
}

.minicompose_maindiv {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(560px, calc(100vw - 48px)) !important;
  height: min(620px, calc(100dvh - 76px)) !important;
  margin: 0 !important;
  flex-direction: column;
  overflow: hidden;
  color: #202124;
  background: #fff !important;
  border: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 12px 36px rgba(32, 33, 36, 0.34);
  opacity: 0;
  transform: translateY(16px);
  transform-origin: right bottom;
  pointer-events: auto;
  transition:
    width 220ms cubic-bezier(0.2, 0, 0, 1),
    height 220ms cubic-bezier(0.2, 0, 0, 1),
    inset 220ms cubic-bezier(0.2, 0, 0, 1),
    opacity 160ms ease,
    transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

.minicompose_maindiv.omail-minicompose-open {
  opacity: 1;
  transform: translateY(0);
}

.minicompose_maindiv.omail-minicompose-closing {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.minicompose_header {
  display: flex;
  height: 44px;
  min-height: 44px;
  align-items: center;
  color: #f8f9fa !important;
  background: #303134 !important;
  border-radius: 0;
  cursor: default;
}

.minicompose_header_left {
  display: flex;
  min-width: 0;
  max-width: none;
  height: 44px;
  flex: 1 1 auto;
  align-items: center;
  float: none;
  overflow: hidden;
}

.minicompose_title,
.minicompose_reduced2 .minicompose_title {
  display: block;
  padding: 0 16px;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 44px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.minicompose_header_right {
  display: flex !important;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  float: none;
}

.minicompose_header_right button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #fff !important;
  font-size: 12px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.minicompose_header_right button:hover,
.minicompose_header_right button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: 0;
}

.minicompose_iframe {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  background: #fff;
}

.minicompose_reduced2 {
  width: min(300px, calc(100vw - 32px)) !important;
  height: 44px !important;
  transform: none !important;
  cursor: pointer;
}

.minicompose_reduced2 .minicompose_minus {
  display: none;
}

.minicompose_maindiv.omail-minicompose-maximized {
  position: fixed;
  inset: 32px 64px 24px;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.38);
}

.minicompose_maindiv.omail-minicompose-maximized .extwinicon::before {
  content: "\f2d2";
}

@keyframes omail-compose-backdrop-in {
  from {
    opacity: 0;
  }
}

body.task-mail.action-compose #layout-sidebar.sidebar-right {
  display: none !important;
}

body.task-mail.action-compose #layout-content {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden;
  color: #202124;
  background: #fff !important;
}

body.task-mail.action-compose #layout-content > .header {
  color: #3c4043;
  background: #f2f6fc !important;
  border: 0 !important;
  border-bottom: 1px solid #e0e3e7 !important;
}

body.task-mail.action-compose #compose-content {
  height: calc(100% - 58px);
  padding: 0 !important;
  overflow: hidden;
  background: #fff !important;
}

body.task-mail.action-compose #compose-content > form {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

body.task-mail.action-compose #compose-objects {
  margin: 0 !important;
}

body.task-mail.action-compose #compose-headers {
  flex: 0 0 auto;
}

body.task-mail.action-compose #compose_button_send {
  display: none !important;
}

body.task-mail.action-compose .compose-headers {
  table-layout: fixed;
  width: 100%;
  margin: 0 !important;
  border-collapse: collapse;
}

body.task-mail.action-compose .compose-headers tr {
  height: 46px;
  border-bottom: 1px solid #e0e3e7;
}

body.task-mail.action-compose .compose-headers #compose_from {
  display: table-row !important;
}

body.task-mail.action-compose .compose-headers td:first-child {
  width: 58px !important;
  padding: 0 0 0 18px !important;
  color: #5f6368;
  font-size: 13px;
  vertical-align: middle;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.task-mail.action-compose .compose-headers td:first-child > button {
  width: 100%;
  height: 46px;
  min-width: 0 !important;
  padding: 0 !important;
  color: #5f6368 !important;
  font-size: 13px;
  text-align: left;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.task-mail.action-compose .compose-headers td:first-child > *,
body.task-mail.action-compose .compose-headers td:last-child > * {
  box-shadow: none !important;
}

body.task-mail.action-compose .compose-headers td:last-child {
  min-width: 0;
  padding: 0 14px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.task-mail.action-compose .compose-headers .input-group {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
}

body.task-mail.action-compose .compose-headers .input-group > input,
body.task-mail.action-compose .compose-headers .input-group > .form-control {
  min-width: 0;
  flex: 1 1 auto;
}

body.task-mail.action-compose .compose-headers .recipient-input {
  min-height: 42px !important;
  padding: 3px 6px !important;
  align-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.task-mail.action-compose .compose-headers .recipient-input li.input {
  min-width: 80px;
}

body.task-mail.action-compose .compose-headers .recipient-input input {
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 4px 2px;
}

body.task-mail.action-compose .compose-headers .recipient-input .recipient {
  min-height: 28px;
  margin-top: 0;
  align-items: center;
  border-color: #d2d7df;
  border-radius: 4px;
  background: #eef3f8;
}

body.task-mail.action-compose .compose-headers input,
body.task-mail.action-compose .compose-headers select,
body.task-mail.action-compose #compose-subject,
body.task-mail.action-compose .compose-headers .form-control {
  min-height: 44px;
  padding: 7px 8px;
  color: #202124 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.task-mail.action-compose #compose_from select {
  cursor: pointer;
}

body.task-mail.action-compose .omail-native-from-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.omail-from-picker {
  position: relative;
  min-width: 0;
  width: 100%;
}

.omail-from-trigger {
  display: flex;
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 8px;
  align-items: center;
  gap: 8px;
  color: #202124;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: none !important;
  cursor: pointer;
}

.omail-from-trigger:hover,
.omail-from-trigger:focus-visible {
  background: #f3f6fb;
  outline: 0;
}

.omail-from-value {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
}

.omail-from-value-name,
.omail-from-value-address {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omail-from-value-name {
  color: #202124;
  font-size: 13px;
  font-weight: 500;
}

.omail-from-value-address {
  color: #5f6368;
  font-size: 12px;
}

.omail-from-arrow::before {
  content: "\f0d7";
  color: #5f6368;
  font-family: Icons;
  font-size: 12px;
  font-weight: 900;
}

.omail-from-menu {
  position: absolute;
  z-index: 1300;
  top: calc(100% + 4px);
  left: 0;
  width: min(460px, calc(100vw - 96px));
  max-height: min(360px, 55dvh);
  padding: 6px;
  overflow-y: auto;
  color: #202124;
  background: #fff;
  border: 1px solid rgba(60, 64, 67, 0.14);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(60, 64, 67, 0.25);
}

.omail-from-menu[hidden] {
  display: none;
}

.omail-from-option {
  display: grid;
  width: 100%;
  min-height: 50px;
  padding: 7px 12px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  color: #202124;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: none !important;
  cursor: pointer;
}

.omail-from-option:hover,
.omail-from-option:focus-visible {
  background: #f1f4f9;
  outline: 0;
}

.omail-from-check::before {
  content: "\f00c";
  color: transparent;
  font-family: Icons;
  font-size: 14px;
  font-weight: 900;
}

.omail-from-option.is-selected .omail-from-check::before {
  color: #0b57d0;
}

.omail-from-option-label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.omail-from-option-label strong,
.omail-from-option-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omail-from-option-label strong {
  font-size: 13px;
  font-weight: 500;
}

.omail-from-option-label span {
  color: #5f6368;
  font-size: 12px;
}

body.task-mail.action-compose #mini_cc,
body.task-mail.action-compose #mini_bcc {
  align-items: center;
}

body.task-mail.action-compose #mini_cc a,
body.task-mail.action-compose #mini_bcc a {
  display: grid;
  width: auto;
  min-width: 34px;
  padding: 0 6px;
  color: #5f6368 !important;
  font-size: 12px;
  background: transparent !important;
  place-items: center;
}

body.task-mail.action-compose #compose_subject {
  border: 0 !important;
  border-bottom: 1px solid #e0e3e7 !important;
  box-shadow: none !important;
}

body.task-mail.action-compose #compose-subject {
  width: 100%;
  padding: 11px 18px;
}

body.task-mail.action-compose #composebodycontainer {
  position: relative;
  display: flex;
  min-height: 120px;
  flex: 1 1 auto;
  overflow: hidden;
}

body.task-mail.action-compose #composebody {
  width: 100%;
  height: 100% !important;
  min-height: 120px;
  padding: 18px;
  resize: none;
  color: #202124;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.task-mail.action-compose #composebodycontainer .tox-tinymce,
body.task-mail.action-compose #composebodycontainer .mce-container {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  flex-direction: column;
  border: 0 !important;
  border-radius: 0 !important;
}

body.task-mail.action-compose #composebodycontainer .tox-editor-container,
body.task-mail.action-compose #composebodycontainer .tox-sidebar-wrap {
  display: flex !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  flex-direction: column;
}

body.task-mail.action-compose #composebodycontainer .tox-editor-header {
  position: relative !important;
  z-index: 2;
  flex: 0 0 auto !important;
}

body.task-mail.action-compose #composebodycontainer .tox-edit-area {
  min-height: 0 !important;
  flex: 1 1 auto !important;
}

body.task-mail.action-compose #composebodycontainer .tox-edit-area__iframe {
  position: relative !important;
  display: block !important;
}

body.task-mail.action-compose #attachment-list {
  max-height: 90px;
  flex: 0 0 auto;
  overflow: auto;
  border-top: 1px solid #e0e3e7;
}

.omail-compose-footer {
  position: relative;
  z-index: 4;
  isolation: isolate;
  display: flex;
  min-height: 60px;
  flex: 0 0 60px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #e0e3e7;
}

.omail-compose-primary-actions,
.omail-compose-utility-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.task-mail.action-compose .omail-compose-footer .omail-schedule-send-group .sendmain,
body.task-mail.action-compose .omail-compose-footer .sendmain {
  display: inline-flex !important;
  min-width: 76px !important;
  height: 38px !important;
  padding: 0 18px !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1 !important;
  background: #0b57d0 !important;
  border: 0 !important;
  border-radius: 18px 0 0 18px !important;
  box-shadow: none !important;
}

body.task-mail.action-compose .omail-compose-footer .sendmain::before {
  display: none !important;
  content: none !important;
}

body.task-mail.action-compose .omail-compose-footer .omail-schedule-send-group {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(76px, auto) 30px;
  width: auto;
  height: 38px !important;
  min-height: 38px !important;
  overflow: hidden;
  border-radius: 19px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2);
}

body.task-mail.action-compose .omail-compose-footer .omail-schedule-trigger {
  position: relative;
  z-index: 2;
  width: 30px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 0 18px 18px 0 !important;
}

.omail-compose-footer-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #444746;
  background: transparent;
  border: 0;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
}

.omail-compose-footer-button:hover,
.omail-compose-footer-button:focus-visible {
  background: rgba(60, 64, 67, 0.1);
  outline: 0;
}

.omail-compose-attach::before {
  content: "\f0c6";
  font-family: Icons;
  font-size: 17px;
  font-weight: 900;
}

html.iframe body.task-mail.action-compose #layout {
  height: 100dvh;
  min-height: 0;
  background: #fff !important;
}

html.iframe body.task-mail.action-compose #layout-content {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html.iframe body.task-mail.action-compose #layout-content > .header {
  display: none !important;
}

html.iframe body.task-mail.action-compose #compose-content {
  height: 100%;
}

@media screen and (min-width: 769px) {
  body.task-mail.action-none #layout-list > .pagenav {
    transition:
      bottom 220ms cubic-bezier(0.2, 0, 0, 1),
      transform 220ms cubic-bezier(0.2, 0, 0, 1);
  }

  body.task-mail.action-none.omail-compose-minimized-open
    #layout-list
    > .pagenav {
    bottom: 64px;
  }

  body.task-mail.action-none:has(
      #minicompose_container .minicompose_reduced2
    )
    #layout-list
    > .pagenav {
    bottom: 58px;
  }
}

@media screen and (min-width: 769px) {
  body.task-mail.action-compose.omail-compose-page #layout {
    padding: 30px 64px;
  }

  body.task-mail.action-compose.omail-compose-page #layout-content {
    height: calc(100dvh - 60px);
    margin: 0 !important;
    border-radius: 8px;
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.24);
  }
}

@media screen and (max-width: 768px) {
  #minicompose_container {
    display: none !important;
  }

  body.task-mail.action-compose #layout {
    width: 100%;
    height: 100dvh;
    min-height: 0;
  }

  body.task-mail.action-compose #layout-content {
    width: 100% !important;
    height: 100dvh !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.task-mail.action-compose #layout-content > .header {
    height: 56px !important;
    min-height: 56px !important;
  }

  body.task-mail.action-compose #compose-content {
    height: calc(100dvh - 56px);
  }

  body.task-mail.action-compose .compose-headers td:first-child {
    width: 58px !important;
    padding-left: 12px;
  }

  body.task-mail.action-compose #compose-subject,
  body.task-mail.action-compose #composebody {
    padding-right: 12px;
    padding-left: 12px;
  }

  body.task-mail.action-compose .omail-compose-footer {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  body.task-mail.action-compose .omail-schedule-mobile-trigger {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .minicompose_maindiv,
  #minicompose_container.omail-has-maximized::before {
    animation: none !important;
    transition: none !important;
  }
}
