.qna-page,
.qna-page * { box-sizing: border-box; }

.qna-page button { font-family: inherit; cursor: pointer; }
.qna-detail-shell { max-width: 800px; }
.qna-detail-shell .shop-intro { display: block; }
.qna-board-intro > div { flex: 1 1 250px; }
.qna-back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--shop-blue);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}
.qna-back:hover { text-decoration: none; text-underline-offset: 4px; }

.qna-list-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 21px clamp(17px, 3vw, 28px);
    border-bottom: 1px solid var(--shop-line);
}
.qna-list-heading h2,
.qna-reply h2 { margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -.035em; }
.qna-list-heading > span { color: var(--shop-muted); font-size: .84rem; }
.qna-list { margin: 0; padding: 0; list-style: none; }
.qna-list li + li { border-top: 1px solid var(--shop-line); }
.qna-list li:last-child .qna-list-row { border-radius: 0 0 15px 15px; }
.qna-list-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) max-content 12px;
    align-items: center;
    gap: 12px;
    padding: 17px clamp(17px, 3vw, 28px);
    color: var(--shop-ink);
    text-decoration: none;
}
.qna-list-row:hover,
.qna-list-notice .qna-list-row { background: #f8faff; }
.qna-list-row:focus-visible { outline-offset: -3px; }
.qna-number {
    color: var(--shop-muted);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}
.qna-row-content { min-width: 0; }
.qna-row-title, .qna-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; }
.qna-row-title { font-size: .96rem; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
.qna-meta { margin-top: 5px; color: var(--shop-muted); font-size: .8rem; line-height: 1.4; overflow-wrap: anywhere; }
.qna-meta > * + *::before { margin-inline: 2px 8px; content: "·"; }
.qna-chevron {
    grid-column: 4;
    width: 7px;
    height: 7px;
    justify-self: end;
    border-right: 1.5px solid var(--shop-muted);
    border-top: 1.5px solid var(--shop-muted);
    transform: rotate(45deg);
}
.qna-status {
    display: inline-block;
    width: max-content;
    padding: 4px 8px;
    border-radius: 5px;
    background: #eff2f7;
    color: #435672;
    font-size: .73rem;
    font-weight: 750;
    line-height: 1.3;
}
.qna-status.qna-notice { background: #e7efff; color: #113fb0; }
.qna-status.qna-answered { background: #e9f7ef; color: #16633c; }
.qna-empty { margin: 0; padding: 50px 16px; color: var(--shop-muted); text-align: center; }
.qna-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 23px; }
.qna-pagination a {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0 9px;
    border: 1px solid var(--shop-line);
    border-radius: 8px;
    color: var(--shop-ink);
    background: #fff;
    font-size: .87rem;
    font-weight: 700;
    text-decoration: none;
}
.qna-pagination a:hover { border-color: #8caafe; color: var(--shop-blue); }
.qna-pagination a[aria-current] { color: #fff; background: var(--shop-blue); border-color: var(--shop-blue); }

.qna-editor, .qna-article, .qna-reply { padding: clamp(18px, 4vw, 30px); }
.qna-article-heading { display: grid; gap: 8px; padding-bottom: 17px; border-bottom: 1px solid var(--shop-line); }
.qna-article-heading .shop-title { font-size: clamp(1.6rem, 4vw, 2.25rem); }
.qna-rich-text { overflow-wrap: anywhere; line-height: 1.7; }
.qna-rich-text img { max-width: 100%; height: auto; }
.qna-rich-text a { color: var(--shop-blue); }
.qna-rich-text :first-child { margin-top: 0; }
.qna-rich-text :last-child { margin-bottom: 0; }
.qna-article > .qna-rich-text { margin: 22px 0 14px; }
.qna-plain-text { white-space: pre-wrap; }
.qna-reply {
    margin: 16px 0 0;
    border: 1px solid #dce6fc;
    border-radius: 14px;
    background: #f0f5ff;
    color: var(--shop-ink);
}
.qna-reply h2 { margin-bottom: 12px; color: #1244ac; }
.qna-reply-pending { padding: 14px 18px; color: var(--shop-muted); font-size: .88rem; }
.qna-alert { margin: 0 0 15px; padding: 12px 15px; border-radius: 8px; background: #fff1ef; color: #8c2722; }
.qna-form { display: grid; gap: 19px; }
.qna-fields-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qna-field { display: grid; min-width: 0; gap: 6px; }
.qna-field label, .qna-privacy { font-size: .875rem; font-weight: 700; }
.qna-field :is(input, textarea) {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    border: 1px solid #c8d6ea;
    border-radius: 8px;
    padding: .65em .75em;
    font: inherit;
    color: var(--shop-ink);
    background: #fff;
}
.qna-field textarea { resize: vertical; }
.qna-field :is(input, textarea):focus { border-color: var(--shop-blue); }
.qna-privacy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    min-height: 44px;
    padding: 8px 11px;
    border-radius: 8px;
    background: var(--shop-soft);
    cursor: pointer;
}
.qna-privacy input { width: 17px; height: 17px; margin: 0; accent-color: var(--shop-blue); }
.qna-privacy small { color: var(--shop-muted); font-size: .8rem; font-weight: 500; }
.qna-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.qna-detail-actions { margin-top: 16px; }
.qna-danger-link { color: #9e2923; border-color: #f2d1cd; }
.qna-danger-link:hover { color: #8c2722; background: #fff1ef; }
.qna-danger-button { background: #a82c25; border-color: #a82c25; }
.qna-danger-button:hover { background: #86231e; border-color: #86231e; }

@media (max-width: 600px) {
    .qna-list-row { grid-template-columns: minmax(0, 1fr) max-content 9px; gap: 6px; padding-block: 15px; }
    .qna-number { display: none; }
    .qna-chevron { grid-column: 3; }
    .qna-status { padding-inline: 6px; }
    .qna-fields-pair { grid-template-columns: 1fr; gap: 19px; }
    .qna-actions > * { flex: 1 1 auto; }
}

.qna-detail-shell .qna-inquiry-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.qna-inquiry-intro .member-area-heading { margin: 0; }
