.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1050;
    width: 560px;
    margin: -250px 0 0 -280px;
    overflow: auto;
    background-color: $white;
    border: 1px solid $mountain_mist;
    border: 1px solid rgba(0, 0, 0, 0.3);
    *border: 1px solid $mountain_mist;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    @include breakpoint($breakpoint-medium) {
        text-align: center;
        padding: 0!important;
    }
    button[type="button"] {
        border: none !important;
    }
    &.fade {
        top: -25%;
        -webkit-transition: opacity 0.3s linear,top 0.3s ease-out;
        -moz-transition: opacity 0.3s linear,top 0.3s ease-out;
        -ms-transition: opacity 0.3s linear,top 0.3s ease-out;
        -o-transition: opacity 0.3s linear,top 0.3s ease-out;
        transition: opacity 0.3s linear,top 0.3s ease-out;
        &.in {
            top: 50%;
        }
    }
}

.modal-header {
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
    .close {
        margin-top: 2px;
    }
}

.modal-body {
    max-height: 400px;
    padding: 15px;
    overflow-y: auto;
    input {
        width: 480px !important;
    }
}

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

.modal-footer {
    padding: 14px 15px 15px;
    margin-bottom: 0;
    text-align: right;
    background-color: $wild_sand;
    border-top: 1px solid $alto;
    -webkit-border-radius: 0 0 6px 6px;
    -moz-border-radius: 0 0 6px 6px;
    border-radius: 0 0 6px 6px;
    *zoom: 1;
    -webkit-box-shadow: inset 0 1px 0 $white;
    -moz-box-shadow: inset 0 1px 0 $white;
    box-shadow: inset 0 1px 0 $white;
    @include breakpoint($breakpoint-medium) {
        text-align: center;
    }
    .btn-primary {
        font-size: 15px !important;
        font-weight: normal !important;
    }
    .btn-default {
        font-size: 15px !important;
        color: $black !important;
    }
    &:before {
        display: table;
        content: "";
    }
    &:after {
        display: table;
        content: "";
        clear: both;
    }
    .btn+.btn {
        margin-bottom: 0;
        margin-left: 5px;
    }
    .btn-group {
        .btn+.btn {
            margin-left: -1px;
        }
    }
}

.modal-open {
    .dropdown-menu {
        z-index: 2050;
    }
    .dropdown.open {
        *z-index: 2050;
    }
    .popover {
        z-index: 2060;
    }
    .tooltip {
        z-index: 2070;
    }
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: $black;
    opacity: 0.8;
    filter: alpha(opacity=80);
}

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

.modal-backdrop.fade.in {
    opacity: 0.8;
    filter: alpha(opacity=80);
}

.fade {
    opacity: 0;
    -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;
}

.fade.in {
    opacity: 1;
}

.hide {
    display:none;
}

.customh3 {
    background-color: $alabaster !important;
    background-position: -64px 0;
    height: 68px;
    line-height: 70px;
    color: $zeus;
    text-transform: uppercase;
    font-size: 19px;
    padding: 0 23px;
    border-radius: 5px;
    border: 1px solid $mercury;
    margin-bottom: 0px;
    margin-top: 20px;
}

.custom-modal-header {
    padding: 10px 10px 10px 15px;
    border-bottom: 1px solid $gallery;
    h3 {
        font-size: 18px;
        margin: 0;
        line-height: 30px;
        padding: 0;
        border: none;
        height: 30px;
        clear: none;
        background-color: transparent !important;
    }
    .close {
        font-size: 21px !important;
        color: $mountain_mist !important;
        padding: 5px 5px 0 0 !important;
        &:hover {
            border: none !important;
            color: $tundora !important;
            box-shadow: none !important;
        }
    }
}
