$ws-modal-container-z-index: 5000 !default;

ws-modal {
  display: inline-block;
}

.ws-modal-container {
  background-color: rgba(249, 248, 247, 0.85);
  bottom: 0;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: 0.3s ease-out opacity;
  z-index: $ws-modal-container-z-index;

  &.ng-enter {
    opacity: 0;

    &.ng-enter-active {
      opacity: 1;
    }
  }
}

.ws-modal {
  background-color: $color-white;
  border-radius: 8px;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
  height: auto;
  left: 50%;
  max-width: 370px;
  min-width: 370px;
  padding: 40px 40px 23px;
  position: fixed;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 50%;
  z-index: $ws-modal-container-z-index + 1;

  .ws-modal-body-container {
    font-size: 17px;
    line-height: 1.5;
  }

  .ws-modal-checkbox-container {
    align-items: center;
    display: flex;
    font-size: 14px;

    .checkbox-fancy {
      margin-right: 15px;
    }

    .checkbox-label {
      flex: 1;
    }
  }

  .ws-modal-action-container,
  .ws-modal-progress-container {
    margin-bottom: 16px;
    margin-top: 16px;
    text-align: center;

    .button {
      width: 100%;
    }
  }

  .ws-modal-dismiss-container {
    text-align: center;

    a {
      color: #aaa;
      cursor: pointer;
      font-size: 12px;
      text-decoration: none;
    }
  }
}
