/* pc */

/* ==================================== 주소검색 ==================================== */
.edk_addr_wrap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 500;
    width: 100%;
    height: 100vh;
    display: none;
}

.edk_addr_wrap.active {
    display: block;
}

.edk_addr_wrap .dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.3;
}

.edk_addr_wrap .edk_popup_box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFF;
    width: 100%;
    max-width: 500px;
}

.edk_addr_wrap .edk_popup_box .edk_popup_addr_head {
    padding: 5px;
    text-align: right;
}

.edk_addr_wrap .edk_popup_box .edk_popup_addr_head>i {
    font-size: 30px;
    color: #888;
    cursor: pointer;
}

.edk_addr_wrap .edk_popup_box #edk_popup_addr {
    width: 100%;
}

.edk_addr_wrap .edk_popup_box #edk_popup_addr>div {
    width: 100% !important;
}

/* ==================================== 주소검색 ==================================== */


/* ==================================== 기본 팝업 ==================================== */
.popup_container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 500;
}

.popup_container.active {
    display: block;
}

.popup_container .dim {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 501;
    background-color: #000;
    opacity: 0.3;
}

.popup_container .popup_center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFF;
    z-index: 502;
    width: calc(100% - 32px);
    max-height: calc(100% - 100px);
    overflow-y: auto;
}

.popup_container .popup_center.popup_size_xs {
    max-width: 343px;
}

.popup_container .popup_center.popup_size_sm {
    max-width: 556px;
}

.popup_container .popup_center.popup_size_md {
    max-width: 748px;
}

.popup_container .popup_center.popup_size_lg {
    max-width: 940px;
}

.popup_container .popup_center.popup_size_xl {
    max-width: 1116px;
}

.popup_container .popup_center .popup_head {
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup_container .popup_center .popup_head.head_border {
    border-bottom: 1px solid #E1E1E1;
    padding: 15px 24px;
}

.popup_container .popup_center .popup_head>h2 {
    font-size: 18px;
    font-weight: 700;
}

.popup_container .popup_center .popup_head .btn_close {
    max-width: 24px;
    cursor: pointer;
    display: flex;
}

.popup_container .popup_center .popup_body {
    padding: 16px;
}

.popup_container .popup_center .popup_head.head_border+.popup_body {
    padding: 32px;
}

/* ==================================== 기본 팝업 ==================================== */


/* ==================================== swal ==================================== */
div:where(.swal2-icon) {
    margin: 25px auto 0;
    font-size: 7px;
}

div:where(.swal2-container) div:where(.swal2-popup).custom_swal_popup {
    max-width: 343px;
    min-height: 182px;
}

div:where(.swal2-container) .swal2-html-container {
    margin: 0;
    overflow: visible;
    padding: 25px 20px;
    font-size: 16px;
    text-align: center;
}

/* 버튼 감싼 클래스 */
.swal2-popup .swal2-actions,
div:where(.swal2-container) div:where(.swal2-actions).edk_custom_action {
    margin: 0;
    width: 100%;
    border-top: 1px solid #E1E1E1;
    border-radius: 0;
    padding: 0;
}

.custom_alert_icon {
    max-width: 20px;
    margin-bottom: 18px;
}

.custom_alert_text {
    font-size: 16px;
    text-align: center;
    margin-bottom: 8px;
}

.custom_alert_text:last-child {
    margin-bottom: 0;
}

.axios_error_swal_popup {
    max-width: 430px !important;
}

.axios_error_swal_popup .swal2-html-container {
    padding: 22px 24px 26px;
}

.axios_error_card {
    text-align: center;
}

.axios_error_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background-color: #fff1f2;
    color: #be123c;
    font-size: 13px;
    font-weight: 800;
}

.axios_error_title {
    display: block;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.35;
}

.axios_error_summary {
    margin: 12px 0 0;
    color: #4b5563;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.axios_error_guide {
    margin: 12px auto 0;
    max-width: 330px;
}

.axios_error_guide p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.axios_error_guide p + p {
    margin-top: 2px;
}

.axios_error_code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #111827;
}

.axios_error_code span {
    flex: 0 0 auto;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.axios_error_code b {
    min-width: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    word-break: break-all;
}

div:where(.swal2-container) button:where(.swal2-styled).custom_alert_btn {
    background-color: transparent;
    color: black;
    width: 50%;
    border-radius: 0;
    border: none;
    margin: 0;
}

.swal2-styled.custom_alert_btn {
    padding: 17px;
    background-color: #fff;
    border-radius: 0;
    color: black;
}

.swal2-styled.custom_alert_btn:hover {
    background-color: transparent;
    border-color: transparent;
}

/* 두개일때 */
div:where(.swal2-container) button:where(.swal2-styled).custom_alert_btn.btn_default {
    border-right: 1px solid #E1E1E1;
}

/* 확인 버튼 하나만 있을때 */
div:where(.swal2-container) button:where(.swal2-styled).custom_alert_btn.btn_only {
    width: 100%;
}

.swal2-popup .swal2-styled.swal2-confirm:focus {
    box-shadow: none !important;
}

/* ==================================== swal ==================================== */




/* ==================================== 관리자 팝업 ==================================== */

.edk-site-popup-layer {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
}

.edk-site-popup-layer.is-empty {
    display: none;
}

.edk-site-popup {
    pointer-events: auto;
    position: fixed;
    width: min(var(--popup-width), calc(100vw - 32px));
    height: min(var(--popup-height), calc(100vh - 48px));
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.edk-site-popup.is-hidden {
    display: none;
}

.edk-site-popup.size-sm {
    --popup-width: 380px;
    --popup-height: 380px;
}

.edk-site-popup.size-md {
    --popup-width: 420px;
    --popup-height: 580px;
}

.edk-site-popup.size-lg {
    --popup-width: 600px;
    --popup-height: 600px;
}

.edk-site-popup-layer.layout-stack .edk-site-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.edk-site-popup-layer.layout-stack .edk-site-popup:nth-child(2) {
    transform: translate(calc(-50% + 22px), calc(-50% + 22px));
}

.edk-site-popup-layer.layout-stack .edk-site-popup:nth-child(3) {
    transform: translate(calc(-50% + 44px), calc(-50% + 44px));
}

.edk-site-popup-layer.layout-stack .edk-site-popup:nth-child(n + 4) {
    transform: translate(calc(-50% + 66px), calc(-50% + 66px));
}

.edk-site-popup-layer.layout-side {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
}

.edk-site-popup-layer.layout-side .edk-site-popup {
    position: relative;
    flex: 0 0 auto;
}

.edk-site-popup-frame {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.edk-site-popup-body {
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
}

.edk-site-popup-body.editor {
    overflow-y: auto;
}

.edk-site-popup-editor {
    padding: 22px;
    color: #1f2937;
    font-size: clamp(0.94rem, 0.85rem + 0.25vw, 1rem);
    line-height: 1.65;
    word-break: break-word;
}

.edk-site-popup-editor img,
.edk-site-popup-editor video,
.edk-site-popup-editor iframe {
    max-width: 100%;
}

.edk-site-popup-body.image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8fafc;
}

.edk-site-popup-body.image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.edk-site-popup-footer {
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 0;
    padding: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
}

.edk-site-popup-footer button {
    flex: 1 1 50%;
    height: 100%;
    min-width: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    font-size: clamp(0.86rem, 0.78rem + 0.22vw, 0.98rem);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edk-site-popup-option {
    background: #f8fafc;
    color: #334155;
}

.edk-site-popup-option:not(.disabled):hover {
    background: #eef4ff;
    color: #1d4ed8;
}

.edk-site-popup-option.disabled {
    color: #94a3b8;
    cursor: default;
}

.edk-site-popup-close {
    background: #111827;
    color: #fff;
}

.edk-site-popup-close:hover {
    background: #020617;
}

@media (max-width: 767px) {
    .edk-site-popup-layer,
    .edk-site-popup-layer.layout-side {
        display: block;
        padding: 0;
    }

    .edk-site-popup,
    .edk-site-popup-layer.layout-side .edk-site-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        width: min(var(--popup-width), calc(100vw - 24px));
        height: min(var(--popup-height), calc(100vh - 36px));
        transform: translate(-50%, -50%);
    }

    .edk-site-popup:nth-child(2) {
        transform: translate(calc(-50% + 12px), calc(-50% + 12px));
    }

    .edk-site-popup:nth-child(n + 3) {
        transform: translate(calc(-50% + 24px), calc(-50% + 24px));
    }
}


.edk_admin_popup {
    border: 1px solid #ccc;
    position: fixed;
    top: 50%;
    /* left: 50%; */
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

.edk_admin_popup.Sm {
    width: 380px;
    aspect-ratio: 1/1;
}

.edk_admin_popup.Md {
    width: 420px;
    aspect-ratio: 1/1.38;
}

.edk_admin_popup.Lg {
    width: 600px;
    aspect-ratio: 1/1;
}

.edk_admin_popup.active {
    display: block;
}

.edk_admin_popup .pop_section,
.edk_admin_popup .pop_img_wrapper {
    width: 100%;
    height: calc(100% - 35px);
}

.edk_admin_popup .pop_section img {
    max-width: 100%;
    object-fit: cover;
}

.edk_admin_popup .pop_img_wrapper>img {
    height: 100%;
    object-fit: cover;
}

.edk_admin_popup .pop_section {
    background-color: white;
    overflow-y: auto;
}

.edk_admin_popup .pop_bottom {
    width: 100%;
    height: 35px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 10px;
    padding: 0 5px;
    border-top: 1px solid #ccc;
    background-color: #fff;
}


.edk_admin_popup .pop_bottom .option_checke_input {
    display: flex;
    align-items: center;
}

.edk_admin_popup .pop_bottom .option_checke_input .edk_WAI.checkbox+label {
    font-size: 14px;
}


.edk_admin_popup .pop_bottom button {
    background-color: transparent;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.edk_admin_popup .edk_edit_admin {
    font-size: 12px;
    line-height: 1.5;
}


/* ==================================== 관리자 팝업 ==================================== */


/* 새 이미지뷰어 */
.popup_container.popup_new_viewer {
    padding: 0px 12px 24px;
}

.popup_container.popup_new_viewer .dim {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.8);
}

.popup_container.popup_new_viewer .popup_center {
    background-color: transparent;
    position: relative;
    top: 0;
    left: 0;
    transform: initial;
    width: 100%;
    height: 100%;
    max-height: initial;
    overflow-y: hidden;
}

.popup_container.popup_new_viewer .popup_center .popup_head {
    padding: 43px 0;
    justify-content: center;
    position: relative;
}

.popup_container.popup_new_viewer .popup_center .popup_head>h2 {
    font-size: 16px;
    color: #fff;
}

.popup_container.popup_new_viewer .popup_center .popup_head .btn_close {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: #fff;
    font-size: 24px;
    font-weight: 500;
}

.popup_container.popup_new_viewer .popup_content {
    height: calc(100% - 66px);
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup_container.popup_new_viewer .popup_content>div {
    display: flex;
    width: 100%;
    height: 100%;
}

.popup_container.popup_new_viewer .popup_content>div img {
    height: 100%;
    object-fit: contain;
    object-position: center;
}


/* tablet */
@media screen and (max-width: 1023px) {}

/* mobile */
@media screen and (max-width: 767px) {
    .popup_container .popup_center .popup_head.head_border+.popup_body {
        padding: 24px;
    }

    .edk_admin_popup {
        transform: translate(0, -55%);
    }

    .edk_admin_popup.Sm {
        width: calc(100% - 48px);
        max-width: 380px;
    }

    .edk_admin_popup.Md {
        width: calc(100% - 32px);
    }

    .edk_admin_popup.Lg {
        width: calc(100% - 16px);
    }
}
