[class*='edbox'] {
  box-sizing: border-box;
}

.edbox {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.edbox:not(.edbox-alert) {
  background: rgba(0, 0, 0, 0.5);
}

.edbox .edbox-close {
  transition: .35s;
  cursor: pointer;
  width: 35px;
  height: 35px;
  background-color: #010039;
  border-radius: 25px;
}

.edbox .edbox-close:hover {
  background-color: #036EAE;
}

.edbox .edbox-close:before {
  display: block;
  font-family: 'grotesk-rounded';
  content: '';
  color: #fff;
  text-align: center;
  width: 35px;
  height: 35px;
  background-image: url(../../img/tw/edbox-close.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.edbox .edbox-load {
  width: 60px;
  height: 60px;
  background: url("../../img/tw/puff.svg") center no-repeat;
  background-size: 60px 60px;
  position: relative;
  top: 48%;
}

.edbox .edbox-body {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: column;
  flex-flow: column;
  position: relative;
  max-height: calc(100% - 110px);
}

.edbox-body {
  margin-top: 60px;
}

.edbox .edbox-body .edbox-close {
  position: absolute;
  top: -17px;
  right: -17px;
  color: #000;
}

.edbox .edbox-body .edbox-header,
.edbox .edbox-body .edbox-footer {
  padding: 15px 40px;
  width: 100%;
  background: #fff;
  color: #010039;
  font-size: 18pt;
  letter-spacing: 2pt;
  font-weight: 800;
}

@media(max-width:568px) {
  .edbox .edbox-body .edbox-footer {
    padding: 10px 20px;
    font-size: 16pt;
    letter-spacing: 1pt;
    font-weight: 600;
  }
}

.edbox .edbox-body .edbox-header {
  padding-right: 40px;
}

.edbox .edbox-body .edbox-header .edbox-close {
  top: 10px;
  right: 10px;
  color: #000;
}

.edbox .edbox-body .edbox-content {
  overflow: auto;
}

.edbox .edbox-body .edbox-content .edbox-target {
  display: block !important;
}

.edbox .edbox-body .edbox-content>img {
  display: block;
}

.edbox.edbox-scroll-y-true .edbox-body, .edbox.edbox-scroll-y-true .edbox-body .edbox-content {
  height: 100%;
}

.edbox.edbox-scroll-y-true .edbox-body>.edbox-close {
  right: -17px;
}

.edbox.edbox-close-false .edbox-close {
  display: none;
}

.edbox.edbox-alert {
  -ms-flex-align: start;
  align-items: flex-start;
  padding-top: 30px;
  font: 16px Arial, sans-serif;
}

.edbox.edbox-alert .edbox-alert-container {
  display: -ms-flexbox;
  display: flex;
  padding: 15px;
  border: 1px solid;
  color: #fff;
}

.edbox.edbox-alert .edbox-alert-container .edbox-close {
  margin-left: 15px;
  color: #fff;
}

.edbox.edbox-alert.edbox-alert-success .edbox-alert-container {
  border-color: #2f8d59;
  background: mediumseagreen;
}

.edbox.edbox-alert.edbox-alert-info .edbox-alert-container {
  border-color: #38678f;
  background: steelblue;
}

.edbox.edbox-alert.edbox-alert-warning .edbox-alert-container {
  border-color: #cc8400;
  background: orange;
}

.edbox.edbox-alert.edbox-alert-danger .edbox-alert-container {
  border-color: #ff3814;
  background: tomato;
}

.edbox .edbox-animate-open,
.edbox .edbox-animate-close {
  animation-duration: .5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.edbox .edbox-animate-close {
  animation-duration: .5s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.edbox .edbox-animate-open {
  animation-name: edbox-animate-open;
}

.edbox .edbox-animate-close {
  animation-name: edbox-animate-close;
}

.edbox-temp {
  display: none;
}

@keyframes edbox-animate-open {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes edbox-animate-close {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}


@media(max-width: 1320px) {
  .edbox.edbox-scroll-y-true .edbox-body>.edbox-close {
    right: 10px;
  }

  .edbox .edbox-body .edbox-close {
    position: absolute;
    top: -17px;
    right: 10px;
    color: #000;
  }
}