@charset "utf-8";

/****************************************************************************************************************************************
게시판 타이틀
*****************************************************************************************************************************************/
.bo-tit {
    position: relative;
    margin: 0 auto;
    padding: 15px 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-color);
}

.bo-tit > h3 {
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color);
}

.scroll-wrap {
    position: relative;
}

/****************************************************************************************************************************************
list-table
*****************************************************************************************************************************************/
.list-table {
    position: relative;
    margin: 0 0 30px 0;
    padding: 0;
    width: 100%;
    border: 1px solid var(--border3-color);
    border-bottom: none;
}

.list-table thead tr {
    background: var(--th-bg);
}

.list-table tbody tr {
    background: var(--bg-layer1);
    cursor: pointer;
}

.list-table th,
.list-table td {
    padding: 10px 5px;
    text-align: center;
    font-weight: 600;
    color: var(--color);
    border-bottom: 1px solid var(--border3-color);
    border-right: 1px solid var(--border3-color);
}

.list-table th:last-child,
.list-table td:last-child {
    border-right: none;
}

.list-table th {
    color: var(--white-color);
}

.list-table td.td-left {
    text-align: left;
}

.list-table td.td-cursor {
    cursor: pointer;
}

.list-table td > p {
    width: 400px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.answer-ing {
    font-weight: 600;
    color: var(--red-color);
}

.answer-ok {
    font-weight: 600;
    color: var(--secondary);
}

.message-notCheck {
    color: var(--red-color);
}

.message-check {
    color: var(--secondary);
}

@media (hover: hover) and (pointer: fine) {
    .list-table tbody tr:hover {
        background: var(--bg-layer3);
    }
}

/****************************************************************************************************************************************
view-table
*****************************************************************************************************************************************/
.view-table {
    position: relative;
    margin: 0 0 30px 0;
    padding: 0;
    width: 100%;
    border: 1px solid var(--border3-color);
    border-bottom: none;
}

.view-table thead tr {
    background: var(--th-bg);
}

.view-table tbody tr {
    background: var(--bg-layer1);
}

.view-table th,
.view-table td {
    padding: 10px 10px;
    text-align: center;
    font-weight: 600;
    color: var(--color);
    border-bottom: 1px solid var(--border3-color);
}

.view-table th {
    width: 150px;
    color: var(--black-color);
    background: var(--bg-layer3);
    border-right: 1px solid var(--border3-color);
}

.view-table td {
    width: calc(100% - 150px);
}

.view-table td.view-content,
.view-table td.view-content > *,
.view-table td.view-content p,
.view-table td.view-content div,
.view-table td.view-content ul,
.view-table td.view-content ol,
.view-table td.view-content span {
    text-align: center;
}

.view-table td.view-content ul,
.view-table td.view-content ol {
    list-style-position: inside;
    padding-left: 0;
}

/****************************************************************************************************************************************
write-table
*****************************************************************************************************************************************/
.write-table {
    position: relative;
    margin: 0 0 30px 0;
    padding: 0;
    width: 100%;
    border-top: 2px var(--red-bg) solid;
}

.write-table th,
.write-table td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--border3-color);
}

.write-table th {
    width: 150px;
    text-align: center;
    color: var(--black-color);
    background: var(--bg-layer3);
    border-right: 1px solid var(--border3-color);
}

.write-table td {
    width: calc(100% - 150px);
    text-align: left;
    background: var(--bg-layer1);
}

.write-table td > input {
    margin: 0 auto;
    padding: 8px 10px;
    width: 100%;
    text-align: left;
    color: var(--color);
    background: var(--bg-layer3);
    border: 1px solid var(--border3-color);
}

.write-table td > input::placeholder {
    color: var(--placeholder-color);
}

.write-table td > input + .unit-suffix {
    margin-left: 6px;
    font-size: 14px;
    color: var(--color);
    vertical-align: middle;
}

.write-table td > input:has(+.unit-suffix) {
    width: calc(100% - 30px);
    display: inline-block;
}

.write-table td > textarea {
    margin: 0 auto;
    padding: 8px 10px;
    width: 100%;
    height: 150px;
    text-align: left;
    color: var(--color);
    background: var(--bg-layer3);
    border: 1px solid var(--border3-color);
}

.write-table td > textarea::placeholder {
    color: var(--placeholder-color);
}

.write-table td > select {
    margin: 0 auto;
    padding: 8px 10px;
    width: 100%;
    color: var(--color);
    background: var(--bg-layer3);
    border: 1px solid var(--border3-color);
}

/* ul.moneyBtns */
ul.moneyBtns {
    position: relative;
    margin: 15px auto 0 auto;
    padding: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

ul.moneyBtns > li {
    margin: 0 auto;
    padding: 10px 0;
    width: calc(100% / 6 - 5px);
    text-align: center;
    font-weight: 600;
    color: #fff;
    background: var(--th-bg);
    border-radius: 5px;
    cursor: pointer;
}

ul.moneyBtns > li.btn-reset {
    background: var(--red-bg);
}

@media (hover: hover) and (pointer: fine) {
    ul.moneyBtns > li:hover {
        filter: brightness(120%);
    }
}

/****************************************************************************************************************************************
게시판 가이드
*****************************************************************************************************************************************/
.bo-guide {
    position: relative;
    margin-bottom: 20px;
    padding: 20px 20px;
    width: 100%;
    text-align: center;
    background: var(--bg-layer3);
}

.guide-tit {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--red-color);
}

.guide-tit > svg {
    margin: 5px 5px 0 0;
    font-size: 20px;
}

ul.guide-list {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left;
}

ul.guide-list > li {
    list-style: disc;
    display: list-item;
    margin-left: 40px;
    padding: 0;
    line-height: 1.8;
    font-weight: 500;
    color: var(--color);
}

.account-btn {
    position: relative;
    margin: 0 5px;
    padding: 5px 10px;
    font-weight: 600;
    color: #fff;
    background: var(--red-bg);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.account-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .account-btn:hover:not(:disabled) {
        filter: brightness(120%);
    }
}

/****************************************************************************************************************************************
게시판 버튼
*****************************************************************************************************************************************/
.board-btn {
    position: relative;
    margin: 30px auto 50px auto;
    padding: 0;
    width: 100%;
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.board-btn > button {
    margin: 0;
    padding: 10px 20px;
    width: 130px;
    text-align: center;
    font-weight: 600;
    color: var(--white-color);
    border-radius: 5px;
}

.board-btn > button:nth-child(1) {
    background: var(--red-bg);
}

.board-btn > button:nth-child(2) {
    background: var(--blue-bg);
}

.board-btn > button:nth-child(3) {
    background: var(--green-bg);
}

@media (hover: hover) and (pointer: fine) {
    .board-btn > button:hover {
        filter: brightness(120%);
    }
}

/****************************************************************************************************************************************
미디어쿼리문 시작
*****************************************************************************************************************************************/
@media (max-width:992px) {
    .list-table td > p {
        width: 300px;
    }
}

/* 미디어쿼리문 끝 */

@media (max-width:767px) {
    .bo-tit {
        padding: 10px 15px;
    }

    .bo-tit > img {
        height: 40px;
    }

    /* list-table — 모바일 가로 스크롤 제거 (ST10 패턴): 테이블을 부모 폭에 맞춤 + 셀 ellipsis */
    .list-table {
        margin-bottom: 10px;
        min-width: 0;
        table-layout: fixed;
    }
    .list-table th,
    .list-table td {
        padding: 8px 4px;
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* 컬럼 폭 분배 — 페이지 markup(data-* 속성) 기반으로 분기 */
    /* 공통: 번호 컬럼 좁게 */
    .list-table th:nth-child(1),
    .list-table td:nth-child(1) { width: 44px; }
    /* 이벤트 (번호/제목/[날짜]) — 마지막이 3번째 이상이면 날짜 90px, 제목 = 남은 폭 */
    .scroll-wrap[data-event-page] .list-table th:nth-child(n+3):last-child,
    .scroll-wrap[data-event-page] .list-table td:nth-child(n+3):last-child { width: 90px; }
    /* 공지 (번호/카테고리/제목/[조회수]/[날짜]) — 카테고리 80px, 마지막 80px, 제목 = 남은 폭 */
    .scroll-wrap[data-notice-page] .list-table th:nth-child(2),
    .scroll-wrap[data-notice-page] .list-table td:nth-child(2) { width: 80px; }
    .scroll-wrap[data-notice-page] .list-table th:nth-child(n+4):last-child,
    .scroll-wrap[data-notice-page] .list-table td:nth-child(n+4):last-child { width: 80px; }
    /* 데스크톱 .list-table td > p {width:400px} 해제 — 모바일에선 셀 폭에 맞춤 */
    .list-table td > p { width: auto; max-width: 100%; font-size: 12px; }

    .bo-mo-hid {
        display: none;
    }

    /* write-table */
    .write-table th {
        width: 70px;
    }

    .write-table td {
        width: calc(100% - 70px);
    }

    ul.guide-list > li {
        margin-left: 20px;
    }

    .account-btn {
        display: block;
        margin: 10px auto;
        width: 100%;
    }

    /* moneyBtns */
    ul.moneyBtns > li {
        width: calc(100% / 3 - 5px);
    }
}

/* 미디어쿼리문 끝 */

@media (max-width:639px) {
    /* list-table */
    .list-table th {
        font-size: 12px;
    }

    .list-table td {
        font-size: 13px;
    }

    .list-table td > p {
        width: 150px;
    }

    /* view-table */
    .view-table th,
    .view-table td {
        font-size: 13px;
    }

    /* write-table */
    .write-table th {
        padding: 10px 5px;
        width: 20%;
        font-size: 12px;
    }

    .write-table td {
        padding: 10px 5px;
        width: 80%;
        font-size: 13px;
    }

    .write-table td > input,
    .write-table td > textarea,
    .write-table td > select {
        font-size: 13px;
    }

    /* board-btn */
    .board-btn > button {
        padding: 10px 0;
        width: 100%;
        font-size: 13px;
    }
}

/* 미디어쿼리문 끝 */

/****************************************************************************************************************************************
페이지네이션
*****************************************************************************************************************************************/
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.pagination button {
    padding: 8px 12px;
    font-weight: 600;
    color: var(--color);
    background: var(--bg-layer3);
    border: 1px solid var(--border3-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button.active {
    background: var(--red-bg);
    color: #fff;
    border-color: var(--red-bg);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
    .pagination button:not(.active):not(:disabled):hover {
        background: var(--bg-layer2);
    }
}

/****************************************************************************************************************************************
빈 데이터 / 로딩 상태
*****************************************************************************************************************************************/
.empty-row td,
.loading-row td {
    padding: 40px;
    text-align: center;
    color: var(--placeholder-color);
}

/****************************************************************************************************************************************
셀렉트 박스 (이미 write-table에 포함)
*****************************************************************************************************************************************/

/****************************************************************************************************************************************
체크박스 / 클릭 가능 행
*****************************************************************************************************************************************/
.list-table input[type="checkbox"] {
    cursor: pointer;
}

.list-table tbody tr {
    cursor: pointer;
}

/****************************************************************************************************************************************
아코디언 스타일 (고객센터)
*****************************************************************************************************************************************/
.accordion-container {
    position: relative;
    width: 100%;
}

.accordion-loading,
.accordion-empty {
    padding: 40px;
    text-align: center;
    color: var(--placeholder-color);
    background: var(--bg-layer3);
    border: 1px solid var(--border3-color);
}

.accordion-item {
    position: relative;
    margin-bottom: 10px;
    background: var(--bg-layer1);
    border: 1px solid var(--border3-color);
    border-radius: 5px;
    overflow: hidden;
}

.accordion-item.active {
    border-color: var(--red-color);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: var(--bg-layer3);
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--bg-layer2);
}

.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.accordion-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.accordion-status {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    white-space: nowrap;
}

.accordion-status.answer-ok {
    background: rgba(0, 200, 100, 0.15);
}

.accordion-status.answer-ing {
    background: rgba(255, 100, 100, 0.15);
}

.accordion-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.accordion-date {
    font-size: 13px;
    color: var(--placeholder-color);
}

.accordion-arrow {
    font-size: 12px;
    color: var(--placeholder-color);
    transition: transform 0.2s;
}

.accordion-content {
    padding: 0;
    background: var(--bg-layer1);
}

.accordion-section {
    padding: 20px;
    border-bottom: 1px solid var(--border3-color);
}

.accordion-section:last-of-type {
    border-bottom: none;
}

.accordion-section-title {
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--th-bg);
    text-align: center;
}

.accordion-section-body {
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color);
    word-break: break-word;
}

.accordion-answer .accordion-section-title {
    background: var(--red-bg);
}

.accordion-actions {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid var(--border3-color);
}

.accordion-actions .btn-view {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--red-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: filter 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .accordion-actions .btn-view:hover {
        filter: brightness(120%);
    }
}

@media (max-width:767px) {
    .accordion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .accordion-title-wrap {
        width: 100%;
    }

    .accordion-meta {
        width: 100%;
        justify-content: space-between;
    }
}

/****************************************************************************************************************************************
상세보기 스타일 (고객센터)
*****************************************************************************************************************************************/
.detail-container {
    position: relative;
    width: 100%;
    background: var(--bg-layer1);
    border: 1px solid var(--border3-color);
    border-radius: 5px;
    overflow: hidden;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-layer3);
    border-bottom: 1px solid var(--border3-color);
}

.detail-title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.detail-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color);
}

.detail-status {
    padding: 5px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
}

.detail-status .answer-ok {
    background: rgba(0, 200, 100, 0.15);
}

.detail-status .answer-ing {
    background: rgba(255, 100, 100, 0.15);
}

.detail-date {
    font-size: 14px;
    color: var(--placeholder-color);
    flex-shrink: 0;
}

.detail-section {
    padding: 0;
    margin: 20px;
}

.detail-section-title {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border-radius: 5px 5px 0 0;
}

.detail-section-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color);
    background: var(--bg-layer3);
    border: 1px solid var(--border3-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
    word-break: break-word;
    min-height: 100px;
    text-align: center;
}

.detail-section-body > *,
.detail-section-body p,
.detail-section-body div,
.detail-section-body ul,
.detail-section-body ol,
.detail-section-body span {
    text-align: center;
}

.detail-section-body ul,
.detail-section-body ol {
    list-style-position: inside;
    padding-left: 0;
}

.detail-inquiry .detail-section-title {
    background: var(--th-bg);
}

.detail-answer .detail-section-title {
    background: var(--red-bg);
}

@media (max-width:767px) {
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .detail-title-wrap {
        width: 100%;
    }

    .detail-title {
        font-size: 16px;
    }

    .detail-date {
        width: 100%;
    }

    .detail-section {
        margin: 15px;
    }

    .detail-section-body {
        padding: 15px;
    }
}

/* 이벤트/공지 상세 배너 이미지 — 가운데 정렬 + 반응형 (ST10/ST11 패턴 차용) */
.event-image-wrap,
.notice-image-wrap {
    width: 100%;
    margin: 0 auto 15px;
    text-align: center;
}
.event-image-wrap img,
.notice-image-wrap img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
