/* Consulente prodotti - scoped to .cp- namespace to avoid theme conflicts */

.cp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: 'Inter Tight', sans-serif;
}

.cp-modal[hidden] {
	display: none;
}

.cp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 46, 0.55);
}

.cp-modal__dialog {
	position: relative;
	background: #ffffff;
	color: #667085;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: 32px;
	box-sizing: border-box;
}

.cp-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border: none;
	background: #edf0f2;
	color: #667085;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.cp-modal__close:hover {
	background: #f8ad40;
	color: #ffffff;
}

.cp-title {
	font-family: 'Special Gothic Expanded One', sans-serif;
	font-size: 22px;
	font-weight: 400;
	color: #1a1a2e;
	margin: 0 0 20px;
	padding-right: 30px;
}

.cp-progress {
	height: 6px;
	border-radius: 999px;
	background: #edf0f2;
	overflow: hidden;
	margin-bottom: 28px;
}

.cp-progress__bar {
	height: 100%;
	width: 0%;
	background: #f8ad40;
	border-radius: 999px;
	transition: width 0.25s ease;
}

.cp-step__question {
	font-family: 'Special Gothic Expanded One', sans-serif;
	font-weight: 400;
	font-size: 18px;
	color: #1a1a2e;
	margin: 0 0 20px;
}

.cp-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}

.cp-option {
	text-align: left;
	padding: 14px 18px;
	border: 2px solid #edf0f2;
	background: #ffffff;
	color: #667085;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.cp-option:hover {
	border-color: #f8ad40;
	background: #fff8ef;
}

.cp-option.is-selected {
	border-color: #f8ad40;
	background: #fff2dc;
	color: #1a1a2e;
	font-weight: 600;
}

.cp-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.cp-btn {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 12px 24px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
}

.cp-btn--primary {
	background: #f8ad40;
	color: #ffffff;
	margin-left: auto;
}

.cp-btn--primary:hover {
	background: #f59322;
}

.cp-btn--primary:disabled {
	background: #edf0f2;
	color: #a0a8b5;
	cursor: not-allowed;
}

.cp-btn--ghost {
	background: transparent;
	color: #667085;
}

.cp-btn--ghost:hover {
	color: #1a1a2e;
}

/* Results */

.cp-results__intro {
	font-size: 14px;
	color: #667085;
	margin: 0 0 20px;
}

.cp-card {
	border: 2px solid #edf0f2;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
}

.cp-card--main {
	border-color: #f8ad40;
	background: #fffaf2;
}

.cp-card__tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #f59322;
	background: #fff2dc;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.cp-card--alt .cp-card__tag {
	color: #667085;
	background: #edf0f2;
}

.cp-card__name {
	font-family: 'Special Gothic Expanded One', sans-serif;
	font-weight: 400;
	font-size: 18px;
	color: #1a1a2e;
	margin: 0 0 8px;
}

.cp-card__reason {
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 16px;
}

.cp-card__link {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background: #1a1a2e;
	padding: 10px 20px;
	border-radius: 999px;
	text-decoration: none;
}

.cp-card__link:hover {
	background: #f8ad40;
	color: #ffffff;
}

.cp-restart {
	display: block;
	margin: 8px auto 0;
	background: none;
	border: none;
	color: #667085;
	font-family: inherit;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 480px) {
	.cp-modal__dialog {
		padding: 24px 20px;
	}
}
