@charset "UTF-8";
/* 홈페이지 개편 오픈 이벤트 - 응원 메시지 방명록 레이어 (home/main/cheerEvent.jsp) */

.cheer_event {
    --cheer-book-bg: #deecef;
    --cheer-card-line: #cfe1e7;
    --cheer-main-btn: #e2434b;
    --cheer-sub-btn: #d6edf2;
    --cheer-sub-line: #2a7d96;
    --cheer-input-line: #c9ced3;
    --cheer-msg-line: #a58ac9;
    --cheer-msg-bg: #fbf7ff;
    --cheer-text: #1f2328;
    --cheer-muted: #6b7280;
    --cheer-warn: #e01e1e;
}

.cheer_event .cheer_layer {
    display: none;
    position: fixed;
    z-index: 3000; /* 동적 팝업(2000+)보다 위 */
    top: 106px;
    left: max(16px, calc(50% - 600px));
    width: 560px;
    max-height: calc(100vh - 130px);
    flex-direction: column;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
    color: var(--cheer-text);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -.3px;
    word-break: keep-all;
}
.cheer_event .cheer_layer.on { display: flex; }
.cheer_event .cheer_book {
    width: 720px;
    background:
        url(../images2025/main/cheer_book_head.png) no-repeat 0 0 / 380px 99px, /* 좌측 상단 보라 그라데이션 + 말풍선 */
        radial-gradient(ellipse 240px 110px at 92% 0, rgba(150, 230, 190, .7), transparent 70%),
        var(--cheer-book-bg);
}

.cheer_event .cheer_scroll {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 16px 20px;
}

.cheer_event .cheer_x {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    z-index: 1;
}

/* 헤더 : 말풍선 아이콘 + 제목 + 안내 */
.cheer_event .cheer_title {
    margin: 4px 50px 6px;
    text-align: center;
    color: #111;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -1px;
}
.cheer_event .cheer_lead {
    position: relative;
    margin: 0 0 18px;
    padding-left: 120px;
    text-align: center;
    color: #555;
    font-size: 14.5px;
}

/* 흰색 카드 (등록 폼) */
.cheer_event .cheer_box {
    background: #fff;
    border: 4px solid var(--cheer-card-line);
    border-radius: 30px;
    padding: 26px 34px 22px;
    margin: 0 0 14px;
}

.cheer_event .cheer_btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.cheer_event .cheer_btns_right { justify-content: flex-end; }
.cheer_event .cheer_btn {
    min-width: 230px;
    padding: 10px 30px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    color: var(--cheer-text);
    cursor: pointer;
}
.cheer_event .cheer_btn_main {
    background: var(--cheer-main-btn);
    border: 0;
    color: #fff;
    box-shadow: 0 3px 8px rgba(226, 67, 75, .25);
}
.cheer_event .cheer_btn_sub { background: var(--cheer-sub-btn); border: 2px solid var(--cheer-sub-line); }
.cheer_event .cheer_btn:hover { filter: brightness(.95); }
.cheer_event .cheer_btn:disabled { opacity: .6; cursor: wait; }
.cheer_event .cheer_btn:focus-visible,
.cheer_event .cheer_x:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }

/* 등록 폼 */
.cheer_event .cheer_field { margin-bottom: 12px; }
.cheer_event .cheer_field > label { display: block; margin-bottom: 6px; color: #111; font-size: 16px; font-weight: 500; }
.cheer_event .cheer_field > label:not(.cheer_agree)::before { content: "\2022"; margin-right: 8px; }
.cheer_event .cheer_hint { font-weight: 400; font-size: 14px; color: #666; margin-left: 4px; }
.cheer_event .cheer_row { display: flex; align-items: center; gap: 10px; }
.cheer_event .cheer_row > label { flex: 0 0 166px; margin: 0; }
.cheer_event .cheer_row > input { flex: 1 1 auto; min-width: 0; }
.cheer_event textarea,
.cheer_event input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 14px;
    border: 1px solid var(--cheer-input-line);
    border-radius: 2px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: var(--cheer-text);
}
.cheer_event input[type="text"] { height: 34px; }
.cheer_event textarea {
    resize: vertical;
    min-height: 92px;
    padding: 12px 16px;
    border: 3px solid var(--cheer-msg-line);
    background: var(--cheer-msg-bg);
}
.cheer_event textarea::placeholder,
.cheer_event input[type="text"]::placeholder { color: #8a8f96; }
.cheer_event textarea:focus,
.cheer_event input[type="text"]:focus { outline: none; border-color: #7b5bb5; box-shadow: 0 0 0 2px rgba(123, 91, 181, .2); }
.cheer_event .cheer_count { margin-top: 2px; text-align: right; font-size: 14px; color: #555; }
.cheer_event .cheer_warn { margin: -4px 0 14px; color: var(--cheer-warn); font-size: 14px; }
.cheer_event .cheer_agree { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #111; font-size: 16px; cursor: pointer; }
.cheer_event .cheer_agree input {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #b5b9be;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}
.cheer_event .cheer_agree input:checked {
    border-color: var(--cheer-main-btn);
    background: var(--cheer-main-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100%;
}
.cheer_event .cheer_agree input:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.cheer_event .cheer_privacy {
    max-height: 130px;
    overflow-y: auto;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--cheer-input-line);
    border-radius: 2px;
    color: #666;
    font-size: 13.5px;
    line-height: 1.65;
}
.cheer_event .cheer_privacy ul { margin: 0; padding: 0; list-style: none; }
.cheer_event .cheer_form .cheer_btns { margin-top: 18px; }

/* 등록 완료 알림 */
.cheer_event .cheer_done {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    z-index: 2;
}
.cheer_event .cheer_done[hidden] { display: none; }
.cheer_event .cheer_done_box {
    background: #fff;
    border: 4px solid var(--cheer-card-line);
    border-radius: 24px;
    padding: 26px 40px 22px;
    text-align: center;
}
.cheer_event .cheer_done_box p { margin: 0 0 16px; color: #111; font-size: 19px; font-weight: 700; }
.cheer_event .cheer_btn_ok { min-width: 120px; padding: 8px 24px; border: 0; border-radius: 999px; background: var(--cheer-main-btn); color: #fff; font-weight: 700; }

/* 목록 */
.cheer_event .cheer_list { margin: 0 0 12px; padding: 0; list-style: none; }
.cheer_event .cheer_list li {
    background: #fff;
    border: 4px solid var(--cheer-card-line);
    border-radius: 30px;
    padding: 18px 28px 16px;
    margin-bottom: 10px;
}
.cheer_event .cheer_msg { margin: 0 0 6px; color: #111; font-size: 16.5px; white-space: pre-wrap; word-break: break-all; }
.cheer_event .cheer_list li.is_hidden .cheer_msg { color: var(--cheer-muted); }
.cheer_event .cheer_meta { margin: 0; font-size: 14px; color: #6b6f75; }
.cheer_event .cheer_empty { text-align: center; margin: 20px 0; color: #374151; }
.cheer_event .cheer_paging { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 4px 0 14px; }
.cheer_event .cheer_paging[hidden] { display: none; }
.cheer_event .cheer_paging button {
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid var(--cheer-card-line);
    border-radius: 999px;
    background: #fff;
    color: var(--cheer-text);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}
.cheer_event .cheer_paging button.on { border-color: var(--cheer-sub-line); background: var(--cheer-sub-line); color: #fff; font-weight: 700; cursor: default; }
.cheer_event .cheer_paging button:disabled { color: #b5b9be; cursor: default; }
.cheer_event .cheer_paging button:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }

.cheer_event .sr_only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

@media (max-width: 768px) {
    .cheer_event .cheer_layer,
    .cheer_event .cheer_book {
        top: 70px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100vh - 90px);
        font-size: 14px;
    }
    .cheer_event .cheer_scroll { padding: 18px 10px 14px; }
    .cheer_event .cheer_x { top: 4px; right: 4px; width: 36px; height: 36px; font-size: 26px; line-height: 36px; }
    .cheer_event .cheer_book { background-size: 228px 59px, auto, auto; }
    .cheer_event .cheer_title { margin: 0 40px 4px 100px; font-size: 20px; text-align: left; }
    .cheer_event .cheer_lead { margin-left: 90px; padding-left: 0; text-align: left; font-size: 13px; }
    .cheer_event .cheer_box { padding: 16px 16px 14px; border-width: 3px; border-radius: 20px; }
    .cheer_event .cheer_field > label { font-size: 15px; }
    .cheer_event .cheer_row { display: block; }
    .cheer_event .cheer_row > label { margin-bottom: 6px; }
    .cheer_event .cheer_list li { padding: 14px 18px 12px; border-width: 3px; border-radius: 20px; }
    .cheer_event .cheer_msg { font-size: 15px; }
    .cheer_event .cheer_btn { min-width: 0; width: 100%; font-size: 15px; }
    .cheer_event .cheer_lead br { display: none; }
}

/* ------------------------------------------------------------------
   이벤트 안내 팝업 (관리자 팝업관리 cms07001l 에 HTML 로 등록, docs/2026-08/응원메시지_팝업.html)
   통이미지(cheer_popup_bg_v2.jpg, 550x560) 배경 위에 안내 문구·기간·버튼만 텍스트로 배치한다.
   좌표·글자 크기는 550px 기준 % / cqw 로 지정해 모바일에서 팝업 폭이 줄어도 함께 축소된다.
   안내 문구·경품 안내는 배경 위치에 맞춰 절대 배치하고, 기간/발표 목록과 버튼은 흐름 배치해
   목록 줄 수가 바뀌어도 버튼이 목록 바로 아래로 따라오게 한다. (흰 카드 안에 4줄까지 수용)
   세로 위치는 높이와 무관하게 너비 기준(cqw, padding %)으로 지정한다. 1cqw = 5.5px (550 기준)
   ------------------------------------------------------------------ */
.popup_temp:has(.cheer_pop) { height: auto !important; }
.popup_temp .popup_inner2:has(.cheer_pop) { max-height: none !important; overflow: visible !important; }

.cheer_pop {
    container-type: inline-size;
    position: relative;
    width: 100%;
    aspect-ratio: 550 / 560;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 66.5%; /* 366px / 550 */
    box-sizing: border-box;
    background: #fff url(../images2025/main/cheer_popup_bg_v2.jpg) no-repeat 0 0 / 100% 100%;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -.02em;
    word-break: keep-all;
    white-space: nowrap;
    text-align: left;
}
.cheer_pop p { position: absolute; margin: 0; padding: 0; }
.cheer_pop strong { font-weight: 700; }

.cheer_pop .cheer_pop_tit {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.cheer_pop .cheer_pop_intro {
    left: 9.1%;
    top: 29.9cqw;
    color: #686868;
    font-size: 2.82cqw;
    line-height: 4cqw;
}
.cheer_pop .cheer_pop_intro strong { color: #0088a0; font-size: 3.09cqw; }
.cheer_pop .cheer_pop_prize {
    left: 13.3%;
    top: 51.9cqw;
    color: #484848;
    font-size: 3cqw;
    line-height: 4.18cqw;
}
.cheer_pop .cheer_pop_prize strong { color: #000; font-size: 3.18cqw; }
.cheer_pop .cheer_pop_info {
    width: 82cqw; /* 카드 오른쪽 끝(520px) 안쪽에서 줄바꿈 */
    margin: 0 0 0 9.9cqw;
    padding: 0;
    list-style: none;
    color: #686868;
    font-size: 2.55cqw;
    line-height: 4.2cqw;
    white-space: normal;
}
.cheer_pop .cheer_pop_info li { position: relative; padding-left: 2cqw; }
.cheer_pop .cheer_pop_info li::before { content: "\2022"; position: absolute; left: 0; }
.cheer_pop .cheer_pop_info strong { color: #000; font-size: 3.09cqw; }
.cheer_pop .cheer_pop_btn {
    flex: none;
    margin: 1.6cqw 0 0 24.8cqw;
    width: 50.4cqw;
    height: 7.8cqw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e1414b;
    color: #fff;
    font-size: 2.82cqw;
    font-weight: 700;
    text-decoration: none;
}
.cheer_pop .cheer_pop_btn:hover,
.cheer_pop .cheer_pop_btn:focus { background: #c9333d; color: #fff; text-decoration: none; }
.cheer_pop .cheer_pop_btn:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
