@charset "utf-8";

/* 공통 헤더/메뉴 전용. 기존 #header, #nav, .btn_nav와 충돌하지 않음 */
.eom-shared-header,
.eom-shared-overlay {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.eom-shared-header *,
.eom-shared-overlay * { box-sizing: border-box; }

.eom-shared-header {
    position: sticky;
    top: 0;
    z-index: 290;
    width: 100%;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid #e8edf5;
}
.eom-shared-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    height: 70px;
    padding: 0 24px;
    margin: 0 auto;
}
.eom-shared-logo { display: block; flex: 0 0 auto; }
.eom-shared-logo img { display: block; width: 162px; height: auto; max-width: 100%; }
.eom-shared-desktop-nav { display: flex; align-items: center; gap: clamp(13px, 1.7vw, 28px); }
.eom-shared-desktop-nav a {
    color: #21365c; font-size: 13px; font-weight: 700;
    white-space: nowrap; text-decoration: none;
}
.eom-shared-desktop-nav a:hover { color: #1161eb; }
.eom-shared-header-actions { display: flex; align-items: center; gap: 12px; }
.eom-shared-header-actions > a {
    font-size: 13px; font-weight: 700; white-space: nowrap;
    color: #21365c; text-decoration: none;
}
.eom-shared-header-actions .eom-shared-pc-register {
    padding: 10px 16px; border-radius: 6px;
    background: #1161eb; color: #fff;
}
.eom-shared-menu-toggle,
.eom-shared-mobile-account,
.eom-shared-overlay { display: none; }
.eom-shared-overlay[hidden] { display: none !important; }
body.eom-shared-menu-open { overflow: hidden; }

/* 모바일 전체 메뉴 */
@media (max-width: 899px) {
    .eom-shared-header-inner {
        position: relative;
        justify-content: center;
        height: 60px;
        padding: 0 15px;
    }
    .eom-shared-logo img { width: 162px; }
    .eom-shared-desktop-nav,
    .eom-shared-pc-account,
    .eom-shared-pc-logout,
    .eom-shared-pc-register { display: none !important; }
    .eom-shared-menu-toggle {
        position: absolute;
        display: block;
        top: 8px; left: 10px;
        width: 44px; height: 44px;
        padding: 0; border: 0; background: none;
        cursor: pointer;
    }
    .eom-shared-burger,
    .eom-shared-burger::before,
    .eom-shared-burger::after {
        display: block;
        position: absolute;
        width: 24px; height: 2px;
        border-radius: 2px;
        background: #102b68;
    }
    .eom-shared-burger { top: 21px; left: 10px; }
    .eom-shared-burger::before,
    .eom-shared-burger::after { content: ""; left: 0; }
    .eom-shared-burger::before { top: -7px; }
    .eom-shared-burger::after { top: 7px; }
    .eom-shared-header-actions {
        position: absolute;
        right: 12px; top: 8px;
        height: 44px;
    }
    .eom-shared-mobile-account {
        display: flex;
        width: 44px; height: 44px;
        align-items: center;
        justify-content: center;
    }
    .eom-shared-mobile-account svg,
    .eom-shared-nav-account svg {
        display: block; width: 27px; height: 27px;
        fill: none; stroke: #354e78; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round;
    }

    .eom-shared-overlay:not([hidden]) {
        display: block;
        position: fixed;
        z-index: 310;
        inset: 0;
        width: 100%;
        height: 100vh !important;
        height: 100dvh !important;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background: #fff;
    }
    .eom-shared-overlay-inner {
        position: relative;
        width: 100%;
        min-height: 100%;
        background: #fff;
    }
    .eom-shared-nav-head {
        position: sticky;
        z-index: 2;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
        border-bottom: 1px solid #e8edf5;
        background: #fff;
    }
    .eom-shared-nav-logo img { display: block; width: 162px; height: auto; }
    .eom-shared-nav-account { position: absolute; top: 16px; right: 20px; }
    .eom-shared-close {
        display: block;
        position: fixed;
        z-index: 5;
        top: 8px; left: 10px;
        width: 44px; height: 44px;
        padding: 0; border: 0;
        background: none; cursor: pointer;
    }
    .eom-shared-close::before,
    .eom-shared-close::after {
        content: ""; position: absolute;
        left: 8px; top: 21px;
        width: 28px; height: 2px;
        border-radius: 2px; background: #102b68;
    }
    .eom-shared-close::before { transform: rotate(45deg); }
    .eom-shared-close::after { transform: rotate(-45deg); }
    .eom-shared-icon-sprite {
        position: absolute; width: 0; height: 0; overflow: hidden;
    }
    .eom-shared-mobile-menu {
        display: block;
        padding: 23px 20px calc(50px + env(safe-area-inset-bottom));
        color: #253a60;
    }
    .eom-shared-mobile-menu h2 {
        margin: 0 0 18px;
        color: #102b68;
        font-size: 20px; font-weight: 850;
    }
    .eom-shared-welcome {
        padding: 20px 17px;
        border-radius: 12px;
        background: #f3f8ff;
    }
    .eom-shared-welcome .eom-member-summary {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .eom-shared-welcome strong {
        display: block; color: #102b68;
        font-size: 16px; line-height: 1.5;
    }
    .eom-shared-welcome p {
        margin: 7px 0 16px;
        color: #60718f;
        font-size: 13px; line-height: 1.5;
        overflow-wrap: anywhere;
    }
    .eom-shared-welcome-actions { display: flex; gap: 9px; }
    .eom-shared-welcome-actions a {
        display: flex; flex: 1;
        align-items: center; justify-content: center;
        min-height: 40px; padding: 6px;
        border: 1px solid #cbdaf3;
        border-radius: 8px;
        background: #fff;
        color: #102b68;
        font-size: 13px; font-weight: 700;
        text-decoration: none;
    }
    .eom-shared-welcome-actions a:last-child {
        border-color: #1161eb;
        background: #1161eb; color: #fff;
    }
    .eom-shared-menu-group { margin-top: 21px; }
    .eom-shared-menu-group h3 {
        margin: 0 0 5px;
        color: #1161eb;
        font-size: 12px; font-weight: 850;
    }
    .eom-shared-menu-group > a {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 46px;
        padding: 10px 3px;
        border-bottom: 1px solid #edf1f6;
        color: #253a60;
        font-size: 14px; font-weight: 650; line-height: 1.5;
        text-decoration: none;
    }
    .eom-shared-menu-symbol {
        flex: 0 0 19px;
        width: 19px; height: 19px;
        fill: none; stroke: #60718f;
        stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    }
    .eom-shared-menu-group > a > span { flex: 1; min-width: 0; }
    .eom-shared-menu-group > a > b {
        margin-left: auto;
        color: #94a3b8; font-size: 23px; font-weight: 400;
    }
}

/* 데스크톱에서는 모바일 메뉴를 표시하지 않음 */
@media (min-width: 900px) {
    .eom-shared-overlay { display: none !important; }
}

/* 모바일 헤더 로그인 상태 표시 */
.eom-shared-mobile-account.is-logged-in {
    position: relative;
}

.eom-shared-mobile-account.is-logged-in::after {
    content: '';
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 11px;
    height: 11px;
    box-sizing: border-box;
    background: #1764ef;
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: none;
}

/* 로그인 회원의 '이어하기' 버튼과 목록. 기존 헤더 메뉴와 독립적으로 동작. */
.eom-continue-toggle {
    position: relative; display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 7px; border: 0; background: none;
    color: #253a60; font: inherit; font-size: 12px; font-weight: 750;
    white-space: nowrap; cursor: pointer;
}
.eom-continue-toggle svg {
    width: 21px; height: 21px; flex: none; fill: none;
    stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round;
}
.eom-continue-badge {
    position: absolute; top: -4px; left: 19px; min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 8px; background: #1161eb; color: #fff;
    font-size: 10px; line-height: 16px; text-align: center;
}
.eom-continue-badge[hidden], .eom-continue-overlay[hidden], .eom-continue-more[hidden] { display: none !important; }
.eom-continue-overlay { position: fixed; z-index: 400; inset: 0; display: grid; place-items: center; padding: 16px; }
.eom-continue-shade { position: absolute; inset: 0; background: rgba(8,22,47,.52); }
.eom-continue-panel {
    position: relative; width: min(100%, 500px); max-height: min(700px, 90dvh); overflow: auto;
    border-radius: 15px; background: #fff; box-shadow: 0 16px 50px rgba(0,0,0,.22);
    color: #253a60;
}
.eom-continue-head { display: flex; align-items: flex-start; gap: 15px; justify-content: space-between; padding: 22px 22px 15px; border-bottom: 1px solid #edf1f6; }
.eom-continue-head h2 { margin: 0; font-size: 19px; font-weight: 850; color: #102b68; }
.eom-continue-head p { margin: 7px 0 0; color: #63718a; font-size: 12px; line-height: 1.55; }
.eom-continue-close { border: 0; background: none; color: #536780; font-size: 27px; cursor: pointer; line-height: 1; }
.eom-continue-list { padding: 8px 16px 16px; }
.eom-continue-message { padding: 30px 8px; margin: 0; text-align: center; color: #667990; font-size: 13px; }
.eom-continue-item { display: flex; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid #edf1f6; }
.eom-continue-item:last-child { border-bottom: 0; }
.eom-continue-thumb { flex: 0 0 82px; width: 82px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px; background: #f0f4fb; }
.eom-continue-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.eom-continue-item-text { flex: 1; min-width: 0; }
.eom-continue-item-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; margin-bottom: 6px; }
.eom-continue-recipient { display: block; min-width: 0; font-size: 13px; font-weight: 800; color: #172f56; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eom-continue-status { display: inline-flex; flex: 0 0 auto; align-items: center; border-radius: 5px; padding: 3px 7px; font-size: 10px; font-weight: 850; line-height: 1.4; }
.eom-continue-status.is-payment { background: #e8f0ff; color: #0750cd; }
.eom-continue-status.is-writing { background: #eef2f6; color: #526983; }
.eom-continue-excerpt { margin: 0 0 7px; font-size: 12px; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #53657f; }
.eom-continue-meta { font-size: 11px; color: #73849a; }
.eom-continue-action { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 8px 10px; border-radius: 7px; text-decoration: none; font-size: 11px; font-weight: 800; white-space: nowrap; }
.eom-continue-action.is-writing { background: #fff; color: #355781; border: 1px solid #cbd9eb; }
.eom-continue-action.is-writing:hover { background: #f1f6ff; color: #244d84; }
.eom-continue-action.is-payment { background: #1161eb; color: #fff; border: 1px solid #1161eb; box-shadow: 0 3px 8px rgba(17,97,235,.2); }
.eom-continue-action.is-payment:hover { background: #084fcf; border-color: #084fcf; color: #fff; }
.eom-continue-action:focus-visible, .eom-continue-empty-action:focus-visible { outline: 2px solid #1161eb; outline-offset: 3px; }
.eom-continue-empty { display: flex; flex-direction: column; align-items: center; padding: 33px 16px 40px; text-align: center; }
.eom-continue-empty strong { color: #163363; font-size: 15px; font-weight: 850; }
.eom-continue-empty p { margin: 8px 0 20px; font-size: 12px; color: #718199; }
.eom-continue-empty-action { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 8px; background: #1161eb; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.eom-continue-empty-action:hover { background: #084fcf; color: #fff; }
.eom-continue-more { display: block; margin: 0 auto 18px; border: 1px solid #cbdaf3; border-radius: 7px; background: #fff; color: #1161eb; padding: 9px 25px; cursor: pointer; font-size: 12px; }
body.eom-continue-open { overflow: hidden; }
@media (max-width: 899px) {
    .eom-shared-header-actions { gap: 2px; }
    .eom-continue-toggle { width: 38px; height: 44px; padding: 0; justify-content: center; }
    .eom-continue-toggle svg { width: 25px; height: 25px; }
    .eom-continue-text { display: none; }
    .eom-continue-badge { top: 1px; left: 23px; }
    .eom-continue-panel { max-height: 90dvh; }
    .eom-continue-head { padding: 18px 16px 14px; }
    .eom-continue-list { padding: 6px 11px 12px; }
    .eom-continue-thumb { flex-basis: 68px; width: 68px; }
    .eom-continue-item { gap: 9px; }
    .eom-continue-action { padding: 8px 7px; font-size: 10px; }
}
@media (max-width: 360px) { .eom-shared-logo img { width: 142px; } }
