.dp-modal__overlay {
  background-color: rgba($dp-greyscale-850, 0.5);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: $dp-zindex-overlay;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dp-modal {
  background-color: $dp-greyscale-00;
  border: 1px solid $dp-sonic-secondary;
  border-radius: $rad-size-m;
  z-index: $dp-zindex-middle;
  box-shadow: 0 3px 10px $dp-greyscale-850;
  max-width: 720px;
  min-width: 300px;
  width: 720px;
  position: relative;
  &, * {
    box-sizing: border-box;
  }
}
.dp-modal__title {
  background-color: $dp-sonic-primary;
  font-family: $primary-font;
  font-size: $font-size-l;
  font-weight: $pf-semi-bold;
  color: $dp-greyscale-00;
  height: 40px;
  padding-left: 12px;
  padding-right: 52px;
  line-height: 40px;
  position: relative;
  .dp-modal__close {
    width: 40px;
    border-left: 1px solid $dp-morning-sky;
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
    color: transparent;
    cursor: pointer;
    user-select: none;
  }
  .dp-modal__close:before, .dp-modal__close:after {
    position: absolute;
    left: 19px;
    top: 12px;
    content: ' ';
    height: 16px;
    width: 2px;
    background-color: #FFF;
  }
  .dp-modal__close:before {
    transform: rotate(45deg);
  }
  .dp-modal__close:after {
    transform: rotate(-45deg);
  }
  .close-cross {
    color: transparent;
    position: absolute;
    right: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
    opacity: 1;
    background-color: $dp-greyscale-800;
    border-radius: 50%;
    padding: 5px
  }
  .close-cross:hover {
    opacity: 1;
  }
}
.dp-modal__body {
  padding: 12px 12px 72px 12px;
}
.dp-modal__buttons {
  height: 60px;
  padding: 12px;
  position: absolute;
  width: 100%;
  bottom: 0;
  border-top: 1px solid $dp-greyscale-350;
  .dp-button {
    margin-right: 12px;
    &.right {
      float: right;
    }
  }
  .dp-button:not(.right) + .dp-button.right {
    margin-right: 0;
  }
}
