/*
  Centered scrolling behavior -- mostly taken from the ember-modal-dialog
  centered scrolling example
*/
:root {
  --tp-modal-dialog-overlay-z-index: 2000;
  --tp-modal-dialog-header-font-weight: 300;
  --tp-modal-title-font-size: 18px;
  --tp-modal-title-font-weight: 700;
}

/*
  This is the class that our service:modal-dialog subclass manages on the body
*/
body.tp-modal-open {
  overflow: hidden;
}

/*
  This is required to get the z-indexing to work right with the structure of the
  rest of our app
 */
#modal-overlays {
  position: relative;
  z-index: var(--tp-modal-dialog-overlay-z-index);
}

.ember-modal-wrapper {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: scroll;
}

.ember-modal-overlay {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  height: auto;
  padding: 1em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.tp-modal-dialog {
  width: 600px;
  margin: 30px auto;
}

.tp-modal-content {
  position: relative;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.tp-modal-header {
  padding: 25px 25px 15px 45px;
}

.tp-modal-header:not(.no-title) {
  border-bottom: 1px solid #e5e5e5;
}

.tp-modal-title {
  font-size: var(--tp-modal-title-font-size);
  color: inherit;
  line-height: 1.1;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: var(--tp-modal-title-font-weight);
}

.tp-modal-dialog-close {
  padding: 10px 15px;
  margin-top: 0;
  position: absolute;
  right: 10px;
  top: 6px;
  font-size: 36px;
  line-height: 1;
  font-weight: var(--tp-modal-dialog-header-font-weight);
  text-shadow: 0 1px 0 #fff;
  color: #000;
  transition: opacity .2s ease-in;
  cursor: pointer;
}

.tp-modal-dialog-close:not(:hover) {
  opacity: 0.6;
}

.tp-modal-body {
  padding: 20px 45px;
  min-height: 90px;
}

.tp-modal-footer {
  padding: 20px 45px 35px 45px;
  border-top: 1px solid #e5e5e5;
  text-align: right;
}
