/* 모달 */
.modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    bottom: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
}
.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0c0c0c;
    opacity: 0.8;
    z-index: 100;
    transition: all 0.2s;
}

.modal-wrap {
    position: relative;
    width: auto;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 5px; /* border-radius: 10px; */
    z-index: 120;
    box-shadow: 2px 4px 11px rgba(0, 0, 0, 0.2);
}
.modal-con {
    padding: 40px 30px 40px;
}
.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 1.35em;
    cursor: pointer;
    display: none;
    z-index: 102;
}
.modal-body p.md-title {
    font-size: 1.1em;
    font-weight: 600;
}
.modal-body .md-con {
    padding-top: 10px;
}
.modal-body .md-con p {
    font-size: 16px;
    font-weight: 300;
}
.modal-body .md-btn {
    text-align: right;
    padding-top: 50px;
}
.modal-body .md-btn button {
    display: inline-block;
    cursor: pointer;
    margin: 0 5px;
    padding: 0 20px;
    height: 34px;
    border-radius: 3px;
    line-height: 34px;
}
.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}

/* 기본알람창 크기 */
.modal-wrap.modal-xs {
    max-width: 520px;
}
.modal-wrap.modal-sm {
    max-width: 760px;
}
.modal-wrap.modal-md {
    max-width: 1024px;
}
.modal-wrap.modal-lg {
    max-width: 1200px;
}

/* popup_m */
.modal.popup_m {
    z-index: 9999;
    display: none;
}
.modal.popup_m .bg {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.modal.popup_m h4 {
    font-weight: bold;
    font-size: 25px;
    text-align: center;
    margin-bottom: 20px;
}
.modal.popup_m {
    background-color: transparent;
    height: fit-content;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    left: 50%;
}
.modal.popup_m > div {
    display: flex;
}
.modal.popup_m .modal-wrap {
    margin: 0;
    top: 0 !important;
    transform: translateY(0);
    margin-right: 10px;
    padding: 30px;
    background: #ffff;
}

.popup_m .modal-close {
    bottom: 16px;
    top: auto;
    display: flex;
    width: 100%;
    height: 40px;
    bottom: -7px;
    left: 0;
}
.popup_m .modal-close span:last-child p {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.popup_m .modal-close span {
    font-size: 13px;
}
.popup_m .modal-close span:first-child {
    color: #888;
    width: 100%;
    background-color: #bbb;
    height: 100%;
    justify-content: center;
    color: #fff;
}
.popup_m .modal-close > span:last-child {
    width: 150px;
    background-color: #87c256;
    color: #fff;
}

.popup_m .modal-container {
    padding: 0 0 1px 0;
}

.popup_m .tabSet {
    margin-bottom: 21px;
}
.popup_m .tabSet ul.tabs {
    display: flex;
    margin-bottom: -8px;
    margin-top: 0;
}
.popup_m .tabSet ul.tabs li {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}
.popup_m .tabSet ul.tabs li:last-child {
    padding-right: 0;
}
.popup_m .tabSet ul.tabs li a {
    width: 100%;
    display: block;
    color: #888;
    text-align: center;
    background: #fff;
    padding: 10px 0;
    border: 1px solid #bbb;
    font-size: 12px;
}
.popup_m .tabSet ul.tabs li a.on {
    background: #fff;
    border-color: #87c256;
    color: #87c256;
}
.popup_m .panels {
    background: #fff; /* min-height:180px; */
    margin-top: 0;
}
.popup_m .panel {
    overflow: hidden;
    font-size: 14px;
    color: #4d4d4d;
    display: block;
    height: auto;
}
.popup_m .panel i {
    display: block;
    height: 100%;
}
.popup_m .panel i img {
    height: auto;
}

.popup_m ul li + li {
    margin-top: 6px;
}
.popup_m ul li > div {
    display: flex;
    align-items: center;
}
.popup_m ul li p {
    width: 100px;
    font-weight: 500;
    color: #666;
}
.popup_m ul li p span {
    color: #ff5f00;
}
.popup_m ul li .input_con {
    width: calc(100% - 100px);
}
.popup_m ul li .input_con .file-select .icon{
    display: none;
}
.popup_m ul li .input_con input[type=file]{
    display: none;
}
.popup_m ul li .input_con select {
    width: 100%;
    margin-top: 4px;
}
.popup_m ul li .input_con textarea,
.popup_m ul li .input_con select,
.popup_m ul li .input_con input {
    border: 1px solid #ddd;
    padding: 8px;
    width: 180px;
    border-radius: 2px;
    outline: none;
    font-family: inherit;
}
.popup_m ul li .input_con input.w100,
.popup_m ul li .input_con textarea {
    width: 100%;
}
.popup_m ul li .input_con textarea {
    height: 100px;
}
.popup_m .privacy_con {
    padding: 0;
    border: none;
    margin-top: 28px;
}

.popup_m .privacy_con .text_wrap .inner {
    height: 100px;
    padding: 12px;
}
.popup_m .inquiry_btn_wrap p {
    padding: 10px 24px;
}
.popup_m .inquiry_btn_wrap {
    margin-top: 20px;
}
.popup_m .privacy_con h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.pd_modal .modal-con {
    background-color: #fff;
    overflow: hidden;
}
.pd_modal .modal-con p {
    text-align: center;
    font-weight: 600;
    margin-top: 8px;
}
.pd_modal .modal-con .img_wrap {
    overflow: hidden;
    position: relative;
    padding-bottom: 60%;
    width: 100%;
}
.pd_modal .modal-con .img_wrap img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    display: block;
}
/* .pd_modal .swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    color: #222;
} */
/* .pd_modal .swiper-button-next,
.swiper-button-prev {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
} */

.pd_modal .modal-con {
    padding: 32px;
}

.pd_modal .modal-close {
    display: block;
    right: 8px;
    top: 4px;
}

/* ********************************************* *
* 640px
* ********************************************* */
@media screen and (max-width: 641px) {
    .modal.popup_m .modal-wrap .bd {
        padding: 0;
    }
    .popup_m ul li .input_con textarea,
    .popup_m ul li .input_con select,
    .popup_m ul li .input_con input {
        width: 100%;
    }

    .popup_m ul li p {
        width: 80px;
    }
    .popup_m ul li .input_con {
        width: calc(100% - 80px);
        display: flex;
        align-items: center;
    }
    .modal.popup_m .modal-wrap {
        margin: 0;
    }
    .modal.popup_m {
        width: 95%;
    }
    .popup_m ul li .input_con select {
        margin-top: 0;
        margin-left: 4px;
    }
    .popup_m ul li .input_con span {
        margin: 0 4px;
    }

    .modal.popup_m .modal-wrap {
        padding: 18px;
    }
    .modal.popup_m h4 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* ********************************************* *
* 500px
* ********************************************* */
@media screen and (max-width: 500px) {
    .modal.popup_m .modal-wrap .in_con {
        overflow-y: scroll;
        height: 380px;
    }
}
