@import '../colors';

.Modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Modal {
  background-color: var(--color-background);
  border-radius: 4px;
  justify-content: space-between;
  animation: zoomIn 0.2s ease-out;
}

@media only screen and (max-width: 767px) {
  .Modal {
    width: 94%;
  }
}

.Modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #e6ebf1;
  overflow: hidden;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
  height: 60px;
}

.Modal-header > h2 {
  font-weight: 500;
  font-size: 17px;
  color: var(--color-text-1);
  margin-top: 0px;
  margin-bottom: 0px;
}

.Modal-header-back {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px 20px;
  cursor: pointer;
  transition: all 0.2s ease-in;
  height: 60px;
  position: absolute;
}

.Modal-header-back:hover {
  opacity: 0.3;
}

.Modal-header-back-arrow {
  background-image: url("/static/ic_arrow_back_white_24px.svg");
  height: 20px;
  width: 20px;
  background-position: 50% 50%;
}

.Modal-header-back-text {
  margin-left: 6px;
  margin-bottom: 0px;
  margin-top: 0px;
  color: inherit;
  font-weight: 400;
  font-size: 16px;
}

@media only screen and (max-width: 767px) {
  .Modal-header-back-text {
    display: none;
  }
}

.Modal-body {
  padding: 15px 20px;
  color: var(--color-text-2);
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(.3, .3, .3);
  }

  50% {
    opacity: 1;
  }
}
