/* 留言編輯器：沿用原站 wpDiscuz 的尺寸、圖示與欄位排列。 */
#wpdcom .comment-form {
    padding-top: 25px;
    padding-bottom: 10px;
}
#wpdcom #comment-text {
    min-height: 65px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
    background: #fff;
    color: #555;
    font: 14px/1.5 Arial, sans-serif;
    overflow-wrap: anywhere;
}
#wpdcom #comment-text:empty:focus::before { content: none; }
#wpdcom #comment-text:focus { outline: none; }
#wpdcom #comment-text p { margin: 0; text-indent: 0; font: inherit; letter-spacing: normal; }
#wpdcom .comment-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    min-height: 36px;
    padding: 8px 6px;
    border: 1px solid #ddd;
    border-top: 0;
    border-radius: 0 0 3px 3px;
    background: #fafafa;
    line-height: 18px;
}
#wpdcom .comment-toolbar button,
#wpdcom .attach-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 18px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #999;
    font: 14px/18px Arial, sans-serif;
    letter-spacing: normal;
    cursor: pointer;
}
#wpdcom .comment-toolbar button:hover,
#wpdcom .attach-image:hover { color: #555; }
#wpdcom .comment-toolbar .comment-source { color: #8297ab; font-family: monospace; }
#wpdcom .attach-image { position: relative; margin-left: auto; font-size: 16px; }
#wpdcom .attach-image input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#wpdcom .attach-image:focus-within { outline: 2px solid #00b38f; outline-offset: 2px; }
#wpdcom .comment-details {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 2%;
    margin: 11px 0 0;
    padding: 0;
}
#wpdcom .comment-identity { flex: 0 0 49%; min-width: 0; }
#wpdcom .comment-field {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
}
#wpdcom .comment-field:last-child { margin-bottom: 0; }
#wpdcom .comment-field > i {
    position: absolute;
    top: 8px;
    left: 7px;
    color: #c4c4c4;
    font-size: 16px;
    line-height: 16px;
    pointer-events: none;
}
#wpdcom .comment-field input {
    display: block;
    width: 100%;
    height: 32px;
    min-height: 0;
    margin: 0;
    padding: 3px 8px 3px 29px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 0 2px #ddd;
    background: #fff;
    color: #777;
    font: 14px/24px Arial, sans-serif;
    letter-spacing: 3px;
}
#wpdcom .comment-field input:focus { border-color: #aaa; outline: none; }
#wpdcom .comment-field input::placeholder { color: #aaa; opacity: 1; }
#wpdcom .comment-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 49%;
    gap: 11px;
    padding: 15px 2px 0 0;
}
#wpdcom .notify-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    color: #aaa;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}
#wpdcom .notify-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#wpdcom .notify-option:focus-within { outline: 2px solid #00b38f; outline-offset: 2px; }
#wpdcom .notify-option .notify-on { display: none; }
#wpdcom .notify-option:has(input:checked) { color: #00b38f; }
#wpdcom .notify-option:has(input:checked) .notify-on { display: inline; }
#wpdcom .notify-option:has(input:checked) .notify-off { display: none; }
#wpdcom .notify-option input:disabled { cursor: not-allowed; }
#wpdcom .comment-submit {
    height: 32px;
    min-height: 0;
    margin: 0;
    padding: 4px 20px;
    border: 0;
    border-radius: 3px;
    box-shadow: 1px 1px 3px -1px #bbb;
    background: #00b38f !important;
    color: #fff !important;
    font: 14px/24px Arial, sans-serif;
    letter-spacing: 1px;
}
#wpdcom .comment-submit:hover { opacity: .9; }
#wpdcom .comment-submit:disabled { opacity: .6; cursor: wait; }
#wpdcom .comment-status,
#wpdcom #attachment-name { margin: 8px 0 0; text-indent: 0; letter-spacing: normal; }
#wpdcom #attachment-name:empty,
#wpdcom .comment-status:empty { display: none; }
#wpdcom .comment-content details { margin: 8px 0; }
#wpdcom .comment-content summary { color: #777; cursor: pointer; }
@media (max-width: 600px) {
    #wpdcom .comment-details { flex-direction: column; gap: 0; }
    #wpdcom .comment-identity,
    #wpdcom .comment-actions { flex-basis: auto; width: 100%; }
    #wpdcom .comment-actions { padding-top: 12px; }
    #wpdcom .comment-toolbar { row-gap: 8px; }
}
