/* 問與答組件樣式 - 完全按照 Figma 設計規格 */

/* 外層容器 */
.qna-section {
    background-color: #ffffff;
    width: 100%;
    margin-bottom: 10px;
}

/* 提示文字區域 */
.qna-section__hint {
    padding: 0 15px;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.qna-section__hint-text {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.33px;
    color: #888888;
    white-space: pre-wrap;
    flex: 1;
}

/* 登入按鈕容器 */
.qna-section__login-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px 10px;
    box-sizing: border-box;
}

/* 登入按鈕 */
.qna-section__login-btn {
    width: 100%;
    height: 40px;
    background-color: #ff7800;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.qna-section__login-btn-text {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: #ffffff;
}

/* 輸入區域容器 */
.qna-section__input-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
}

/* 輸入框容器 */
.qna-section__textarea-wrapper {
    padding: 0 15px;
}

/* 輸入框 */
.qna-section__textarea {
    width: 100%;
    height: 88px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 10px 10px 10px 10px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.33px;
    color: #000000;
    resize: none;
    box-sizing: border-box;
}

.qna-section__textarea::placeholder {
    color: #aaaaaa;
}

.qna-section__textarea:focus {
    outline: none;
    border-color: #ff7800;
}

/* 送出按鈕容器 */
.qna-section__submit-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px 10px;
    box-sizing: border-box;
}

/* 送出按鈕 */
.qna-section__submit-btn {
    width: 100%;
    height: 40px;
    background-color: #cccccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    border: none;
    transition: background-color 0.2s;
}

.qna-section__submit-btn--active {
    background-color: #ff7800;
    cursor: pointer;
}

.qna-section__submit-btn-text {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: #ffffff;
}

/* 問答列表區域 */
.qna-section__list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 25px;
}

/* 單一問答組 */
.qna-section__list-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 我的提問區塊 */
.qna-section__question,
.qna-section__answer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 標題列 */
.qna-section__header {
    width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qna-section__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qna-section__title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.36px;
    color: #333333;
}

.qna-section__time {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: normal;
    color: #aaaaaa;
}

/* 內容區域 */
.qna-section__content-wrapper {
    width: 100%;
    padding: 0 15px;
}

.qna-section__content {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0.36px;
    color: #333333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.qna-section__content--pending {
    color: #aaaaaa;
}

/* 賣家原始問答標題 */
.qna-section__seller-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.36px;
    color: #333333;
    padding: 15px 15px 10px;
    border-top: 1px solid #eeeeee;
}
