/* Container */
.quantum-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    /* This clips the blue header corners to the radius */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

    padding: 0;

}

/* Header Section (The Blue Box) */
.disclaimer-popss .modal-title {
    background-color: #2b579a;
    color: #ffffff;
    margin: 0;
    padding: 50px 20px;
    /* Tall padding to match image */
    text-align: center;
    font-size: 35px;
    font-weight: 700;
    position: relative;
    /* Context for the X button */
    font-family: 'Noto Sans KR';
    line-height: 50px;
}

/* The Close Button - Now pinned to top-right of the BLUE area */
.quantum-modal__dialog .quantum-button--icon-only {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.quantum-icon {
    width: 22px;
    height: 22px;
}

/* Body Text */
.disclaimer-popss p {
    padding: 45px 30px;
    text-align: center;
    color: #000;
    line-height: 1.6;
    font-size: 24px;
    margin: 0;
    padding: 85px 85px 35px 85px;
    font-family: 'Noto Sans KR';
    line-height: 35px;
}

/* Buttons Container */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 50px;
    padding: 40px;
}

/* Button Styles */
a.standard-btns.quantum-button--secondary.leaving-site {
    text-decoration: none;
    height: 55px;
    width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 900;
    font-size: 18px;
    background-color: #8c2b53;
    color: white !important;
    border: none;
    font-family: 'Noto Sans KR';
    border: 1px solid transparent;
}

/* Left Button (Purple) */
.quantum-modal__close {
    background-color: #fff;
    color: #234D98 !important;
    border: 1px solid #234D98;
    font-family: 'Noto Sans KR';
    font-weight: 900;
}

/* Right Button (White/Blue Outline) */
.quantum-modal__close-text {
    background-color: white;
    color: #2b579a !important;
    border: 1px solid #2b579a;
}


a.standard-btns.quantum-button--secondary.leaving-site:hover {
    background-color: #fff !important;
    color: #234D98 !important;
    border: 1px solid #234D98;
}

.quantum-modal__close:hover {
    background-color: #912B5D;
    color: #fff !important;
    border: unset;
    border: 1px solid transparent;
}

/* --- RESPONSIVE MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .disclaimer-popss .modal-title {
        font-size: 20px;
        padding: 40px 20px;
        line-height: 28px;
    }

    .disclaimer-popss p {
        font-size: 16px;
        padding: 40px;
        line-height: 30px;
    }

    .modal-actions {
        flex-direction: column;
        /* Stack buttons vertically */
        align-items: center;
        gap: 10px;
    }

    .standard-btns {
        width: 100%;
        /* Full width buttons on mobile */
        max-width: 100%;
        height: 50px;
    }

    a.standard-btns.quantum-button--secondary {
        border-radius: 10px !important;
        width: 100% !important;
    }

    span.wrap-txt {
        white-space: nowrap;
    }
}


@media (max-width: 600px) {


    .disclaimer-popss span.wrap-txt {
        display: block;
    }

}