/* ══════════════════════════════════════════════════════
   TickClip — Affiliate Deal Checker Page
   ══════════════════════════════════════════════════════ */

.tcds-aff-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 16px 48px;
	font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: #1e293b;
	line-height: 1.5;
}
.tcds-aff-page * { box-sizing: border-box; }

/* ── Hero ──────────────────────────────────────────── */

.tcds-aff-hero {
	text-align: center;
	padding: 32px 0 24px;
}
.tcds-aff-hero h2 {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #0f172a;
}
.tcds-aff-hero p {
	font-size: 15px;
	color: #64748b;
	margin: 0;
}

/* ── Settings bar ──────────────────────────────────── */

.tcds-aff-settings {
	padding: 16px 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 20px;
}
.tcds-aff-row {
	display: flex;
	gap: 12px;
	align-items: flex-end;
}
.tcds-aff-grow { flex: 1; }
.tcds-aff-market-field { width: 130px; }
.tcds-aff-save-field { width: auto; }

.tcds-aff-field {
	margin-bottom: 0;
}
.tcds-aff-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}
.tcds-aff-hint {
	font-weight: 400;
	color: #94a3b8;
	font-size: 12px;
}
.tcds-aff-field input,
.tcds-aff-field select {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #1e293b;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.tcds-aff-field input:focus,
.tcds-aff-field select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.tcds-aff-field input[readonly] {
	background: #f8fafc;
	color: #475569;
}

.tcds-aff-btn-sm {
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	color: #3b82f6;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}
.tcds-aff-btn-sm:hover { background: #dbeafe; }

/* ── Search ────────────────────────────────────────── */

.tcds-aff-search {
	margin-bottom: 24px;
}
.tcds-aff-search-row {
	display: flex;
	gap: 10px;
}
.tcds-aff-search-row input {
	flex: 1;
}
.tcds-aff-search .tcds-aff-field label {
	margin-bottom: 8px;
}

/* ── Buttons ───────────────────────────────────────── */

.tcds-aff-btn {
	padding: 12px 28px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: #3b82f6;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	white-space: nowrap;
}
.tcds-aff-btn:hover { background: #2563eb; }
.tcds-aff-btn:active { transform: scale(0.98); }
.tcds-aff-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.tcds-aff-btn-secondary {
	width: 100%;
	margin-top: 16px;
	background: #f1f5f9;
	color: #475569;
}
.tcds-aff-btn-secondary:hover { background: #e2e8f0; }

/* ── Loading ───────────────────────────────────────── */

.tcds-aff-loading {
	text-align: center;
	padding: 40px 0;
}
.tcds-aff-spinner {
	width: 36px;
	height: 36px;
	margin: 0 auto 12px;
	border: 4px solid #e2e8f0;
	border-top-color: #3b82f6;
	border-radius: 50%;
	animation: tcds-aff-spin 0.7s linear infinite;
}
@keyframes tcds-aff-spin { to { transform: rotate(360deg); } }
.tcds-aff-loading p {
	font-size: 14px;
	color: #64748b;
	margin: 0;
}

/* ── Verdict card ──────────────────────────────────── */

.tcds-aff-verdict-card {
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 24px;
	background: #fff;
}
.tcds-aff-vc-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
}
.tcds-aff-vc-img {
	width: 100px;
	height: 100px;
	object-fit: contain;
	border-radius: 8px;
	background: #f8fafc;
	flex-shrink: 0;
}
.tcds-aff-vc-info { flex: 1; }
.tcds-aff-vc-title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px;
	line-height: 1.3;
}
.tcds-aff-vc-brand {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 8px;
}
.tcds-aff-vc-asin {
	font-size: 12px;
	color: #94a3b8;
	font-family: monospace;
}

.tcds-aff-vc-verdict {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-top: 1px solid #f1f5f9;
}
.tcds-aff-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	padding: 8px 16px;
	font-size: 18px;
	font-weight: 800;
	border-radius: 10px;
	letter-spacing: 0.5px;
}
.tcds-aff-badge-TICK { background: #dcfce7; color: #059669; }
.tcds-aff-badge-CLIP { background: #fef3c7; color: #d97706; }
.tcds-aff-badge-SKIP { background: #fee2e2; color: #dc2626; }

.tcds-aff-vc-score {
	font-size: 14px;
	color: #475569;
}
.tcds-aff-vc-score strong {
	font-size: 22px;
	font-weight: 800;
}

.tcds-aff-vc-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border-top: 1px solid #f1f5f9;
}
.tcds-aff-stat {
	text-align: center;
	padding: 12px 8px;
	border-right: 1px solid #f1f5f9;
}
.tcds-aff-stat:last-child { border-right: none; }
.tcds-aff-stat-label {
	font-size: 11px;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}
.tcds-aff-stat-value {
	font-size: 15px;
	font-weight: 700;
	color: #1e293b;
}

/* ── Rating ────────────────────────────────────────── */

.tcds-aff-vc-rating {
	font-size: 13px;
	color: #475569;
	margin: 4px 0 0;
}
.tcds-aff-stars {
	color: #f59e0b;
	letter-spacing: 1px;
}
.tcds-aff-rc {
	color: #94a3b8;
	font-size: 12px;
}

/* ── Verdict score block ──────────────────────────── */

.tcds-aff-vc-score-block {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tcds-aff-vc-verdict-sub {
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
}

/* ── Quick Why ────────────────────────────────────── */

.tcds-aff-vc-quick-why {
	padding: 12px 20px;
	border-top: 1px solid #f1f5f9;
	font-size: 13px;
	color: #334155;
	line-height: 1.5;
}
.tcds-aff-vc-quick-why strong {
	color: #0f172a;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* ── Affiliate Projection ─────────────────────────── */

.tcds-aff-projection {
	padding: 16px 20px;
	border-top: 1px solid #f1f5f9;
	background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
}
.tcds-aff-proj-title {
	font-size: 14px;
	font-weight: 700;
	color: #6d28d9;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.tcds-aff-proj-title::before {
	content: '📊';
	font-size: 16px;
}
.tcds-aff-proj-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 10px;
}
.tcds-aff-proj-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tcds-aff-proj-label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.tcds-aff-proj-value {
	font-size: 16px;
	font-weight: 800;
	color: #1e293b;
}
.tcds-aff-proj-boosters {
	margin: 8px 0;
	font-size: 12px;
	line-height: 1.8;
}
.tcds-aff-proj-boost {
	display: inline-block;
	padding: 2px 8px;
	background: #ede9fe;
	color: #6d28d9;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	margin: 2px 4px 2px 0;
}
.tcds-aff-proj-tip {
	margin: 8px 0 0;
	font-size: 12px;
	color: #475569;
	font-style: italic;
}

/* ── Short Link Primary CTA ───────────────────────── */

.tcds-aff-vc-shortlink-cta {
	padding: 16px 20px;
	border-top: 1px solid #f1f5f9;
}
.tcds-aff-shortlink-prompt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 12px;
}
.tcds-aff-shortlink-label {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}
.tcds-aff-shortlink-hint {
	font-size: 12px;
	color: #64748b;
}
.tcds-aff-shortlink-actions {
	display: flex;
	gap: 10px;
}
.tcds-aff-cta {
	flex: 1;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s, transform 0.1s;
	display: inline-block;
}
.tcds-aff-cta:active { transform: scale(0.98); }
.tcds-aff-cta-shorten {
	background: #3b82f6;
	color: #fff;
}
.tcds-aff-cta-shorten:hover { background: #2563eb; }
.tcds-aff-cta-amazon {
	background: #ff9900;
	color: #111;
}
.tcds-aff-cta-amazon:hover { background: #e68a00; color: #111; }

/* Inline short link result */
.tcds-aff-inline-short {
	margin-top: 12px;
}
.tcds-aff-copy-primary {
	background: #3b82f6;
	color: #fff;
	border-color: #3b82f6;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 18px;
}
.tcds-aff-copy-primary:hover { background: #2563eb; border-color: #2563eb; }
.tcds-aff-copy-primary.copied {
	background: #059669;
	color: #fff;
	border-color: #059669;
}

/* ── Post Writer Nudge ────────────────────────────── */

.tcds-aff-writer-nudge {
	padding: 10px 20px;
	border-top: 1px solid #f1f5f9;
	font-size: 13px;
	color: #78716c;
	background: #fffbeb;
}
.tcds-aff-nudge-icon {
	color: #f59e0b;
	font-size: 14px;
}

/* ── Verdict Share (bottom) ───────────────────────── */

.tcds-aff-vc-bottom {
	padding: 14px 20px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tcds-aff-verdict-share-bottom label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	margin-bottom: 4px;
}
.tcds-aff-cta-share-bottom {
	width: 100%;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s;
}
.tcds-aff-cta-share-bottom:hover { background: #e2e8f0; }
.tcds-aff-cta-share-bottom.copied {
	background: #dcfce7;
	color: #059669;
	border-color: #bbf7d0;
}

/* ── Reasons ──────────────────────────────────────── */

.tcds-aff-vc-reasons {
	padding: 14px 20px;
	border-top: 1px solid #f1f5f9;
}
.tcds-aff-vc-reasons ul {
	margin: 0;
	padding: 0 0 0 18px;
	font-size: 13px;
	color: #475569;
	line-height: 1.6;
}

/* ── Links section ─────────────────────────────────── */

.tcds-aff-links {
	margin-bottom: 24px;
}
.tcds-aff-links h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
	color: #0f172a;
}
.tcds-aff-link-group {
	margin-bottom: 12px;
}
.tcds-aff-link-group label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 4px;
}
.tcds-aff-copy-row {
	display: flex;
	gap: 8px;
}
.tcds-aff-copy-row input {
	flex: 1;
	padding: 9px 12px;
	font-size: 13px;
	font-family: monospace;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #f8fafc;
	color: #475569;
}
.tcds-aff-copy {
	padding: 9px 14px;
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	color: #3b82f6;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}
.tcds-aff-copy:hover { background: #dbeafe; }
.tcds-aff-copy.copied {
	color: #059669;
	background: #dcfce7;
	border-color: #bbf7d0;
}

/* ── Social share ──────────────────────────────────── */

.tcds-aff-share {
	margin-bottom: 16px;
}
.tcds-aff-share h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
	color: #0f172a;
}
.tcds-aff-share-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tcds-aff-share-btn {
	flex: 1;
	min-width: 100px;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s;
}
.tcds-aff-share-btn:hover { opacity: 0.85; }
.tcds-aff-share-x { background: #000; }
.tcds-aff-share-fb { background: #1877f2; }
.tcds-aff-share-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.tcds-aff-share-tiktok { background: #010101; }
.tcds-aff-share-wa { background: #25d366; }

/* ── AI Post Writer ────────────────────────────────── */

.tcds-aff-writer {
	margin-bottom: 24px;
	padding: 20px;
	background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
	border: 1px solid #fde68a;
	border-radius: 14px;
}
.tcds-aff-writer h3 {
	font-size: 16px;
	font-weight: 700;
	color: #92400e;
	margin: 0 0 6px;
}
.tcds-aff-writer-desc {
	font-size: 13px;
	color: #78716c;
	margin: 0 0 14px;
}
.tcds-aff-writer-controls {
	margin-bottom: 14px;
}
.tcds-aff-writer-row {
	display: flex;
	gap: 10px;
	align-items: flex-end;
	margin-bottom: 10px;
}
.tcds-aff-writer-tone { width: 130px; }
.tcds-aff-writer-platform { width: 150px; }
.tcds-aff-writer-btn-wrap { width: auto; }

.tcds-aff-btn-write {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #fff;
	padding: 10px 20px;
}
.tcds-aff-btn-write:hover { background: linear-gradient(135deg, #d97706, #b45309); }
.tcds-aff-write-icon { font-size: 14px; }

/* ── Variants ─────────────────────────────────────── */

.tcds-aff-variants {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tcds-aff-variant {
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	transition: border-color 0.2s;
}
.tcds-aff-variant:hover { border-color: #f59e0b; }
.tcds-aff-var-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}
.tcds-aff-var-platform {
	font-size: 16px;
}
.tcds-aff-var-style {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #92400e;
	background: #fef3c7;
	padding: 2px 6px;
	border-radius: 3px;
}
.tcds-aff-var-text {
	font-size: 14px;
	color: #1e293b;
	line-height: 1.5;
	margin: 0 0 8px;
	word-break: break-word;
}
.tcds-aff-var-actions {
	display: flex;
	gap: 8px;
}
.tcds-aff-var-copy {
	padding: 5px 12px;
	font-size: 11px;
}
.tcds-aff-var-share {
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 600;
	font-family: inherit;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}
.tcds-aff-var-share:hover { background: #e2e8f0; }

/* ── Smart link highlight ──────────────────────────── */

.tcds-aff-smart-link {
	padding: 14px 16px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
}
.tcds-aff-link-stats {
	display: flex;
	gap: 16px;
	margin-top: 8px;
	font-size: 12px;
	color: #059669;
	font-weight: 600;
}

/* ── My Links table ────────────────────────────────── */

.tcds-aff-my-links {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e2e8f0;
}
.tcds-aff-my-links h3 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.tcds-aff-links-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.tcds-aff-links-table th {
	text-align: left;
	padding: 8px 10px;
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid #e2e8f0;
}
.tcds-aff-links-table td {
	padding: 10px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}
.tcds-aff-lt-title {
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}

/* ── Error ─────────────────────────────────────────── */

.tcds-aff-error {
	margin-top: 16px;
	padding: 12px 16px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #991b1b;
	font-size: 14px;
}

/* ── Creator Connections Campaign Info ─────────────── */

.tcds-aff-campaign-info {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	margin-top: 8px;
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border: 1px solid #f59e0b;
	border-radius: 8px;
	font-size: 13px;
	flex-wrap: wrap;
}
.tcds-aff-campaign-badge {
	background: #f59e0b;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.tcds-aff-campaign-name { font-weight: 600; color: #92400e; }
.tcds-aff-campaign-ctx { color: #a16207; }
.tcds-aff-copy-sm {
	font-size: 11px;
	padding: 2px 8px;
	margin-left: auto;
	cursor: pointer;
	background: #fff;
	border: 1px solid #d97706;
	border-radius: 4px;
	color: #92400e;
	font-weight: 600;
}
.tcds-aff-copy-sm:hover { background: #fef3c7; }

/* ── Mobile ────────────────────────────────────────── */

@media (max-width: 600px) {
	.tcds-aff-row { flex-wrap: wrap; }
	.tcds-aff-grow,
	.tcds-aff-market-field,
	.tcds-aff-save-field { flex: 1 1 100%; }
	.tcds-aff-search-row { flex-direction: column; }
	.tcds-aff-search-row .tcds-aff-btn { width: 100%; }
	.tcds-aff-vc-header { flex-direction: column; text-align: center; }
	.tcds-aff-vc-stats { grid-template-columns: repeat(2, 1fr); }
	.tcds-aff-proj-grid { grid-template-columns: 1fr; }
	.tcds-aff-shortlink-actions { flex-direction: column; }
	.tcds-aff-writer-row { flex-wrap: wrap; }
	.tcds-aff-writer-tone,
	.tcds-aff-writer-platform,
	.tcds-aff-writer-btn-wrap { flex: 1 1 100%; }
	.tcds-aff-share-btns { flex-direction: column; }
	.tcds-aff-share-btn { min-width: unset; }
	.tcds-aff-bulk-grid { grid-template-columns: 1fr; }
	.tcds-aff-bulk-card { flex-direction: column; }
	.tcds-aff-bulk-img { width: 100%; height: 160px; }
}

/* ── Page link shortener ──────────────────────────── */

.tcds-aff-search-page {
	margin-top: -8px;
	padding-top: 0;
}
.tcds-aff-search-page label {
	font-size: 13px;
	color: #64748b;
}
.tcds-aff-page-result {
	margin-top: 10px;
}
.tcds-aff-page-result .tcds-aff-copy-row input {
	font-family: monospace;
	font-size: 14px;
	color: #3b82f6;
}

/* ── Bulk checker ─────────────────────────────────── */

.tcds-aff-search-bulk {
	margin-top: -8px;
	padding-top: 0;
}
.tcds-aff-search-bulk label {
	font-size: 13px;
	color: #64748b;
}

.tcds-aff-bulk-results {
	margin-top: 24px;
}
.tcds-aff-bulk-header {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 16px;
}
.tcds-aff-bulk-header h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}
.tcds-aff-bulk-count {
	font-size: 13px;
	color: #64748b;
}

.tcds-aff-bulk-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.tcds-aff-bulk-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow .15s;
}
.tcds-aff-bulk-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.tcds-aff-bulk-img {
	width: 100%;
	height: 140px;
	object-fit: contain;
	background: #f8fafc;
	padding: 8px;
}
.tcds-aff-bulk-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cbd5e1;
	font-size: 13px;
}

.tcds-aff-bulk-info {
	padding: 10px 12px 8px;
	flex: 1;
}
.tcds-aff-bulk-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #1e293b;
	margin-bottom: 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tcds-aff-bulk-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 6px;
}
.tcds-aff-bulk-price {
	font-weight: 700;
	color: #0f172a;
	font-size: 15px;
}
.tcds-aff-bulk-rating {
	color: #f59e0b;
	font-weight: 500;
}
.tcds-aff-bulk-prime {
	background: #0574e0;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 5px;
	border-radius: 3px;
}

.tcds-aff-bulk-verdict {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}
.tcds-aff-bulk-score {
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
}
.tcds-aff-badge-none {
	background: #e2e8f0;
	color: #64748b;
}

.tcds-aff-bulk-reason {
	font-size: 11px;
	color: #64748b;
	line-height: 1.3;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tcds-aff-bulk-deal {
	font-size: 11px;
	font-weight: 600;
	color: #059669;
}
.tcds-aff-bulk-overpay {
	font-size: 11px;
	font-weight: 600;
	color: #dc2626;
}

.tcds-aff-bulk-actions {
	display: flex;
	gap: 6px;
	padding: 8px 12px 10px;
	border-top: 1px solid #f1f5f9;
}
.tcds-aff-bulk-amazon {
	flex: 1;
	text-align: center;
	padding: 6px 8px;
	font-size: 12px;
	font-weight: 600;
	color: #111;
	background: #ff9900;
	border-radius: 6px;
	text-decoration: none;
}
.tcds-aff-bulk-detail {
	flex: 1;
	padding: 6px 8px;
	font-size: 12px;
	font-weight: 600;
	color: #3b82f6;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	cursor: pointer;
}

/* ── AI Deal Writer ───────────────────────────────── */

.tcds-aff-search-ai { border-top: 2px dashed #e2e8f0; padding-top: 20px; margin-top: 12px; }
.tcds-aff-search-ai textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.5;
	resize: vertical;
	min-height: 100px;
}
.tcds-aff-search-ai textarea:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.tcds-aff-btn-ai {
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	color: #fff;
	border: none;
	margin-top: 10px;
}
.tcds-aff-btn-ai:hover { background: linear-gradient(135deg, #6d28d9, #5b21b6); }

.tcds-aff-ai-result { margin-top: 20px; }

/* One-liner highlight */
.tcds-aff-ai-oneliner {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border-radius: 12px;
	padding: 16px 20px;
	font-size: 17px;
	font-weight: 600;
	color: #92400e;
	line-height: 1.4;
	margin-bottom: 16px;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.tcds-aff-ai-quote { font-size: 24px; color: #d97706; font-weight: 700; line-height: 1; }
.tcds-aff-ai-copy-liner {
	margin-left: auto;
	flex-shrink: 0;
	align-self: center;
}

/* Deal card */
.tcds-aff-ai-deal-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
}
.tcds-aff-ai-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: #0f172a; }
.tcds-aff-ai-meta { font-size: 13px; color: #64748b; margin: 0 0 12px; }

.tcds-aff-ai-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tcds-aff-ai-price { font-size: 24px; font-weight: 800; color: #059669; }
.tcds-aff-ai-was { font-size: 15px; color: #94a3b8; text-decoration: line-through; }
.tcds-aff-ai-discount {
	font-size: 13px;
	font-weight: 700;
	color: #dc2626;
	background: #fef2f2;
	padding: 2px 8px;
	border-radius: 4px;
}

.tcds-aff-ai-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tcds-aff-ai-badge {
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
}
.tcds-aff-ai-badge-coupon { background: #ecfdf5; color: #065f46; }
.tcds-aff-ai-badge-sns { background: #eff6ff; color: #1e40af; }
.tcds-aff-ai-badge-prime { background: #111; color: #fff; }
.tcds-aff-ai-badge-hot { background: #fef2f2; color: #dc2626; }

.tcds-aff-ai-rating { font-size: 14px; color: #475569; margin: 0 0 12px; }
.tcds-aff-ai-desc { font-size: 14px; color: #334155; line-height: 1.6; margin: 0; }

/* Actions */
.tcds-aff-ai-actions {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	flex-wrap: wrap;
}
.tcds-aff-ai-actions .tcds-aff-btn-sm { font-size: 13px; }
.tcds-aff-ai-full-check { background: #3b82f6; color: #fff; border: none; }
.tcds-aff-ai-retry { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* Social media post section */
.tcds-aff-ai-post-section { margin-bottom: 16px; }
.tcds-aff-ai-post-label { display: block; font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.tcds-aff-ai-post-textarea {
	width: 100%;
	padding: 14px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	font-size: 15px;
	font-family: inherit;
	line-height: 1.5;
	resize: vertical;
	color: #1e293b;
	background: #f8fafc;
}
.tcds-aff-ai-post-textarea:focus { border-color: #7c3aed; outline: none; box-shadow: 0 0 0 3px rgba(124,58,237,.15); }

.tcds-aff-ai-post-link-row {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.tcds-aff-ai-post-link-input { flex: 1; min-width: 200px; }
.tcds-aff-ai-post-link-input input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13px;
	font-family: monospace;
	color: #3b82f6;
	background: #fff;
}
.tcds-aff-ai-post-link-row .tcds-aff-btn { font-size: 14px; padding: 8px 18px; white-space: nowrap; }
