.modal-open {
    z-index: 2050;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
    pointer-events: none;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 650px;
    margin: 0 auto;
    pointer-events: none;
}
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50%);
}
.modal.fade.in .modal-dialog {
    transform: translate(0, 0);
}

.modal.fade.in {
    top: 0 !important;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 40px;
    -webkit-box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.06), 0 1px 4px 0 rgba(0, 0, 0, 0.06);
    -moz-box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.06), 0 1px 4px 0 rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.06), 0 1px 4px 0 rgba(0, 0, 0, 0.06);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    outline: 0;
}

.modal label {
    display: inline;
}

.modal input {
    border-radius: 0;
    box-shadow: none;
    color: #000000;
    transition-duration: 0s, 0s;
    vertical-align: initial;
}

.modal,
.modal input,
.modal button {
    font-size: 13px;
}

.modal .modal-header {
    border: none;
}

.modal .modal-header button.close {
    background-color: #ffffff;
    border: none;
    margin: 0;
    text-shadow: none;
}

.modal .modal-footer button {
    height: 40px;
    min-width: 96px;
    font-size: 16px;
    padding: 8px 24px;
    line-height: 24px;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    border-radius: 4px;
    vertical-align: initial;
}

.modal a {
    text-decoration: none;
}

.modal-body {
    overflow-y: auto;
    max-height: 400px;
}

.modal .modal-body p {
    font-size: 14px;
    line-height: normal;
}

.modal-form {
    margin-bottom: 0;
}

.modal-footer {
    margin-bottom: 0;
    text-align: right;
    -webkit-border-radius: 0 0 6px 6px;
    -moz-border-radius: 0 0 6px 6px;
    border-radius: 0 0 6px 6px;
    -webkit-box-shadow: inset 0 1px 0 #ffffff;
    -moz-box-shadow: inset 0 1px 0 #ffffff;
    box-shadow: inset 0 1px 0 #ffffff;
    *zoom: 1;
}

.fade {
    -webkit-transition: opacity 0.15s linear;
    -moz-transition: opacity 0.15s linear;
    -ms-transition: opacity 0.15s linear;
    -o-transition: opacity 0.15s linear;
    transition: opacity 0.15s linear;
    opacity: 0;
}

.fade.in {
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000000;
}

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

.modal-backdrop,
.modal-backdrop.fade.in {
    opacity: 0.4;
    filter: alpha(opacity=40);
}

.modal .close {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0;
    font-size: 38px;
    font-weight: 300;
    line-height: 16px;
    color: #69717a;
    cursor: pointer;
}

.modal .alert {
    padding: 8px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 18px;
    text-shadow: 0 1px 0 rgba(255,  255,  255,  0.5);
    background-color: #fcf8e3;
    border: 1px solid #fbeed5;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    color: #c09853;
}

.modal .alert-heading {
    color: inherit;
}

.modal .alert .close {
    position: relative;
    top: -2px;
    right: -21px;
    line-height: 18px;
}

.modal .alert-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #468847;
}

.modal .alert-error {
    display: none;
    background-color: #f2dede;
    border-color: #eed3d7;
    color: #b94a48;
}

.modal .alert-info {
    background-color: #d9edf7;
    border-color: #bce8f1;
    color: #3a87ad;
}

.modal .alert-block {
    padding-top: 14px;
    padding-bottom: 14px;
}

.modal .alert-block>p,
.modal .alert-block>ul {
    margin-bottom: 0;
}

.modal .alert-block p+p {
    margin-top: 5px;
}