/**
 * Feature Style Agent Section
 *
 * "Style Your Front-End Chatbot" — compact pair between Chatbot and Search.
 *
 * @package AgenticWP
 */

.feature-style-agent {
	padding-top: 48px;
	padding-bottom: 48px;
	border-top: 1px solid var(--line);
}

.style-agent-layout {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	align-items: flex-start;
}

.style-agent-description {
	flex: 1;
}

.feature-style-agent h2,
.feature-style-agent .lead,
.feature-style-agent p,
.feature-style-agent ul,
.feature-style-agent li {
	text-align: left;
}

.feature-style-agent p,
.feature-style-agent ul {
	max-width: none;
	margin-left: 0;
}

.feature-style-agent h2 {
	margin-bottom: 0.625rem;
}

.feature-style-agent h2 .accent {
	background: var(--gradient-pink, linear-gradient(135deg, #ec4899, #831843));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #831843;
}

.feature-style-agent .lead {
	font-size: 1.0625rem;
	color: var(--muted);
	margin: 0 0 1rem;
}

.feature-style-agent ul {
	margin-bottom: 0;
}

.feature-style-agent li {
	color: var(--muted);
}

.feature-style-agent li::before {
	background: #ec4899;
}

.style-agent-preview {
	width: 100%;
	max-width: 420px;
	flex-shrink: 0;
	background: #0b1220;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.style-agent-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1.25rem;
	background: rgba(236, 72, 153, 0.18);
	border-bottom: 1px solid var(--line);
}

.style-agent-preview-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink);
}

.style-agent-preview-badge {
	padding: 0.2rem 0.625rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #f9a8d4;
	font-size: 0.8125rem;
}

.style-agent-preview-body {
	display: grid;
	gap: 1rem;
	padding: 1rem 1.25rem 1.25rem;
}

.style-agent-prompt {
	padding: 0.875rem 1rem;
	border: 1px solid rgba(236, 72, 153, 0.35);
	border-radius: 12px;
	background: #111827;
	color: var(--ink);
	font-size: 0.875rem;
	line-height: 1.6;
}

.style-agent-swatches {
	display: flex;
	gap: 0.75rem;
}

.style-agent-swatch {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.16);
}

.style-agent-swatch--bg {
	background: #0b1220;
}

.style-agent-swatch--accent {
	background: #84cc16;
}

.style-agent-swatch--soft {
	background: #f1f5f9;
}

.style-agent-widget {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.style-agent-widget-launcher {
	width: 64px;
	height: 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, #84cc16, #65a30d);
	box-shadow: 0 8px 16px rgba(132, 204, 22, 0.18);
}

.style-agent-widget-window {
	padding: 0.875rem;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(11, 18, 32, 0.96));
}

.style-agent-widget-top {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.875rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--muted);
}

.style-agent-widget-messages {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin-bottom: 0.75rem;
}

.style-agent-bubble {
	display: inline-flex;
	max-width: 88%;
	padding: 0.625rem 0.75rem;
	border-radius: 14px;
	font-size: 0.8125rem;
	line-height: 1.45;
}

.style-agent-bubble--bot {
	background: rgba(236, 72, 153, 0.18);
	color: var(--ink);
}

.style-agent-bubble--user {
	align-self: flex-end;
	background: rgba(132, 204, 22, 0.18);
	color: var(--ink);
}

.style-agent-widget-input {
	padding: 0.625rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.75rem;
}

@media (min-width: 900px) {
	.style-agent-layout {
		flex-direction: row;
		gap: 3.5rem;
		align-items: center;
	}
}

@media (max-width: 900px) {
	.style-agent-preview {
		max-width: 100%;
	}
}
