#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(520px, calc(100vw - 48px)) !important;
  height: min(600px, calc(100dvh - 76px)) !important;
  margin: 0 !important;
  flex-direction: column;
  overflow: hidden;
  color: #202124;
  background: #fff !important;
  border: 0;
  border-radius: 8px 8px 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: 40px;
  min-height: 40px;
  align-items: center;
  color: #f8f9fa !important;
  background: #404040 !important;
  border-radius: 0;
  cursor: default;
}

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

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

.minicompose_header_right {
  display: flex !important;
  height: 40px;
  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: 40px !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: 44px;
  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: 68px !important;
  padding: 0 4px 0 16px;
  color: #5f6368;
  font-size: 13px;
  vertical-align: middle;
}

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

body.task-mail.action-compose .compose-headers td:last-child {
  min-width: 0;
  padding-right: 12px;
}

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 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: 42px;
  padding: 6px 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 #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-bottom: 1px solid #e0e3e7;
}

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

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: 16px;
  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 {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !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 {
  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 {
  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 {
  width: 30px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 0 18px 18px 0 !important;
}

.omail-compose-footer-button {
  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-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;
  }
}
