/*POPUP v2.0 스타일*/
.size-50 {
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
}

button.quaternary,
.ct_custom.btn.quaternary,
button.text-btn, 
.ct_custom.btn.text-btn{

    background: transparent;
    border-color: transparent;
    color: #8D94A0;
}

button.quaternary:hover,
.ct_custom.btn.quaternary:hover,
button.quaternary.disabled,
.ct_custom.btn.quaternary.disabled {
    opacity: 1;
    color: #B1B8C0;
    background: #E5E8EB;
}

button.text-btn:hover,
.ct_custom.btn.text-btn:hover {
    background: #F2F4F6;
    color: #353C49;
}

button.primary,
.ct_custom.btn.primary {
    background: #505866;
    color: #fff;
}

button.primary:hover,
.ct_custom.btn.primary:hover {
    background: #6D7582;
}

button.primary.disabled,
.ct_custom.btn.primary.disabled {
    opacity: 1;
    color: #B1B8C0;
    background: #E5E8EB;
}

.ct_custom.popup {
    z-index: 3;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*팝업 플러그인 화 끝나면 꼭 opacity 0으로!!*/
    opacity: 1;
    transition: opacity .4s;

    > div {
        width: 400px;
        left: calc(50% - 200px);
        position: absolute;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0px 4px 7px -1px rgba(17, 17, 17, 0.10), 0px 2px 4px -2px rgba(17, 17, 17, 0.05);
        border: 1px solid #E5E8EB;
    }

    > div.wide {
        border-radius: 4px;

        .popup-header p.icon.close-btn {
            font-size: 24px;
        }

        div.popup-footer {
            padding: 16px 24px;
        }
    }

    &::before {
        content: "";
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        background: #F2F4F6;
        opacity: 0.5;
        backdrop-filter: blur(3px);
    }

    .popup-header {
        padding: 16px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 72px;
        border-bottom: 1px solid #E5E8EB;

        h3 {
            color: #505866;
            font-size: 17px;
            font-weight: 600;
            letter-spacing: 0;
        }

        p.icon {
            font-size: 20px;
            color: #6D7582;
            cursor: pointer;
        }
    }

    .popup-body {
        padding: 12px 24px;
        max-height: 400px;
        height: 100%;
        overflow-y: auto;
        color: #505866;
        font-size: 15px;
        font-weight: 400;
        line-height: 150%;
        word-break: break-all;
        letter-spacing: 0;

        .textOnly {
            padding: 12px 0;
        }

        h4 {
            color: #505866;
            font-size: 17px;
            font-weight: 600;
            line-height: 30px;
        }

        .light {
            font-size: 13px;
        }

        > .forms{
            padding-top: 10px;
        }
    }

    div.popup-footer {
        padding: 16px 24px 28px 24px;
        display: flex;
        gap: 16px;

        > button {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .al-left {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
        }

        .al-right {
            display: flex;
            flex-direction: row;
            justify-content: flex-end;
        }
    }

    &.right {
        > div {
            width: 546px;
            height: calc(100% + 2px);
            left: unset;
            top: -1px;
            right: 0;
            /*transform: translateX( 273px );*/
            border-radius: 0;
            box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08);
            display: flex;
            flex-direction: column;
            transition: transform .3s;
        }

        .popup-header {
            padding: 20px 16px;
            border-bottom: 1px solid #E5E8EB;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 61px;

            h2, h3 {
                color: #353C49;
                font-size: 18px;
                font-style: normal;
                font-weight: 600;
            }

            .action {
                .close-btn {
                    width: 34px;
                    height: 34px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }
        }

        .popup-body {
            flex: 1;
            padding: 20px 20px;
            gap: 16px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            max-height: unset;
        }

        .popup-footer {
            padding: 12px 16px;
            height: 64px;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            border-top: 1px solid #E5E8EB;
            gap: 12px;

            button {
                flex: unset;
            }
        }
    }

    &.no-backdrop {
        pointer-events: none;

        > .popup-container {
            pointer-events: all;
        }

        &::before {
            display: none;
        }

    }

    div.form {
        padding: 12px 0;
        display: flex;
        flex-direction: column;
        gap: 16px;

        .form-item {
            padding: 0 12px;
            display: grid;
            grid-template-columns: 1fr 280px;

            p.label {
                color: #6D7582;
                font-size: 13px;
                font-weight: 300;
                height: 36px;
                display: flex;
                align-items: center;
            }

            input {
                height: 36px;
            }

            > div:not(.ct_custom) {
                width: 100%;
                gap: 8px;
                display: flex;
                flex-direction: column;
                justify-content: center;

                > * {
                    height: 36px;
                    display: flex;
                    align-items: center;
                }

                p {
                    color: #353C49;
                    font-size: 13px;
                    font-weight: 400;
                }
            }

            .ct_custom.select {
                width: 100%;

                label {
                    width: 100%;
                    height: 100%;
                }

                &.disabled {
                    p {
                        color: #8D94A0
                    }
                }
            }
        }
    }

}

#notice-popup{
    .popup-body{
        padding: 24px;
    }
    
    p:first-child{
      font-size: 16px;
      font-weight: 500;
    }
    p{
        line-height: 160%;
    }

    .popup-footer{
        flex-direction: column;
        border-top: 1px solid #E5E8EB;
        gap: 8px;
    }
    .popup-footer > div{
        display: flex;
        gap: 16px;
    }

    .popup-footer label{
        font-size: 14px;
        color: #505866;
    }

    .popup-footer button{
        flex: 1;
    }
}