/* ===== ms_qna 1:1문의 스킨 스타일 ===== */

#bo_list {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: 'KoPubWorldDotum', sans-serif;
}

.cs-breadcrumbs {
    font-size: 13px;
    color: #888888;
    padding: 20px 0 16px;
}
.cs-breadcrumbs a { color: #888888; text-decoration: none; }
.cs-breadcrumbs a:hover { color: #7F6A60; }
.cs-breadcrumbs span { margin: 0 6px; }

.cs-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    border-bottom: 2px solid #7F6A60;
    margin-bottom: 0;
}
.cs-board-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
}
.cs-write-btn {
    display: inline-block;
    padding: 7px 18px;
    background: #7F6A60;
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
}
.cs-write-btn:hover { background: #6a574e; }

/* 목록 테이블 */
.cs-list-table {
    width: 100%;
    border-collapse: collapse;
}
.cs-list-table thead th {
    padding: 12px 10px;
    background: #F3EEEC;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    border-bottom: 1px solid #DDDDDD;
    text-align: center;
}
.cs-list-table thead th.th-subject { text-align: left; }
.cs-list-table tbody tr { border-bottom: 1px solid #DDDDDD; transition: background 0.15s; }
.cs-list-table tbody tr:hover { background: #faf8f7; }
.cs-list-table td {
    padding: 14px 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
}
.cs-list-table td.td-subject { text-align: left; }

.cs-subject-link { color: #333; text-decoration: none; font-size: 14px; line-height: 1.4; }
.cs-subject-link:hover { color: #7F6A60; }

/* 답변 상태 배지 */
.badge-pending {
    display: inline-block;
    padding: 3px 9px;
    background: #fff;
    border: 1px solid #DDDDDD;
    color: #888;
    font-size: 11px;
    border-radius: 10px;
    font-weight: 600;
}
.badge-complete {
    display: inline-block;
    padding: 3px 9px;
    background: #F3EEEC;
    border: 1px solid #C3ACA2;
    color: #7F6A60;
    font-size: 11px;
    border-radius: 10px;
    font-weight: 600;
}

/* 매장 배지 */
.badge-store {
    display: inline-block;
    padding: 2px 8px;
    background: #E8F4FD;
    border: 1px solid #B3D9F2;
    color: #2980B9;
    font-size: 11px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 카테고리 배지 */
.badge-cat {
    display: inline-block;
    padding: 2px 7px;
    background: #7F6A60;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

/* 페이지네이션 */
#bo_list .pg_wrap { text-align: center; padding: 20px 0 0; }

/* 검색 */
.cs-search-wrap {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.cs-search-wrap select,
.cs-search-wrap input[type="text"] {
    padding: 8px 10px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #333;
}
.cs-search-wrap input[type="text"] { width: 220px; }
.cs-search-btn {
    padding: 8px 16px;
    background: #7F6A60;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.cs-search-btn:hover { background: #6a574e; }

/* ===== 글쓰기 폼 ===== */
#bo_w {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: 'KoPubWorldDotum', sans-serif;
}
.cs-write-breadcrumbs {
    font-size: 13px;
    color: #888;
    padding: 20px 0 16px;
}
.cs-write-breadcrumbs a { color: #888; text-decoration: none; }
.cs-write-breadcrumbs a:hover { color: #7F6A60; }
.cs-write-breadcrumbs span { margin: 0 6px; }
.cs-write-header {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    padding: 0 0 16px;
    border-bottom: 2px solid #7F6A60;
    margin-bottom: 24px;
}

/* 매장 선택 UI */
.store-select-wrap {
    margin-bottom: 16px;
}
.store-select-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}
.store-select-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.store-select-row select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #333;
    background: #fff;
}
.store-select-row select:focus { outline: none; border-color: #7F6A60; }

/* ===== 보기 ===== */
#bo_v {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-family: 'KoPubWorldDotum', sans-serif;
}
.cs-v-breadcrumbs {
    font-size: 13px;
    color: #888;
    padding: 20px 0 14px;
}
.cs-v-breadcrumbs a { color: #888; text-decoration: none; }
.cs-v-breadcrumbs a:hover { color: #7F6A60; }
.cs-v-breadcrumbs span { margin: 0 6px; }
.cs-v-header {
    border-bottom: 2px solid #7F6A60;
    padding-bottom: 16px;
    margin-bottom: 0;
}
.cs-v-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}
.cs-v-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #888;
}
.cs-v-store-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #F3EEEC;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 13px;
    color: #555;
}
.cs-v-store-info-label { font-weight: 600; color: #7F6A60; }

.cs-v-content {
    padding: 30px 0;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    border-bottom: 1px solid #DDDDDD;
    min-height: 200px;
}

/* 답변 영역 */
.cs-answer-section {
    margin-top: 24px;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    overflow: hidden;
}
.cs-answer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: #F3EEEC;
    border-bottom: 1px solid #DDDDDD;
}
.cs-answer-label {
    font-size: 14px;
    font-weight: 700;
    color: #7F6A60;
}
.cs-answer-date { font-size: 12px; color: #888; }
.cs-answer-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    background: #fff;
}
.cs-pending-notice {
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #DDDDDD;
    background: #fafafa;
}

.cs-v-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
.cs-btn-list {
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    background: #fff;
}
.cs-btn-list:hover { border-color: #7F6A60; color: #7F6A60; }

/* ===== 글쓰기 폼 공통 클래스 업데이트 ===== */
.cs-form-row { margin-bottom: 18px; }
.cs-form-label { display: block; font-size: 13px; font-weight: 700; color: #555; margin-bottom: 7px; }
.cs-required { color: #DE5757; }
.cs-optional { font-size: 12px; font-weight: 400; color: #999; }

.cs-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.cs-input:focus { outline: none; border-color: #7F6A60; }
.cs-input::placeholder { color: #BBBBBB; }

.cs-select {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #333;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}
.cs-select:focus { outline: none; border-color: #7F6A60; }
.cs-select.cs-select-sm { max-width: 300px; flex: none; }

.cs-editor-wrap {
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    overflow: hidden;
    min-height: 300px;
}

.cs-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #DDDDDD;
}
.cs-form-hint { font-size: 12px; color: #999; margin-top: 6px; }

.cs-btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 42px;
    background: #fff;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.cs-btn-cancel:hover { border-color: #7F6A60; color: #7F6A60; }

.cs-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    height: 42px;
    background: #7F6A60;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'KoPubWorldDotum', sans-serif;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.cs-btn-submit:hover { background: #6a574e; }
.cs-btn-submit:disabled { background: #C3ACA2; cursor: not-allowed; }
