.modal.show {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    text-align: center;
    vertical-align: middle;
}

.modal-content {
    background-color: #fff;
    max-width: 30%;

    max-height: 100%;
    padding: 0;
    /*margin-top: 15%;*/
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-content > * {
    background-color: #fff;
}

.isMobile .modal-content {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    top: 0;
    left: 0;
    transform: none;
}

.modal-header {
    padding: 2px 16px;
    background-color: #EB0000;
    text-align: left;
}

.modal-close, .type-button {
    cursor: pointer;
}

.modal-close {
    float: right;
    color: white;
    font-size: 28px;
    font-weight: normal;
    margin: 0;
    line-height: 2.25rem;
    display: none;
}

.icon-cancel:before {
    margin-right: 0 !important;
}

.modal-header h3 {
    font-family: Arial,Helvetica,sans-serif;
    color: white;
    font-size: 18px;
    font-size: 1.125rem;
    font-weight: Bold;
    margin: .3em 0;
}

.modal-body {
    text-align: left;
    padding: 20px;
}

.modal-footer {
    color: white;
    text-align: right;
    padding: 0.25em 1.5em;
    padding-bottom: 20px;
    font-size: 14.4px;
    font-size: 0.9rem;
    line-height: 20px;
}

.modal-footer:empty {
    display: none;
}

.modal-close, .type-button {
    cursor: pointer;
}

.modal-footer button {
    background-color: #00a759;
    border: 2px solid #00a759;
    color: white;
    margin-left: 1em;
}

.modal-footer button.cancel {
    background-color: #fff;
    color: #00a759;
}

.isMobile .modal-footer button {
    margin-left: 0;
}

.modal-body input[type=text],
.modal-body input[type=email],
.modal-body select {
    width: 100%;
    min-height: 1.5em;
}

.modal-body select {
    background-color: white;
}

.modal-body input[type=radio],
.modal-body input[type=checkbox]{
    margin-right: 0.5em;
}

.modal-body .checklist li {
    margin: 0.5em 0 0.5em 0;
}

.modal-body .checklist li > * {
    vertical-align: top;
}

.modal-body .checklist label {
    display: inline-block;
    max-width: 90%;
}

.modal-body fieldset {
    padding: 0.35em 0.625em;
    margin-bottom: 1em;
}
.modal-body .list button {
    -webkit-appearance: button;
    cursor: pointer;
    font-size: 14.4px;
    font-size: 0.9rem;
    line-height: 20px;
    border: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    width: auto;
    background-color: #00a759;
    color: #fff;
    margin-right: 0.5em;
}

.modal-body .datalist button {
    padding: 0;
}

#wait {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7) url('../images/wait.gif') no-repeat center center;
    z-index: 300;
}
.content-area .modal-body input[type],
.content-area .modal-body textarea,
.content-area .modal-body select,
.content-area .modal-body .grid {
    margin-bottom: 0.5em;
}