/* ── Full-width breakout from theme container ── */
.z4cp-app {
	--z4cp-primary: #1d4ed8;
	--z4cp-primary-light: #3b82f6;
	--z4cp-primary-soft: #eff6ff;
	--z4cp-bg: #f1f5f9;
	--z4cp-surface: #ffffff;
	--z4cp-text: #0f172a;
	--z4cp-muted: #64748b;
	--z4cp-border: #e2e8f0;
	--z4cp-new: #059669;
	--z4cp-new-bg: #ecfdf5;
	--z4cp-used: #7c3aed;
	--z4cp-used-bg: #f5f3ff;
	--z4cp-radius: 16px;
	--z4cp-radius-sm: 10px;
	--z4cp-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
	--z4cp-sidebar-w: 320px;
	--z4cp-sticky-offset: 80px;
	color: var(--z4cp-text);
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 0 clamp(12px, 2.5vw, 36px) 40px;
	box-sizing: border-box;
}

.z4cp-app *,
.z4cp-app *::before,
.z4cp-app *::after {
	box-sizing: border-box;
}

/* ── Hero ── */
.z4cp-hero {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px clamp(16px, 3vw, 28px);
	margin-bottom: 20px;
	border-radius: var(--z4cp-radius);
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
	color: #fff;
	box-shadow: var(--z4cp-shadow);
	overflow: hidden;
}

.z4cp-hero-glow {
	position: absolute;
	inset: -40% auto auto -20%;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(96, 165, 250, 0.35) 0%, transparent 70%);
	pointer-events: none;
}

.z4cp-app h2.z4cp-hero-title,
.z4cp-app .z4cp-hero-title {
	position: relative;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	border-bottom: none;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 800;
	line-height: 1.35;
	color: #fff !important;
}

.z4cp-hero-sub {
	position: relative;
	margin: 0;
	opacity: 0.88;
	font-size: 0.9rem;
	line-height: 1.5;
}

.z4cp-hero-stats {
	position: relative;
	display: flex;
	gap: 10px;
}

.z4cp-stat {
	min-width: 84px;
	padding: 10px 14px;
	border-radius: var(--z4cp-radius-sm);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	text-align: center;
}

.z4cp-stat-value {
	display: block;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.2;
}

.z4cp-stat-label {
	display: block;
	font-size: 0.74rem;
	opacity: 0.85;
	margin-top: 2px;
}

/* ── Layout ── */
.z4cp-layout {
	display: grid;
	grid-template-columns: var(--z4cp-sidebar-w) 1fr;
	gap: 20px;
	align-items: start;
}

.z4cp-main {
	min-width: 0;
}

/* ── Sidebar (compact) ── */
.z4cp-sidebar {
	position: sticky;
	top: var(--z4cp-sticky-offset);
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - var(--z4cp-sticky-offset) - 12px);
	border: 1px solid var(--z4cp-border);
	border-radius: var(--z4cp-radius);
	background: var(--z4cp-surface);
	box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
	overflow: hidden;
	z-index: 10;
}

.z4cp-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border-bottom: 1px solid var(--z4cp-border);
	background: var(--z4cp-surface);
}

.z4cp-sidebar-title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
}

.z4cp-sidebar-close {
	display: none;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 8px;
	background: var(--z4cp-bg);
	color: var(--z4cp-text);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.z4cp-sidebar-close:hover {
	background: var(--z4cp-border);
}

.z4cp-sidebar-body {
	flex: 1;
	overflow-y: auto;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	scrollbar-width: thin;
}

.z4cp-sidebar-foot {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 14px;
	border-top: 1px solid var(--z4cp-border);
	background: #fafbfc;
}

.z4cp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.z4cp-label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--z4cp-muted);
}

.z4cp-label-text {
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--z4cp-text);
}

.z4cp-label-hint {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--z4cp-muted);
}

.z4cp-hero-link {
	position: relative;
	margin: 10px 0 0;
}

.z4cp-hero-link a {
	color: #bfdbfe;
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
}

.z4cp-hero-link a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Segmented condition control */
.z4cp-seg {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: var(--z4cp-bg);
}

.z4cp-seg-btn {
	margin: 0;
	padding: 8px 4px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--z4cp-muted);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.3;
	cursor: pointer;
	transition: all 0.15s ease;
}

.z4cp-seg-btn:hover {
	color: var(--z4cp-primary);
}

.z4cp-seg-btn.is-active {
	background: #fff;
	color: var(--z4cp-primary);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Sort buttons */
.z4cp-sort-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.z4cp-sort-btn {
	margin: 0;
	padding: 9px 8px;
	border: 1px solid var(--z4cp-border);
	border-radius: 10px;
	background: #fff;
	color: var(--z4cp-text);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}

.z4cp-sort-btn:hover {
	border-color: #93c5fd;
	color: var(--z4cp-primary);
	background: var(--z4cp-primary-soft);
}

.z4cp-sort-btn.is-active {
	border-color: var(--z4cp-primary);
	background: var(--z4cp-primary);
	color: #fff;
}

/* Price range stacked */
.z4cp-price-range--stacked {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.z4cp-price-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.z4cp-price-mini-label {
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--z4cp-muted);
}

.z4cp-price-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.z4cp-preset-chip,
.z4cp-list-chip {
	margin: 0;
	padding: 5px 10px;
	border: 1px solid var(--z4cp-border);
	border-radius: 999px;
	background: #fff;
	color: var(--z4cp-text);
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}

.z4cp-preset-chip:hover,
.z4cp-list-chip:hover {
	border-color: #93c5fd;
	background: var(--z4cp-primary-soft);
	color: var(--z4cp-primary);
}

.z4cp-preset-chip.is-active,
.z4cp-list-chip.is-active {
	border-color: var(--z4cp-primary);
	background: var(--z4cp-primary);
	color: #fff;
}

.z4cp-brand-quick {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.z4cp-brand-quick-label {
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--z4cp-muted);
}

.z4cp-brand-quick-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.z4cp-list-app .z4cp-combo-input {
	padding: 10px 38px 10px 34px;
	font-size: 0.88rem;
	border-radius: 12px;
}

.z4cp-list-app .z4cp-combo-search-icon {
	width: 16px;
	height: 16px;
	right: 11px;
}

.z4cp-list-app .z4cp-input {
	padding: 9px 11px;
	border-radius: 12px;
}

.z4cp-list-app .z4cp-search {
	padding-right: 36px;
}

.z4cp-list-app .z4cp-sidebar-body {
	gap: 14px;
	padding: 14px;
}

.z4cp-list-app .z4cp-sidebar-title {
	font-size: 0.95rem;
}

.z4cp-list-app .z4cp-btn {
	padding: 10px 12px;
	border-radius: 12px;
}

/* ── Form controls ── */
.z4cp-input {
	width: 100%;
	margin: 0;
	padding: 7px 10px;
	border: 1px solid var(--z4cp-border);
	border-radius: var(--z4cp-radius-sm);
	background: var(--z4cp-surface);
	color: var(--z4cp-text);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.35;
	min-height: 0;
	height: auto;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.z4cp-input:focus {
	outline: none;
	border-color: var(--z4cp-primary);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.z4cp-select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 10px center;
	padding-left: 28px;
}

.z4cp-search-wrap {
	position: relative;
}

.z4cp-search-icon {
	position: absolute;
	right: 10px;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	fill: var(--z4cp-muted);
	pointer-events: none;
}

.z4cp-search {
	padding-right: 34px;
	background: var(--z4cp-bg);
}

.z4cp-search:focus {
	background: var(--z4cp-surface);
}

.z4cp-price-range {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 6px;
	align-items: center;
}

.z4cp-range-sep {
	color: var(--z4cp-muted);
	text-align: center;
	font-size: 0.82rem;
}

.z4cp-input-num {
	text-align: center;
}

/* Pills */
.z4cp-pills {
	display: flex;
	gap: 6px;
}

.z4cp-pill {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--z4cp-border);
	background: var(--z4cp-surface);
	color: var(--z4cp-text);
	border-radius: 8px;
	padding: 6px 4px;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: all 0.15s ease;
}

.z4cp-pill:hover {
	border-color: var(--z4cp-primary-light);
	color: var(--z4cp-primary);
}

.z4cp-pill.is-active {
	background: var(--z4cp-primary);
	border-color: var(--z4cp-primary);
	color: #fff;
}

/* Buttons */
.z4cp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: var(--z4cp-radius-sm);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: all 0.15s ease;
}

.z4cp-btn-primary {
	background: var(--z4cp-primary);
	color: #fff;
}

.z4cp-btn-primary:hover {
	background: var(--z4cp-primary-light);
}

.z4cp-btn-ghost {
	background: transparent;
	color: var(--z4cp-primary);
	border: 1px solid var(--z4cp-border);
}

.z4cp-btn-ghost:hover {
	background: var(--z4cp-primary-soft);
	border-color: var(--z4cp-primary);
}

.z4cp-mobile-only {
	display: none;
}

/* Mobile filter trigger */
.z4cp-mobile-filter-btn {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 14px;
	padding: 11px 16px;
	border: 0;
	border-radius: var(--z4cp-radius-sm);
	background: var(--z4cp-primary);
	color: #fff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 3px 12px rgba(29, 78, 216, 0.28);
}

.z4cp-mobile-filter-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.z4cp-filter-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #fff;
	color: var(--z4cp-primary);
	font-size: 0.72rem;
	font-weight: 800;
}

.z4cp-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(15, 23, 42, 0.45);
}

.z4cp-overlay.is-visible {
	display: block;
}

/* ── Results ── */
.z4cp-results-bar {
	margin-bottom: 12px;
}

.z4cp-results-count {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--z4cp-primary-soft);
	color: var(--z4cp-primary);
	font-weight: 800;
	font-size: 0.88rem;
	line-height: 1.3;
}

.z4cp-active-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.z4cp-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--z4cp-bg);
	border: 1px solid var(--z4cp-border);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--z4cp-text);
}

.z4cp-chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 50%;
	background: var(--z4cp-border);
	color: var(--z4cp-muted);
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	font: inherit;
}

.z4cp-chip-remove:hover {
	background: #fca5a5;
	color: #991b1b;
}

/* ── Card grid ── */
.z4cp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	min-height: 80px;
}

.z4cp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	border: 1px solid var(--z4cp-border);
	border-radius: var(--z4cp-radius);
	background: var(--z4cp-surface);
	box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
	overflow: hidden;
}

.z4cp-card::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--z4cp-primary), var(--z4cp-primary-light));
	opacity: 0;
	transition: opacity 0.2s;
}

.z4cp-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--z4cp-shadow);
	border-color: #bfdbfe;
}

.z4cp-card:hover::before {
	opacity: 1;
}

.z4cp-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.z4cp-brand-badge {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--z4cp-primary-soft);
	color: var(--z4cp-primary);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.3;
}

.z4cp-condition {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.3;
}

.z4cp-condition.is-new {
	background: var(--z4cp-new-bg);
	color: var(--z4cp-new);
}

.z4cp-condition.is-used {
	background: var(--z4cp-used-bg);
	color: var(--z4cp-used);
}

.z4cp-card-title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	font-weight: 800;
}

.z4cp-card-variant {
	margin: 0;
	font-size: 0.82rem;
	color: var(--z4cp-muted);
	line-height: 1.4;
}

.z4cp-card-variant span {
	font-weight: 700;
	color: var(--z4cp-text);
}

.z4cp-card-price {
	margin-top: auto;
	padding-top: 10px;
	font-size: 1.1rem;
	font-weight: 900;
	line-height: 1.35;
	color: var(--z4cp-text);
	border-top: 1px dashed var(--z4cp-border);
}

.z4cp-card-price small {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--z4cp-muted);
}

.z4cp-card-updated {
	margin: 0;
	font-size: 0.74rem;
	color: var(--z4cp-muted);
	line-height: 1.35;
}

/* Skeleton */
.z4cp-skeleton { pointer-events: none; }

.z4cp-skeleton-line {
	border-radius: 6px;
	background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
	background-size: 200% 100%;
	animation: z4cp-shimmer 1.2s infinite;
}

.z4cp-skeleton-sm  { height: 18px; width: 40%; margin-bottom: 6px; }
.z4cp-skeleton-lg  { height: 18px; width: 90%; margin-bottom: 6px; }
.z4cp-skeleton-md  { height: 14px; width: 60%; margin-bottom: 6px; }
.z4cp-skeleton-price { height: 24px; width: 75%; margin-top: auto; }

@keyframes z4cp-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* Empty */
.z4cp-empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 20px;
	border: 2px dashed var(--z4cp-border);
	border-radius: var(--z4cp-radius);
	background: var(--z4cp-bg);
	color: var(--z4cp-muted);
}

.z4cp-empty-state-global { margin-top: 8px; }
.z4cp-empty-icon { font-size: 2.4rem; margin-bottom: 10px; }

/* Pagination */
.z4cp-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 24px;
}

.z4cp-page-btn {
	min-width: 38px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--z4cp-border);
	border-radius: var(--z4cp-radius-sm);
	background: var(--z4cp-surface);
	color: var(--z4cp-text);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: all 0.15s ease;
}

.z4cp-page-btn:hover:not(:disabled):not(.is-active) {
	border-color: var(--z4cp-primary);
	color: var(--z4cp-primary);
	background: var(--z4cp-primary-soft);
}

.z4cp-page-btn.is-active {
	background: var(--z4cp-primary);
	border-color: var(--z4cp-primary);
	color: #fff;
}

.z4cp-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.z4cp-layout {
		grid-template-columns: 1fr;
	}

	.z4cp-mobile-filter-btn {
		display: flex;
		position: sticky;
		top: var(--z4cp-sticky-offset);
		z-index: 15;
	}

	.z4cp-sidebar {
		position: fixed;
		top: var(--z4cp-sticky-offset);
		right: 0;
		bottom: 0;
		left: auto;
		z-index: 9999;
		width: min(340px, 92vw);
		max-height: calc(100vh - var(--z4cp-sticky-offset));
		border-radius: var(--z4cp-radius) 0 0 var(--z4cp-radius);
		transform: translateX(100%);
		transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
		box-shadow: -6px 0 32px rgba(15, 23, 42, 0.15);
	}

	.z4cp-sidebar.is-open {
		transform: translateX(0);
	}

	.z4cp-sidebar-close {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.z4cp-mobile-only {
		display: inline-flex;
	}

	.z4cp-grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 901px) and (max-width: 1200px) {
	.z4cp-layout {
		--z4cp-sidebar-w: 290px;
	}

	.z4cp-grid {
		grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	}
}

@media (min-width: 1400px) {
	.z4cp-grid {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	}
}

@media (max-width: 640px) {
	.z4cp-hero {
		padding: 18px 14px;
	}

	.z4cp-hero-stats {
		width: 100%;
	}

	.z4cp-stat {
		flex: 1;
	}
}

/* ── Price estimate landing ── */
.z4cp-estimate-app {
	--z4cp-est-accent: #0f766e;
	--z4cp-est-accent-soft: #ecfdf5;
	--z4cp-est-ink: #0f172a;
	--z4cp-est-panel: rgba(255, 255, 255, 0.92);
}

.z4cp-est-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 22px;
	padding: 28px clamp(18px, 3vw, 32px);
	border-radius: 22px;
	color: #fff;
	background: linear-gradient(135deg, #0b1220 0%, #12304f 48%, #0f766e 100%);
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.z4cp-est-hero-bg {
	position: absolute;
	inset: auto -10% -40% auto;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(45, 212, 191, 0.28) 0%, transparent 68%);
	pointer-events: none;
}

.z4cp-est-hero-inner {
	position: relative;
	max-width: 640px;
}

.z4cp-est-eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.z4cp-estimate-app h2.z4cp-est-hero-title,
.z4cp-app h2.z4cp-est-hero-title,
.z4cp-app .z4cp-est-hero-title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	border-bottom: none;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 900;
	line-height: 1.3;
	color: #fff !important;
}

.z4cp-est-hero-sub {
	margin: 0;
	max-width: 34em;
	opacity: 0.9;
	font-size: 0.95rem;
	line-height: 1.7;
}

.z4cp-est-hero-meta {
	margin: 12px 0 0;
	opacity: 0.72;
	font-size: 0.8rem;
}

.z4cp-est-shell {
	display: grid;
	grid-template-columns: minmax(320px, 440px) 1fr;
	gap: 20px;
	align-items: start;
}

.z4cp-est-card,
.z4cp-est-result {
	border: 1px solid rgba(226, 232, 240, 0.95);
	border-radius: 22px;
	background: var(--z4cp-est-panel);
	box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
	backdrop-filter: blur(8px);
}

.z4cp-est-card {
	padding: 18px 18px 20px;
}

.z4cp-est-progress {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 18px;
}

.z4cp-est-progress-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 10px 8px;
	border: 1px solid var(--z4cp-border);
	border-radius: 14px;
	background: #f8fafc;
	color: var(--z4cp-muted);
	font: inherit;
	cursor: default;
	transition: all 0.2s ease;
}

.z4cp-est-progress-item.is-current,
.z4cp-est-progress-item.is-done {
	background: var(--z4cp-est-accent-soft);
	border-color: #99f6e4;
	color: var(--z4cp-est-accent);
}

.z4cp-est-progress-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(15, 118, 110, 0.12);
	font-size: 0.72rem;
	font-weight: 800;
}

.z4cp-est-progress-item.is-current .z4cp-est-progress-num {
	background: var(--z4cp-est-accent);
	color: #fff;
}

.z4cp-est-progress-label {
	font-size: 0.8rem;
	font-weight: 800;
}

.z4cp-est-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.z4cp-est-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.z4cp-est-field.is-locked {
	opacity: 0.55;
}

.z4cp-est-label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
}

.z4cp-est-label-text {
	font-size: 0.86rem;
	font-weight: 800;
	color: var(--z4cp-est-ink);
}

.z4cp-est-label-hint {
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--z4cp-muted);
}

.z4cp-est-details-grid {
	display: grid;
	gap: 14px;
}

.z4cp-est-field-inner {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Searchable combobox */
.z4cp-combo {
	position: relative;
}

.z4cp-combo-control {
	position: relative;
	display: flex;
	align-items: center;
}

.z4cp-combo-search-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	fill: var(--z4cp-muted);
	pointer-events: none;
	z-index: 1;
}

.z4cp-combo-chevron {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 10px;
	height: 6px;
	transform: translateY(-50%);
	color: var(--z4cp-muted);
	pointer-events: none;
	transition: transform 0.2s ease;
}

.z4cp-combo.is-open .z4cp-combo-chevron {
	transform: translateY(-50%) rotate(180deg);
}

.z4cp-combo-input {
	width: 100%;
	margin: 0;
	padding: 13px 42px 13px 38px;
	border: 1.5px solid var(--z4cp-border);
	border-radius: 14px;
	background: #fff;
	color: var(--z4cp-est-ink);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.z4cp-combo-input:focus {
	outline: none;
	border-color: var(--z4cp-est-accent);
	box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
	background: #fff;
}

.z4cp-combo-input:disabled {
	background: #f8fafc;
	color: #94a3b8;
	cursor: not-allowed;
}

.z4cp-combo-clear {
	position: absolute;
	left: 30px;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #e2e8f0;
	color: #475569;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

.z4cp-combo-clear:hover {
	background: #cbd5e1;
}

.z4cp-combo-panel {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	z-index: 40;
	max-height: 260px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--z4cp-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
	scrollbar-width: thin;
}

.z4cp-combo-option {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--z4cp-est-ink);
	font: inherit;
	text-align: right;
	cursor: pointer;
	transition: background 0.12s ease;
}

.z4cp-combo-option:hover,
.z4cp-combo-option.is-active {
	background: var(--z4cp-est-accent-soft);
}

.z4cp-combo-option-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

.z4cp-combo-option-label {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.4;
}

.z4cp-combo-option-label mark {
	background: rgba(45, 212, 191, 0.35);
	color: inherit;
	border-radius: 3px;
	padding: 0 1px;
}

.z4cp-combo-meta {
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--z4cp-muted);
}

.z4cp-combo-empty {
	padding: 16px 12px;
	text-align: center;
	color: var(--z4cp-muted);
	font-size: 0.85rem;
}

.z4cp-est-quick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.z4cp-est-quick-label {
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--z4cp-muted);
}

.z4cp-est-quick-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.z4cp-est-chip {
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--z4cp-border);
	border-radius: 999px;
	background: #fff;
	color: var(--z4cp-est-ink);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}

.z4cp-est-chip:hover {
	border-color: #5eead4;
	background: var(--z4cp-est-accent-soft);
	color: var(--z4cp-est-accent);
}

.z4cp-est-seg {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	padding: 4px;
	border-radius: 14px;
	background: #f1f5f9;
}

.z4cp-est-seg-btn {
	margin: 0;
	padding: 10px 8px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--z4cp-muted);
	font: inherit;
	font-size: 0.84rem;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.15s ease;
}

.z4cp-est-seg-btn:hover:not(:disabled) {
	color: var(--z4cp-est-accent);
}

.z4cp-est-seg-btn.is-active {
	background: #fff;
	color: var(--z4cp-est-accent);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.z4cp-est-seg-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.z4cp-est-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}

.z4cp-est-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 14px 18px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
	color: #fff;
	font: inherit;
	font-size: 0.98rem;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.z4cp-est-submit:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(15, 118, 110, 0.34);
}

.z4cp-est-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.z4cp-est-submit-icon {
	width: 20px;
	height: 20px;
	transform: scaleX(-1);
}

.z4cp-est-reset {
	margin: 0;
	padding: 10px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--z4cp-muted);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	cursor: pointer;
}

.z4cp-est-reset:hover {
	color: var(--z4cp-est-accent);
	background: var(--z4cp-est-accent-soft);
}

.z4cp-est-result {
	min-height: 360px;
	padding: 22px;
}

.z4cp-est-placeholder,
.z4cp-est-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 300px;
	text-align: center;
	color: var(--z4cp-muted);
}

.z4cp-est-placeholder-visual {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin-bottom: 6px;
	border-radius: 24px;
	background: linear-gradient(160deg, #ecfdf5, #f0f9ff);
	color: #0f766e;
}

.z4cp-est-placeholder-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--z4cp-est-ink);
}

.z4cp-est-placeholder-text {
	margin: 0;
	max-width: 22em;
	font-size: 0.9rem;
	line-height: 1.7;
}

.z4cp-est-loader {
	width: 34px;
	height: 34px;
	margin-bottom: 8px;
	border: 3px solid #ccfbf1;
	border-top-color: #0f766e;
	border-radius: 50%;
	animation: z4cp-spin 0.8s linear infinite;
}

@keyframes z4cp-spin {
	to { transform: rotate(360deg); }
}

.z4cp-est-result-panel {
	padding: 22px;
	border-radius: 18px;
	background:
		radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent 42%),
		linear-gradient(160deg, #042f2e 0%, #0f766e 55%, #115e59 100%);
	color: #fff;
	box-shadow: 0 16px 40px rgba(15, 118, 110, 0.25);
	animation: z4cp-est-rise 0.35s ease;
}

@keyframes z4cp-est-rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.z4cp-est-result-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 18px;
}

.z4cp-est-result-badge {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.74rem;
	font-weight: 800;
}

.z4cp-est-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.z4cp-est-tag {
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 0.78rem;
	font-weight: 700;
}

.z4cp-est-price-block {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 16px;
}

.z4cp-est-price-value {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.z4cp-est-price-unit {
	font-size: 0.9rem;
	font-weight: 700;
	opacity: 0.85;
}

.z4cp-est-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.z4cp-est-stat {
	padding: 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.z4cp-est-stat-label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	opacity: 0.8;
}

.z4cp-est-stat-value {
	display: block;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.35;
}

.z4cp-est-stat-unit {
	display: inline-block;
	margin-top: 2px;
	font-size: 0.72rem;
	opacity: 0.8;
}

.z4cp-est-result-note {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.82;
	line-height: 1.5;
}

.z4cp-est-matches {
	margin-top: 20px;
}

.z4cp-est-matches-title {
	margin: 0 0 12px;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--z4cp-est-ink);
}

.z4cp-est-match-grid {
	min-height: 0;
}

.z4cp-est-footer-link {
	margin: 22px 0 0;
	text-align: center;
}

.z4cp-est-footer-link a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--z4cp-est-accent);
	font-weight: 800;
	text-decoration: none;
}

.z4cp-est-footer-link a:hover {
	text-decoration: underline;
}

@media (max-width: 960px) {
	.z4cp-est-shell {
		grid-template-columns: 1fr;
	}

	.z4cp-est-result {
		min-height: 280px;
	}
}

@media (max-width: 640px) {
	.z4cp-est-hero {
		padding: 22px 16px;
		border-radius: 18px;
	}

	.z4cp-est-progress-label {
		display: none;
	}

	.z4cp-est-card,
	.z4cp-est-result {
		border-radius: 18px;
	}

	.z4cp-combo-panel {
		max-height: 220px;
	}
}
