/* TruFind support-ticket conversation: customer page (/support/?ticket=…) and the wp-admin ticket screen. */

.tf-thread { list-style: none; margin: 0; padding: 20px 0; display: grid; gap: 14px; }
.tf-thread__msg {
	max-width: min(560px, 88%); padding: 14px 16px; border-radius: 14px; border: 1px solid #D9DEE7; background: #F4F6FA;
	color: #1A2433; line-height: 1.55;
}
.tf-thread__msg--staff { justify-self: start; border-color: #C9D6EC; background: #EEF3FB; border-top-left-radius: 4px; }
.tf-thread__msg--customer { justify-self: end; background: #fff; border-top-right-radius: 4px; }
.tf-thread__msg.is-mine { box-shadow: 0 4px 12px rgba(7, 31, 69, .06); }
.tf-thread__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 6px; font-size: 13px; color: #5B6676; }
.tf-thread__meta strong { color: #0B2A5B; font-size: 14px; }
.tf-thread__msg--staff .tf-thread__meta strong::before {
	content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #F7B500; vertical-align: 1px;
}
.tf-thread__text p { margin: 0 0 8px; overflow-wrap: anywhere; }
.tf-thread__text p:last-child { margin-bottom: 0; }

/* Customer page */
.tf-ticket-view__status { display: inline-block; padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 600; }
.tf-ticket-view__status--resolved { background: rgba(255, 255, 255, .28); }
.tf-ticket-view__notice, .tf-ticket-view__error, .tf-ticket-view__invalid { margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.tf-ticket-view__notice { background: #E7F5EC; border: 1px solid #B8E0C5; color: #1F5C33; }
.tf-ticket-view__error, .tf-ticket-view__invalid { background: #FDECEC; border: 1px solid #F3C2C2; color: #9B1C1C; }
.tf-ticket-view__invalid { margin: 0 0 20px; }
.tf-ticket-view__reply { padding: 18px 0 26px; border-top: 1px solid #EDF0F5; }
.tf-ticket-view__reply textarea { width: 100%; margin-bottom: 14px; }
.tf-ticket-view__hint { margin: 10px 0 0; font-size: 14px; color: #5B6676; }

/* wp-admin box */
#tf-ticket-conversation .tf-thread { padding: 8px 0 16px; }
#tf-ticket-conversation .tf-thread__reply { margin: 0 0 6px; }
#tf-ticket-conversation .tf-thread__reply label { display: block; margin-bottom: 6px; }
.tf-thread__link { margin-top: 12px; }
.tf-thread__link summary { cursor: pointer; color: #1E4A8C; font-weight: 600; }
.tf-thread__link p { margin: 8px 0 0; }
