.inquiry-page {
    width: min(1080px, calc(100% - 48px));
    margin: 72px auto 100px;
    color: #111;
}

.inquiry-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid #111;
}

.inquiry-page-header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -.03em;
}


.inquiry-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.inquiry-write-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.inquiry-write-button:hover {
    background: #333;
}

.inquiry-board {
    margin-top: 0;
}

.inquiry-board-header,
.inquiry-board-row {
    display: grid;
    grid-template-columns: 72px minmax(120px, 1fr) 88px 100px 72px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
}

.inquiry-board-header {
    min-height: 48px;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}

.inquiry-board-header > span {
    padding: 0 8px;
    color: #888;
    font-size: 11px;
    font-weight: 400;
}

.inquiry-board-row {
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color .15s ease;
}

.inquiry-board-row:hover {
    background: #f8f8f8;
}

.inquiry-board-row > span,
.inquiry-board-row > .inquiry-title-col,
.inquiry-board-row .inquiry-author-col,
.inquiry-board-row .inquiry-date-col {
    min-width: 0;
    padding: 14px 8px;
    color: #333;
    font-size: 12px;
}

.inquiry-type-col {
    color: #757575;
    font-weight: 600;
    text-align: center;
}

.inquiry-type-col.is-general,
.inquiry-type-inline.is-general { color: #757575 !important; }

.inquiry-type-col.is-product,
.inquiry-type-inline.is-product { color: #2b6cb0 !important; }

.inquiry-type-col.is-shipping,
.inquiry-type-inline.is-shipping { color: #2f855a !important; }

.inquiry-type-col.is-exchange,
.inquiry-type-inline.is-exchange { color: #c05621 !important; }

.inquiry-type-col.is-cancel,
.inquiry-type-inline.is-cancel { color: #c53030 !important; }

.inquiry-type-col.is-other,
.inquiry-type-inline.is-other { color: #4a5568 !important; }

.inquiry-title-col {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.inquiry-title-text {
    overflow: hidden;
    color: #111;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inquiry-title-count {
    flex: none;
    color: #999;
    font-size: 11px;
    font-weight: 500;
}

.inquiry-meta-col {
    display: contents;
}

.inquiry-author-col,
.inquiry-date-col,
.inquiry-status-col {
    text-align: center;
}

.inquiry-status-col.is-answered {
    color: #111;
    font-weight: 500;
}

.inquiry-status-col.is-pending {
    color: #999;
}

.inquiry-type-inline {
    display: none;
    font-style: normal;
    font-weight: 600;
}

.inquiry-board-row > .inquiry-reply-count {
    display: none;
}

.inquiry-detail-page {
    width: min(920px, calc(100% - 64px));
}

.inquiry-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.inquiry-detail-back {
    color: #888;
    font-size: 12px;
    text-decoration: none;
}

.inquiry-detail-back:hover {
    color: #111;
}

.inquiry-detail-delete {
    height: 34px;
    padding: 0 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.inquiry-detail-delete:hover {
    border-color: #111;
    color: #111;
}

.inquiry-detail-delete[hidden] {
    display: none;
}

.inquiry-detail-error {
    padding: 80px 20px;
    border-top: 1px solid #111;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 13px;
    text-align: center;
    line-height: 1.7;
}

.inquiry-detail-header {
    padding-bottom: 22px;
    border-bottom: 1px solid #ebebeb;
}

.inquiry-detail-type {
    margin-bottom: 10px;
    color: #757575;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.inquiry-detail-type.is-general { color: #757575 !important; }
.inquiry-detail-type.is-product { color: #2b6cb0 !important; }
.inquiry-detail-type.is-shipping { color: #2f855a !important; }
.inquiry-detail-type.is-exchange { color: #c05621 !important; }
.inquiry-detail-type.is-cancel { color: #c53030 !important; }
.inquiry-detail-type.is-other { color: #4a5568 !important; }

.inquiry-detail-header h1 {
    margin: 0;
    color: #111;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.35;
    word-break: keep-all;
}

.inquiry-detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.inquiry-detail-author-avatar {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}

.inquiry-detail-author-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inquiry-detail-author-text strong {
    color: #111;
    font-size: 14px;
    font-weight: 600;
}

.inquiry-detail-author-text span {
    color: #999;
    font-size: 12px;
}

.inquiry-detail-ref {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin: 20px 0 0;
    padding: 14px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fafafa;
    color: inherit;
    text-decoration: none;
}

.inquiry-detail-ref.is-link {
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.inquiry-detail-ref.is-link:hover {
    border-color: #ccc;
    background: #f5f5f5;
}

.inquiry-detail-ref-media {
    width: 64px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.inquiry-detail-ref-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inquiry-detail-ref-body {
    min-width: 0;
}

.inquiry-detail-ref-body em {
    display: block;
    color: #999;
    font-size: 11px;
    font-style: normal;
}

.inquiry-detail-ref-body strong {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inquiry-detail-ref-body span {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 12px;
}

.inquiry-detail-content {
    margin-top: 28px;
    color: #222;
    font-size: 15px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-word;
}

.inquiry-detail-reply-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    padding: 16px 0;
    border-bottom: 1px solid #ebebeb;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.inquiry-detail-reply-summary img {
    width: 18px;
    height: 18px;
}

.inquiry-detail-reply-summary em {
    font-style: normal;
    font-weight: 600;
}

.inquiry-reply-list {
    display: flex;
    flex-direction: column;
}

.inquiry-reply-item {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #ebebeb;
}

.inquiry-reply-item.is-nested {
    margin: 0;
    padding: 14px 0 14px 4px;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
}

.inquiry-reply-item.is-nested:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.inquiry-reply-item.is-nested .inquiry-reply-avatar {
    width: 30px;
    height: 30px;
}

.inquiry-reply-children {
    display: flex;
    flex-direction: column;
    margin: 14px 0 0;
    padding: 2px 0 2px 18px;
}

.inquiry-reply-avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}

.inquiry-reply-main {
    min-width: 0;
    flex: 1;
}

.inquiry-reply-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.inquiry-reply-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.inquiry-reply-head strong {
    color: #111;
    font-size: 13px;
    font-weight: 700;
}

.inquiry-reply-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 600;
}

.inquiry-reply-badge.is-admin {
    background: #eef2ff;
    color: #3f51b5;
}

.inquiry-reply-badge.is-author {
    background: #e8f5e9;
    color: #2e7d32;
}

.inquiry-reply-menu {
    position: relative;
    flex: none;
}

.inquiry-reply-menu-button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.inquiry-reply-menu-button:hover {
    color: #333;
}

.inquiry-reply-menu-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 20;
    display: none;
    min-width: 108px;
    padding: 6px 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.inquiry-reply-menu.is-open .inquiry-reply-menu-panel {
    display: block;
}

.inquiry-reply-menu-panel button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #333;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.inquiry-reply-menu-panel button:hover {
    background: #f7f7f7;
}

.inquiry-reply-content {
    margin-top: 8px;
    color: #222;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.inquiry-reply-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    color: #aaa;
    font-size: 12px;
}

.inquiry-reply-write {
    border: none;
    background: transparent;
    color: #aaa;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.inquiry-reply-write:hover {
    color: #555;
}

.inquiry-reply-child-composer {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
}

.inquiry-reply-child-composer textarea {
    width: 100%;
    min-height: 72px;
    padding: 0;
    border: none;
    outline: none;
    resize: vertical;
    background: transparent;
    color: #222;
    font: inherit;
    font-size: 13px;
    line-height: 1.6;
}

.inquiry-reply-child-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.inquiry-reply-child-actions button {
    border: none;
    background: transparent;
    color: #999;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.inquiry-reply-child-actions button[data-action="submit-child"] {
    color: #555;
    font-weight: 600;
}

.inquiry-reply-children:empty {
    display: none;
}

.inquiry-reply-item.is-nested .inquiry-reply-children {
    display: none;
}

.inquiry-reply-composer {
    margin-top: 24px;
    padding: 18px 18px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
}

.inquiry-reply-composer strong {
    display: block;
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

.inquiry-reply-composer textarea {
    width: 100%;
    min-height: 88px;
    margin-top: 12px;
    padding: 0;
    border: none;
    outline: none;
    resize: vertical;
    background: transparent;
    color: #222;
    font: inherit;
    font-size: 14px;
    line-height: 1.6;
}

.inquiry-reply-composer textarea::placeholder {
    color: #b0b0b0;
}

.inquiry-reply-composer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.inquiry-reply-composer-actions button {
    border: none;
    background: transparent;
    color: #b0b0b0;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.inquiry-reply-composer-actions button:hover {
    color: #111;
}

.inquiry-reply-composer-actions button:disabled {
    opacity: .5;
    cursor: default;
}

.inquiry-reply-login {
    margin-top: 24px;
    padding: 18px;
    border: 1px dashed #ddd;
    border-radius: 10px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

.inquiry-reply-login a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.inquiry-detail-ref[hidden],
.inquiry-detail-error[hidden],
.inquiry-detail[hidden],
.inquiry-reply-composer[hidden],
.inquiry-reply-login[hidden],
.inquiry-reply-child-composer[hidden],
.inquiry-guest-notice[hidden] {
    display: none;
}


.inquiry-empty {
    padding: 80px 20px;
    border-bottom: 1px solid #eee;
    color: #999;
    font-size: 13px;
    text-align: center;
}

.inquiry-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding-top: 28px;
}

.inquiry-pagination button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 12px;
    cursor: pointer;
}

.inquiry-pagination button.is-active {
    color: #111;
    font-weight: 600;
}

.inquiry-pagination button:disabled {
    opacity: .35;
    cursor: default;
}

.inquiry-back-link {
    flex: none;
    color: #666;
    font-size: 12px;
    text-decoration: none;
}

.inquiry-back-link:hover {
    color: #111;
}

.inquiry-guest-notice {
    margin: 20px 0 0;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    background: #fafafa;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 28px;
}

.inquiry-form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inquiry-form-field[hidden] {
    display: none;
}

.inquiry-form-field label {
    color: #888;
    font-size: 11px;
}

.inquiry-form-field input,
.inquiry-form-field select,
.inquiry-form-field textarea {
    width: 100%;
    border: 1px solid #ddd;
    outline: none;
    background: #fff;
    color: #111;
    font: inherit;
}

.inquiry-form-field input,
.inquiry-form-field select {
    height: 44px;
    padding: 0 14px;
    font-size: 13px;
}

.inquiry-form-field textarea {
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
    resize: vertical;
    min-height: 220px;
}

.inquiry-form-field input:focus,
.inquiry-form-field select:focus,
.inquiry-form-field textarea:focus {
    border-color: #111;
}

.inquiry-form-field input:disabled,
.inquiry-form-field select:disabled {
    background: #f5f5f5;
    color: #777;
    cursor: not-allowed;
}

.inquiry-order-hint {
    margin: 0;
    color: #999;
    font-size: 11px;
    line-height: 1.5;
}

.inquiry-product-picker {
    position: relative;
}

.inquiry-product-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 280px;
    overflow: auto;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.inquiry-product-result {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.inquiry-product-result:last-child {
    border-bottom: none;
}

.inquiry-product-result:hover {
    background: #f8f8f8;
}

.inquiry-product-result img {
    flex: none;
    width: 40px;
    height: 50px;
    object-fit: cover;
    background: #f3f3f3;
}

.inquiry-product-result span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inquiry-product-result strong {
    overflow: hidden;
    color: #222;
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inquiry-product-result em {
    color: #999;
    font-size: 11px;
    font-style: normal;
}

.inquiry-product-empty {
    padding: 16px;
    color: #999;
    font-size: 12px;
}

.inquiry-product-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.inquiry-product-selected-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.inquiry-product-selected-info img {
    flex: none;
    width: 40px;
    height: 50px;
    object-fit: cover;
    background: #f3f3f3;
}

.inquiry-product-selected-info strong {
    overflow: hidden;
    color: #222;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inquiry-product-selected button {
    flex: none;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
    font-size: 11px;
    cursor: pointer;
}

.inquiry-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
}

.inquiry-cancel-button,
.inquiry-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #111;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.inquiry-cancel-button {
    background: #fff;
    color: #111;
}

.inquiry-submit-button {
    background: #111;
    color: #fff;
}

.inquiry-submit-button:disabled {
    opacity: .5;
    cursor: default;
}

@media (max-width: 760px) {
    .inquiry-page {
        width: calc(100% - 24px);
        margin: 48px auto 72px;
    }

    .inquiry-page-header {
        align-items: center;
        gap: 12px;
        padding-bottom: 20px;
    }

    .inquiry-page-header h1 {
        font-size: 26px;
    }

    .inquiry-board-header {
        display: none;
    }

    .inquiry-board-row {
        grid-template-columns: minmax(0, 1fr) 48px;
        grid-template-areas:
            "title reply"
            "meta reply";
        gap: 6px 12px;
        align-items: start;
        min-height: 0;
        padding: 14px 0;
    }

    .inquiry-board-row > span,
    .inquiry-board-row > .inquiry-title-col,
    .inquiry-board-row .inquiry-author-col,
    .inquiry-board-row .inquiry-date-col {
        padding: 0;
    }

    .inquiry-type-col,
    .inquiry-status-col,
    .inquiry-title-count {
        display: none;
    }

    .inquiry-title-col {
        grid-area: title;
        display: block;
        padding: 0;
    }

    .inquiry-title-text {
        display: block;
        font-size: 15px;
        font-weight: 600;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: keep-all;
        line-height: 1.4;
    }

    .inquiry-meta-col {
        grid-area: meta;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
        min-width: 0;
    }

    .inquiry-author-col,
    .inquiry-date-col {
        color: #999;
        font-size: 11px;
        text-align: left;
    }

    .inquiry-type-inline {
        display: inline;
        font-size: 11px;
    }

    .inquiry-board-row > .inquiry-reply-count {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid-area: reply;
        align-self: center;
        box-sizing: border-box;
        width: 48px;
        height: 48px;
        margin: 0;
        padding: 0;
        border: 1px solid #e5e5e5;
        border-radius: 14px;
        background: #fff;
        color: #666;
        gap: 3px;
        line-height: 1.1;
    }

    .inquiry-reply-count em {
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        color: #111;
    }

    .inquiry-reply-count span {
        font-size: 11px;
    }

    .inquiry-form-actions {
        flex-direction: column-reverse;
    }

    .inquiry-cancel-button,
    .inquiry-submit-button {
        width: 100%;
    }

    .inquiry-detail-page {
        width: calc(100% - 32px);
    }

    .inquiry-detail-header h1 {
        font-size: 22px;
    }

    .inquiry-detail-ref {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .inquiry-detail-ref-media {
        width: 56px;
        height: 70px;
    }

    .inquiry-detail-content {
        font-size: 14px;
    }

    .inquiry-reply-children {
        margin-left: 4px;
        padding-left: 12px;
    }
}
