/* =============
   Modals
============= */
.modal .modal-dialog .close {
  top: 0;
  position: absolute;
  right: 0;
  height: 36px;
  width: 36px;
  background-color: #313a46;
  opacity: 1;
  border: 2px solid #ffffff;
  text-shadow: none;
  color: #ffffff;
  border-radius: 50%;
  padding: 0;
}

.modal .modal-dialog .modal-title {
  margin: 0;
}

.modal .modal-dialog .modal-content {
  border: none;
  box-shadow: none;
}

.modal .modal-dialog .modal-content .modal-header {
  border-bottom-width: 2px;
  margin: 0;
}

.modal .modal-dialog .modal-content .modal-body {
  padding: 20px;
}

.modal-backdrop {
  background-color: #313a46;
}

.modal-backdrop.show {
  opacity: .6;
}

.modal-full {
  width: 98%;
}

.modal-content .nav.nav-tabs + .tab-content {
  margin-bottom: 0;
}

.modal-content .panel-group {
  margin-bottom: 0;
}

.modal-content .panel {
  border-top: none;
}

/* Custom-modal */
.custombox-open body {
  padding-right: 0 !important;
}

.modal-demo {
  background-color: #ffffff;
  width: 600px !important;
  border-radius: 4px;
  display: none;
}

.modal-demo .close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #e3eaef;
}

@media (max-width: 768px) {
  .modal-demo {
    width: 100% !important;
  }
}

.custom-modal-title {
  padding: 15px 25px 15px 25px;
  line-height: 22px;
  font-size: 18px;
  background-color: #313a46;
  color: #ffffff;
  text-align: left;
  margin: 0;
}

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

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

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