.nd-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.nd-modal__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
  max-width: 800px;
  padding: $default-spacing;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nd-modal__content {
  position: relative;
  background: $white;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  padding: $default-spacing;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nd-modal__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--nd-color-primary);
  opacity: 0.5;

  &:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(0,0,0,0), rgba(0, 0, 0, 1));
  }
}

.nd-modal__title-bar {
  display: flex;
  font-size: 1.25rem;
  align-items: center;
  background: var(--nd-color-primary);
  color: white;
  padding: ($default-spacing * 1.5) $default-spacing;
}

.nd-modal__title {
  flex: 1;
}

.nd-modal__close {
  cursor: pointer;
  font-size: 0.8675rem;
  padding-right: $default-spacing;
}

.nd-modal__body {
  font-size: 0.75rem;
  line-height: 1.25rem;
  overflow: scroll;
  justify-self: stretch;
  padding-bottom: $default-spacing;
}

.nd-modal__actions {
  padding-top: $default-spacing;
  border-top: 1px solid var(--nd-color-border);
  display: flex;
  justify-content: flex-end;
  flex: 1 0 35px;
}

