/**
 * NGEL Modal styles
 * @author hsjeon (hsjeon@nglp.kr)
 * @since 2019.04.12.
 * COPYRIGHT 2019 NGL CO., INC ALL RIGHTS RESERVED.
 */

.modal-template {
    display: none;
}

.modal-backdrop {
    display: none;
    width: 100%;
    height: 100%;
    margin: auto;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.active {
    display: block;
}

.modal {
    display: none;
    width: 98%;
    max-width: 30rem;
    height: 98%;
    max-height: 22.5rem;
    margin: auto;
    -webkit-border-radius: 0.25rem;
    -moz-border-radius: 0.25rem;
    border-radius: 0.25rem;
    padding: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2010;
    background-color: #ffffff;
    overflow: auto;
    -webkit-box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    -webkit-transition: max-width 0.2s, max-height 0.2s;
    -moz-transition: max-width 0.2s, max-height 0.2s;
    -ms-transition: max-width 0.2s, max-height 0.2s;
    -o-transition: max-width 0.2s, max-height 0.2s;
    transition: max-width 0.2s, max-height 0.2s;
}

.modal.active {
    display: block;
}

.modal.modal-width-sm {
    max-width: 20rem !important;
}

.modal.modal-height-sm {
    max-height: 15rem !important;
}

.modal.modal-width-md {
    max-width: 30rem !important;
}

.modal.modal-height-md {
    max-height: 22.5rem !important;
}

.modal.modal-width-lg {
    max-width: 50rem !important;
}

.modal.modal-height-lg {
    max-height: 37.5rem !important;
}

.modal.modal-width-xl,
.modal.modal-width-full {
    max-width: 98% !important;
}

.modal.modal-height-xl,
.modal.modal-height-full {
    max-height: 98% !important;
}

.modal .modal-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.modal .modal-container .modal-header {
    display: inline-table;
    table-layout: fixed;
    width: 100%;
    border-bottom: 1px solid #d2d2d2;
    position: relative;
    font-size: 0;
}

.modal .modal-container .modal-header .modal-title {
    display: table-cell;
    width: calc(100% - 3rem);
    padding: 1rem 4%;
    font-weight: bold;
    font-size: 1rem;
}

.modal .modal-container .modal-header .modal-close {
    width: 3rem;
    height: 3rem;
    margin: auto;
    border: 0;
    padding: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    line-height: 100%;
    font-size: 1.5rem;
    text-align: center;
    vertical-align: middle;
    background-color: transparent;
    cursor: pointer;
    -webkit-transition: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    -ms-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    transition: opacity 0.2s;
    opacity: 0.4;
}

.modal .modal-container .modal-header .modal-close:hover,
.modal .modal-container .modal-header .modal-close:focus,
.modal .modal-container .modal-header .modal-close:active {
    opacity: 1;
}

.modal .modal-container .modal-body {
    height: calc(100% - 6rem);
    /*padding: 1rem 4%;*/
    padding: 0;
    overflow: auto;
}

.modal .modal-container .modal-footer {
    width: 100%;
    height: 3rem;
    margin: auto;
    border-top: 1px solid #d2d2d2;
    padding: 0.5rem 4%;
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
}

.modal .modal-container .modal-footer:after {
    content: '';
    display: table;
    clear: both;
}

.modal .modal-container .modal-footer .button {
    height: 2rem;
    margin-left: 0.5rem;
    padding: 0.25rem 1rem;
    float: right;
}