@layer ember-promise-modals {
  :root {
    /* The named -duration and -delay variables will be lowered to near zero when using the setupPromiseModals test helper  */
    --epm-animation-backdrop-in-duration: 0.3s;
    --epm-animation-backdrop-out-duration: 0.18s;
    --epm-animation-modal-in-duration: 0.3s;
    --epm-animation-modal-out-duration: 0.18s;
    --epm-animation-backdrop-in-delay: 0s;
    --epm-animation-backdrop-out-delay: 0s;
    --epm-animation-modal-in-delay: 0s;
    --epm-animation-modal-out-delay: 0s;
    --epm-animation-backdrop-in: var(--epm-animation-backdrop-in-duration) ease var(--epm-animation-backdrop-in-delay) forwards epm-backdrop-in;
    --epm-animation-backdrop-out: var(--epm-animation-backdrop-out-duration) ease var(--epm-animation-backdrop-out-delay) forwards epm-backdrop-out;
    --epm-animation-modal-in: var(--epm-animation-modal-in-duration) ease-out var(--epm-animation-modal-in-delay) forwards epm-modal-in;
    --epm-animation-modal-out: var(--epm-animation-modal-out-duration) ease-out var(--epm-animation-modal-out-delay) forwards epm-modal-out;
    --epm-backdrop-background: #2d3748CD;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
  --epm-animation-backdrop-in-duration: 0.001s;
  --epm-animation-backdrop-out-duration: 0.001s;
  --epm-animation-modal-in-duration: 0.001s;
  --epm-animation-modal-out-duration: 0.001s;
  --epm-animation-backdrop-in-delay: 0.001s;
  --epm-animation-backdrop-out-delay: 0.001s;
  --epm-animation-modal-in-delay: 0.001s;
  --epm-animation-modal-out-delay: 0.001s;
  }
}

.epm-scrolling-disabled {
  overflow: hidden;
}

.epm-backdrop,
.epm-modal-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.epm-backdrop {
  background-color: var(--epm-backdrop-background);
  opacity: 0;
  animation: var(--epm-animation-backdrop-in);
  animation-delay: var(--epm-animation-backdrop-in-delay);
  animation-duration: var(--epm-animation-backdrop-in-duration);
}

.epm-modal-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.epm-animating .epm-modal-container {
  overflow: unset;
}

.epm-modal {
  margin: auto;
  transform: translate(0, -30vh) scale(1.1);
  opacity: 0;
  animation: var(--epm-animation-modal-in);
  animation-delay: var(--epm-animation-modal-in-delay);
  animation-duration: var(--epm-animation-modal-in-duration);
  -webkit-overflow-scrolling: touch; /* momentum-based scrolling for Safari on iOS */
}

.epm-backdrop.epm-out {
  opacity: 1;
  animation: var(--epm-animation-backdrop-out);
  animation-delay: var(--epm-animation-backdrop-out-delay);
  animation-duration: var(--epm-animation-backdrop-out-duration);
  pointer-events: none;
}

.epm-modal.epm-out {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  animation: var(--epm-animation-modal-out);
  animation-delay: var(--epm-animation-modal-out-delay);
  animation-duration: var(--epm-animation-modal-out-duration);
  pointer-events: none;
}

@keyframes epm-backdrop-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes epm-backdrop-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes epm-modal-in {
  0% {
    transform: translate(0, -30vh) scale(1.1);
    opacity: 0;
  }
  72% {
    transform: translate(0, 0) scale(0.99);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes epm-modal-out {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(0, -10vh) scale(0.8);
    opacity: 0;
  }
}

.ember-select {
  position: relative;
}

.es-control {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  color: #333;
  cursor: text;
  display: table;
  height: 36px;
  outline: none;
  overflow: hidden;
  padding: 6px 12px;
  position: relative;
  table-layout: fixed;
  width: 100%;
  z-index: 5;
}

.es-control:hover {
  box-shadow: 0 1px 0 rgb(0 0 0 / 6%);
}

.es-input > input {
  border: 0 none;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  width: 100%;
}

.es-select,
.es-select input {
  cursor: pointer;
}

.es-multiple .es-control {
  padding: 4px 12px;
}

.es-multiple .es-input > input {
  width: auto;
}

.es-open > .es-control {
  background: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #b3b3b3 #ccc #d9d9d9;
}

/* Disabled (readonly) */
.es-disabled .es-control,
.es-disabled .es-control input {
  background-color: #f5f5f5;
  color: #555;
  cursor: not-allowed;
}

.es-focus:not(.es-open) > .es-control {
  border-color: #0099e6;
  box-shadow:
    inset 0 1px 2px rgb(0 0 0 / 10%),
    0 0 5px -1px rgb(0 136 204 / 50%);
}

.es-selections > span {
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  margin: 2px 0;
  padding: 0 6px;
}

.es-selections > span:hover {
  background-color: #e6e6e6;
  border-color: #adadad;
}

.es-focus .es-input > input {
  cursor: text;
}

/* Clear */
.es-clear-zone {
  color: #999;
  cursor: pointer;
  display: table-cell;
  position: relative;
  text-align: center;
  vertical-align: middle;
  width: 20px;
}

.es-clear-zone:hover {
  color: #d0021b;
}

.es-clear {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}

/* Options */
.es-options {
  background-color: #fff;
  border: 1px solid #ccc;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-top-color: #e6e6e6;
  box-shadow: 0 1px 0 rgb(0 0 0 / 6%);
  box-sizing: border-box;
  margin-top: -2px;
  max-height: 200px;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 10;
}

.es-option {
  cursor: pointer;
  display: block;
  padding: 0.25rem 1.5rem;
}

.es-option:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.es-options .es-highlight {
  background-color: #f2f9fc;
  color: #333;
}

/* Dropdown */
.es-arrow-zone {
  cursor: pointer;
  display: table-cell;
  position: relative;
  text-align: center;
  vertical-align: middle;
  width: 20px;
}

.es-arrow {
  border-color: #999 transparent transparent;
  border-style: solid;
  border-width: 5px 5px 2.5px;
  display: inline-block;
  height: 0;
  width: 0;
}

.es-open .es-arrow,
.es-arrow-zone:hover > .es-arrow {
  border-top-color: #666;
}

/* Groups */
.es-group {
  font-weight: bold;
  padding: 1rem 0 0 0.5rem;
}

