
/* 이전에 여기 있던 전역 `* { font-family: "Noto Sans KR" }` 는 제거했다.
   모든 요소를 직접 덮어써서 body 에 지정한 웹폰트가 적용되지 않았다.
   폰트는 css/fonts.css + index.css 의 --font-body / --font-head 로만 관리한다. */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.onlyone-footer {
    background-color: #f8f8f8;
    padding: 20px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center; /* 수평 중앙 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
    font-size: 12px;
    color: #666;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    clear: both;
}

.footer-content {
    width: 1020px;
}



.footer-content a {
    color: #666;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-logo {
    width: auto;
    text-align: right;
}
.footer-logo img{
    max-width: 200px;
    width: 100%;
}

.fixed-widget {
    position: fixed;
    top: 54%; /* 화면 하단에서 20px 위로 고정 */
    right: 5%; /* 화면 우측에서 20px 왼쪽으로 고정 */
    z-index: 998; /* 다른 요소보다 위에 나타나도록 설정 */
}

.fixed-widget img {
    height: auto;
    cursor: pointer;
}

/* 모달 기본 스타일 */
/* ============================================================
   푸터 약관 모달
   ------------------------------------------------------------
   색·모서리·그림자는 index.css 의 디자인 토큰을 그대로 쓴다.
   (예전 분홍 버튼 등 이전 테마 잔재를 걷어냈다)
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(10, 22, 40, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1150;
}

.main-footer-modal {
    display: none;
    position: fixed;
    z-index: 1160;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 680px;
}

.modal-container {
    background-color: #fff;
    border-radius: var(--r-lg, 18px);
    box-shadow: 0 30px 70px rgba(10, 22, 40, .34);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
}

/* 모달 헤더 */
.modal-header {
    flex: 0 0 auto;
    padding: 18px 22px;
    background-color: #fff;
    border-bottom: 1px solid var(--line, #E4E9F0);
}

.modal-title-container {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.modal-title-container h2 {
    margin: 0;
    font-family: var(--font-head, inherit);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink, #14181F);
}

/* 모달 본문 */
.modal-content-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 22px;
    background-color: #fff;
}

.modal-body-box {
    background-color: var(--bg-soft, #F6F8FB);
    border: 1px solid var(--line, #E4E9F0);
    border-radius: var(--r-md, 12px);
    padding: 18px 20px;
    max-height: min(58vh, 460px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-body-content {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--ink-2, #48546A);
    word-break: keep-all;
}

.modal-body-content div {
    font-size: 13.5px;
    color: var(--ink-2, #48546A);
    margin: 0;
    max-height: none;
}

.modal-body-content h2,
.modal-body-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink, #14181F);
    margin: 18px 0 6px;
}

.modal-body-content p,
.modal-body-content ul {
    margin: 0;
}

.modal-body-content table {
    font-size: 12.5px;
    width: 100%;
    border-collapse: collapse;
    box-sizing: border-box;
    margin: 10px 0;
}

.modal-body-content table th,
.modal-body-content table td {
    padding: 8px;
    border: 1px solid var(--line, #E4E9F0);
    text-align: left;
    box-sizing: border-box;
}

.modal-body-content table th {
    background: #fff;
    font-weight: 700;
    color: var(--ink-2, #48546A);
}

.modal-body-content ul {
    list-style-type: decimal-inside;
    display: inline-block;
}

/* 모달 하단 */
.modal-footer {
    flex: 0 0 auto;
    padding: 14px 22px 18px;
    background-color: #fff;
    text-align: center;
    border-top: 1px solid var(--line, #E4E9F0);
}

#modal-confirm-btn {
    width: 100%;
    height: 48px;
    background-color: var(--brand, #0068B6);
    color: #fff;
    border: none;
    border-radius: var(--r-md, 12px);
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    transition: background-color .15s ease;
}

#modal-confirm-btn:hover {
    background-color: var(--brand-dark, #00518F);
}

/* 바디 스크롤 방지. 스크롤바가 사라지며 생기는 가로 밀림은
   footer.js 가 padding-right 로 보정한다. */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 460px) {
    .epione-footer{
        flex-direction: column;
        padding : 5px;
        align-items: start;
        display: block;
        padding-bottom: 80px;
    }
    .footer-content{
        width: unset;
        font-size: 11px;
        justify-content: start;
    }
    .footer-content p span{
        margin-right:5px;
    }
    .footer-content p a{
        margin-right:5px;
    }
    .footer-logo{
        text-align:right;
    }
    .footer-logo img{
        max-width: 130px;
    }
    .modal-body-content,
    .modal-body-content div {
        font-size: 12.5px;
    }
    #modal-confirm-btn {
        height: 46px;
        font-size: 15px;
    }
    
    .fixed-widget img{
        width: 60px;
    }
    .fixed-widget{
        top: 29%;
        right: 2%;

    }
}
