/*================================================
Popup Docs Area CSS
=================================================*/
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
  }
  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
  }	
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-content .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.modal-content .row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}

@media (min-width: 768px) {
  .modal-content .col-md-12 {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (min-width: 992px) {
  .modal-content .col-lg-8 {
    flex: 0 0 auto;
    width: 64%;
  }
  .modal-content .col-lg-4 {
    flex: 0 0 auto;
    width: 36%;
  }
}

.fade {
    transition: opacity .15s linear;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

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

.haine-modal.modal {
    overflow: auto;
}

.haine-modal.modal .modal-dialog {
    max-width: 950px;	
}

.haine-modal .modal-content .modal-header {
    display: block;
    padding: 1rem 1rem 1rem 1rem;
    border-bottom: 0;	
}

.haine-modal.modal .modal-header .close {
    padding: 0.5rem 1rem 0.5rem 1rem;
    background-color: #e51938;
    color: #fff;
    margin: 0px 10px;
    opacity: initial;
    line-height: 1;
    font-size: 16px;
	position: relative;
    bottom: 0px;
	float: none;
}

.haine-modal.modal .modal-header .stop {
    background-color: #222222;
    bottom: 1px;
}

.haine-modal.modal .modal-header .close span {
    font-size: 20px;
    font-weight: 600;
    position: relative;
    bottom: 1px;
    left: 1px;
    font-family: auto;
}

.haine-modal.modal .modal-header .stop span {
    font-size: 15px;
    bottom: 1px;
    font-family: inherit;
}

.haine-modal.modal .modal-header .close:hover {
    opacity: 0.7;
}

.haine-modal .modal-content .buttons button {
	border: none;
	background: transparent;
	padding: 0 10px;
	height: auto;
}

.haine-modal .modal-content .buttons button a {
	border-radius: 0;
	padding: 10px;
	display: inline-block;
	font-size: 16px;
    text-transform: none;
    line-height: 1;
}

.haine-modal .modal-content .buttons button a:hover {
	opacity: 0.7;
	color: #fff !important;
}

.haine-modal .modal-content .buttons {
	margin-top: 10px;
    margin-bottom: 10px;
}

.haine-modal .modal-content .buttons .btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
    box-shadow: none;
}

.haine-modal .modal-content .buttons button a:focus {
    box-shadow: none;
}

.haine-modal .modal-content .row {
	margin: 0;
}

.haine-modal .modal-content .row .col-md-12 {
	padding: 0;
}

/* Max width 767px */
@media only screen and (max-width: 767px) { 
  .haine-modal {
	top: 136px;	
  }
  .haine-modal .modal-content .row .col-lg-4.col-md-12 {
	margin-bottom: 30px;
	text-align: center;	
  }
  .haine-modal.modal .modal-header .close {
	float: none;
  }
  .haine-modal .modal-content .buttons button {
    margin-bottom: 10px;
  }
  .haine-modal .modal-content .buttons .col-lg-8 button:last-child {
    margin-bottom: 0px;
  }	
}

/* Min width 768px to Max width 991px */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .haine-modal.modal .modal-dialog {
    max-width: 700px;
  }
  .haine-modal .modal-content .row .col-lg-4.col-md-12 {
	margin-bottom: 30px;
	text-align: center;
  }
  .haine-modal.modal .modal-header .close {
	float: none;
  }	
}

/* Min width 992px to Max width 1199px */
@media only screen and (min-width: 992px) and (max-width: 1199px) { 
  .haine-modal.modal .modal-dialog {
    max-width: 900px;
  }
  .haine-modal .modal-content .buttons button a {
    font-size: 15px;
  }	
}
