/* Summernote lite：店家頁技師評論編輯器 */
.fate-rich-summernote.note-editor {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--card, var(--bg));
    box-shadow: none;
}

.fate-rich-summernote .note-toolbar {
    background: var(--bg-alt, rgba(0, 0, 0, 0.03));
    border-bottom: 1px solid var(--line);
    padding: 0.35rem 0.45rem;
}

.fate-rich-summernote .note-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    border-radius: 6px;
    padding: 0.28rem 0.45rem;
}

.fate-rich-summernote .note-btn:hover,
.fate-rich-summernote .note-btn:focus {
    background: var(--bg-alt, rgba(0, 0, 0, 0.05));
    border-color: var(--line);
    color: var(--fg);
}

.fate-rich-summernote .note-editing-area,
.fate-rich-summernote .note-editable {
    background: var(--card, var(--bg));
    color: var(--fg);
}

.fate-rich-summernote .note-editable {
    min-height: 7rem;
    line-height: 1.65;
    font-size: 0.9rem;
    padding: 0.65rem 0.75rem;
}

.fate-rich-summernote .note-editable p {
    margin: 0 0 0.5rem;
}

.fate-rich-summernote .note-editable a {
    color: var(--accent, #2563eb);
}

.fate-rich-summernote .note-statusbar {
    background: var(--bg-alt, rgba(0, 0, 0, 0.02));
    border-top: 1px solid var(--line);
}

.fate-rich-summernote .note-placeholder {
    color: var(--muted);
    padding: 0.65rem 0.75rem;
}

textarea[data-fate-rich-editor] {
    display: none;
}

.masseur-review-form [data-fate-rich-editor] + .note-editor {
    margin-top: 0.25rem;
}

.masseur-review__body-inner--rich p { margin: 0 0 0.45rem; }
.masseur-review__body-inner--rich p:last-child { margin-bottom: 0; }
.masseur-review__body-inner--rich ul,
.masseur-review__body-inner--rich ol { margin: 0.3rem 0 0.45rem 1.1rem; }
.masseur-review__body-inner--rich img {
    max-width: 100%;
    border-radius: 6px;
    margin: 0.3rem 0;
    border: 1px solid var(--line);
    height: auto;
}

.masseur-review__body-inner--rich table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0.45rem 0;
    font-size: 0.85rem;
}

.masseur-review__body-inner--rich th,
.masseur-review__body-inner--rich td {
    border: 1px solid var(--line);
    padding: 0.35rem 0.5rem;
    vertical-align: top;
}

.masseur-review-paid-fields {
    margin: 0.35rem 0 0;
    padding: 0.55rem 0.65rem;
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.masseur-review-paid-fields__toggle-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.masseur-review-paid-fields__toggle {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin: 0.15rem 0 0;
    cursor: pointer;
}

.masseur-review-paid-fields__toggle-label {
    flex: 1;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--fg);
}

.masseur-review-paid-fields__legend {
    display: none;
}

.masseur-review-paid-fields__opts {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.masseur-review-paid-preview {
    position: relative;
    line-height: 1.55;
}

.masseur-review-paid-preview__fade {
    color: var(--muted);
}

.masseur-review-paid-lock {
    margin: 0.35rem 0;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    background: var(--bg-alt, rgba(0, 0, 0, 0.04));
    border: 1px solid var(--line);
}

.masseur-review-paid-lock__hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.masseur-review-paid-cta {
    margin: 0.45rem 0 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-alt, rgba(0, 0, 0, 0.02));
}

.masseur-review-paid-cta__text {
    margin: 0 0 0.35rem;
    font-size: 0.84rem;
}

.masseur-review-paid-cta__meta {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.masseur-review-paid-cta__meta strong { color: var(--fg); }
.masseur-review-paid-cta__ok { color: #16a34a; font-weight: 600; }
.masseur-review-paid-cta__shortfall { color: #dc2626; }

.masseur-review-paid-alert {
    margin: 0 0 0.45rem;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    font-size: 0.82rem;
}

.masseur-review-paid-alert--ok {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.masseur-review-paid-alert--bad {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.masseur-review-paid-alert--warn {
    background: rgba(234, 179, 8, 0.12);
    color: #a16207;
}

.masseur-review-paid-buy-form {
    margin: 0;
}

.masseur-review--paid .masseur-review__body {
    margin-top: 0.15rem;
}

.masseur-review__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    margin-top: 0.35rem;
}

.masseur-review-like-form,
.masseur-review-fav-form {
    margin: 0;
    display: inline;
}

.masseur-review-like-btn,
.masseur-review-fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.76rem;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
}

.masseur-review-like-btn:hover,
.masseur-review-fav-btn:hover {
    border-color: var(--accent, #2563eb);
    color: var(--fg);
}

.masseur-review-like-btn.is-active,
.masseur-review-fav-btn.is-active {
    border-color: var(--accent, #2563eb);
    color: var(--accent, #2563eb);
    background: rgba(37, 99, 235, 0.08);
}

.masseur-review-like-btn.is-static,
.masseur-review-fav-btn.is-static {
    cursor: default;
}

.masseur-review-fav-btn--guest:hover {
    text-decoration: none;
}

.member-saved-section-title {
    margin: 1rem 0 0.55rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--fg);
}

.member-saved-section-title:first-of-type {
    margin-top: 0.25rem;
}

.masseur-review__paid-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(234, 179, 8, 0.15);
    color: #a16207;
    vertical-align: middle;
}
