.dds-modal {

  .modal-content {
    border-radius: 0;
    border-color: $dds-color-gray-light;


    .modal-header {
      border-bottom: 0;
      padding: 22px 22px 15px;
      border-radius: 0;

      .modal-title {
        font-size: $dds-header-2-font-size;
        font-weight: 400;
        line-height: $dds-header-2-line-height;
        color: $dds-color-carbon-darkest;
        flex: auto;
      }
      .btn-close {
        color: $dds-color-carbon;
      }
    }

    .modal-body {
      min-height: 70px;
      padding: 15px 25px 22px;
    }

    .modal-footer {
      border-top: 0;
      padding: 20px 22px;
    }

  }

  &.modal-info {
    .modal-content {
      border: 0;
    }
    .modal-header {
      @include modal-header-with-type($dds-color-brand-blue);
    }
    .modal-body {
      padding-left: 62px;
    }
  }

  &.modal-danger {
    .modal-content {
      border: 0;
    }
    .modal-header {
      @include modal-header-with-type($dds-color-danger);
    }
    .modal-body {
      padding-left: 62px;
    }
  }

  &.modal-warning {
    .modal-content {
      border: 0;
    }
    .modal-header {
      @include modal-header-with-type($dds-color-warning);
    }
    .modal-body {
      padding-left: 62px;
    }
  }

  // polyfill
  .btn-close {
    box-sizing: content-box;
    width: 16px;
    height: 16px;
    padding: 4px 4px;
    margin: 0;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/16px auto no-repeat;
    border: 0;
    border-radius: 4px;
    opacity: 0.5;
  }
  .btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
  }
  .btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    opacity: 1;
  }
  .btn-close:disabled, .btn-close.disabled {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    opacity: 0.25;
  }

  .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
  }
}
