/**
 * Trading Kernel — Product Tabs front-end styles
 *
 * Deliberately minimal and scoped under .tkpt- prefixes so this sits
 * inside WooCommerce/WoodMart's own tab-panel wrapper without fighting
 * its layout. No resets, no positioning tricks against the outer tabs.
 */

.tkpt-discussion,
.tkpt-changelog,
.tkpt-signal-fallback {
	font-family: inherit;
	color: inherit;
}

/* ── Post box ── */
.tkpt-post-box {
	margin-bottom: 24px;
}
.tkpt-textarea {
	width: 100%;
	min-height: 80px;
	padding: 12px 14px;
	border: 1.5px solid #E8E8E8;
	border-radius: 9px;
	font-family: inherit;
	font-size: 14px;
	resize: vertical;
	box-sizing: border-box;
}
.tkpt-textarea:focus {
	outline: none;
	border-color: #CC1B1B;
	box-shadow: 0 0 0 3px rgba(204, 27, 27, 0.08);
}
.tkpt-post-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 10px;
}
.tkpt-btn {
	background: #CC1B1B;
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
	transition: background 0.15s;
}
.tkpt-btn:hover:not(:disabled) {
	background: #A01515;
}
.tkpt-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}
.tkpt-post-msg {
	font-size: 13px;
	color: #CC1B1B;
}
.tkpt-post-msg.ok {
	color: #15803D;
}

.tkpt-locked {
	background: #F8F8F8;
	border: 1px solid #E8E8E8;
	border-radius: 9px;
	padding: 16px 18px;
	font-size: 13.5px;
	color: #444;
	margin-bottom: 22px;
}
.tkpt-locked a {
	font-weight: 700;
}

.tkpt-empty {
	color: #888;
	font-size: 14px;
	font-style: italic;
}

/* ── Comments ── */
.tkpt-comments {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.tkpt-comment {
	display: flex;
	gap: 12px;
	padding-bottom: 18px;
	border-bottom: 1px solid #F0F0F0;
}
.tkpt-comment:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.tkpt-comment-avatar img {
	border-radius: 50%;
	display: block;
}
.tkpt-comment-body {
	flex: 1;
	min-width: 0;
}
.tkpt-comment-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 4px;
	flex-wrap: wrap;
}
.tkpt-comment-name {
	font-weight: 700;
	font-size: 13.5px;
}
.tkpt-comment-date {
	font-size: 11.5px;
	color: #888;
}
.tkpt-comment-text {
	font-size: 14px;
	line-height: 1.65;
	margin: 0 0 8px;
	word-wrap: break-word;
}
.tkpt-like {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1px solid #E8E8E8;
	border-radius: 20px;
	padding: 4px 12px;
	font-size: 12px;
	color: #888;
	cursor: pointer;
	transition: all 0.15s;
}
.tkpt-like:hover:not(:disabled) {
	border-color: #CC1B1B;
	color: #CC1B1B;
}
.tkpt-like.is-liked {
	background: rgba(204, 27, 27, 0.07);
	border-color: rgba(204, 27, 27, 0.3);
	color: #CC1B1B;
}
.tkpt-like:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}
.tkpt-like-icon {
	font-size: 13px;
}

.tkpt-comment-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 2px;
}
.tkpt-reply-toggle {
	background: none;
	border: none;
	color: #888;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	padding: 4px 0;
}
.tkpt-reply-toggle:hover {
	color: #CC1B1B;
}

.tkpt-team-badge {
	display: inline-block;
	background: rgba(204, 27, 27, 0.08);
	color: #CC1B1B;
	border: 1px solid rgba(204, 27, 27, 0.25);
	border-radius: 20px;
	padding: 1px 9px;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* ── Replies — indented one level, visually nested under the parent ── */
.tkpt-replies {
	margin: 4px 0 0 48px;
	padding-left: 16px;
	border-left: 2px solid #F0F0F0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.tkpt-comment--reply {
	padding-bottom: 0;
	border-bottom: none;
}
.tkpt-comment--reply .tkpt-comment-avatar img {
	width: 30px;
	height: 30px;
}

/* ── Inline reply box ── */
.tkpt-reply-box {
	margin-top: 10px;
	padding: 12px;
	background: #F8F8F8;
	border: 1px solid #E8E8E8;
	border-radius: 9px;
}
.tkpt-reply-textarea {
	min-height: 54px;
}
.tkpt-btn-small {
	padding: 7px 16px;
	font-size: 12.5px;
}
.tkpt-btn-ghost {
	background: none;
	border: 1px solid #E8E8E8;
	color: #444;
	padding: 7px 16px;
	border-radius: 8px;
	font-size: 12.5px;
	cursor: pointer;
}
.tkpt-btn-ghost:hover {
	border-color: #888;
}

/* ── Changelog ── */
.tkpt-cl-entry {
	padding: 16px 0;
	border-bottom: 1px solid #F0F0F0;
}
.tkpt-cl-entry:last-child {
	border-bottom: none;
}
.tkpt-cl-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}
.tkpt-cl-version {
	font-weight: 800;
	font-size: 14.5px;
}
.tkpt-cl-date {
	font-size: 12px;
	color: #888;
}
.tkpt-cl-notes p {
	font-size: 14px;
	line-height: 1.7;
	margin: 0 0 8px;
}

/* ── Live signal fallback (rarely used — real render comes from
   the Ledger plugin's own shortcode output) ── */
.tkpt-signal-fallback {
	padding: 4px 0;
}
.tkpt-signal-ret {
	font-size: 24px;
	font-weight: 800;
}
.tkpt-signal-ret.up { color: #15803D; }
.tkpt-signal-ret.down { color: #CC1B1B; }
