/* =============
   Modals
============= */

.modal {
  .modal-dialog {

    .close {
      top: -18px;
      position: absolute;
      right: -18px;
      height: 36px;
      width: 36px;
      background-color: $dark;
      opacity: 1;
      border: 2px solid $white;
      text-shadow: none;
      color: $white;
      border-radius: 50%;
    }

    .modal-title {
      margin: 0;
    }

    .modal-content {
      -moz-box-shadow: none;
      -webkit-box-shadow: none;
      border-color: #DDDDDD;
      border-radius: 2px;
      box-shadow: none;

      .modal-header {
        border-bottom-width: 2px;
        margin: 0;
      }
      .modal-body {
        padding: 20px;
      }

    }
  }
}

.modal-full {
  width: 98%;
}

.modal-content {
  .nav.nav-tabs + .tab-content {
    margin-bottom: 0;
  }
  .panel-group {
    margin-bottom: 0;
  }
  .panel {
    border-top: none;
  }
}

/* Custom-modal */

.modal-demo {
  background-color: $white;
  width: 600px;
  border-radius: 4px;
  display: none;

  .close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: $light;
  }
}

.custom-modal-title {
  padding: 15px 25px 15px 25px;
  line-height: 22px;
  font-size: 18px;
  background-color: $dark;
  color: $white;
  text-align: left;
  margin: 0;
}

.custom-modal-text {
  padding: 20px;
}

.custombox-modal-wrapper {
  text-align: left;
}

.custombox-modal-flash, .custombox-modal-rotatedown {
  .close {
    top: 20px;
    z-index: 9999;
  }
}
