/* Software matcher quiz block */

.ps-matcher {
	margin-top: 2.75rem;
	padding: 1.6rem 1.5rem 1.7rem;
	border: 1px solid var(--border-color);
	border-radius: 18px;
	background: var(--surface-1);
	box-shadow: var(--shadow-sm);
}

.ps-matcher-inner {
	max-width: 760px;
}

.ps-matcher-title-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.45rem;
}

.ps-matcher-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid rgba(15, 118, 110, 0.16);
	background: rgba(15, 118, 110, 0.08);
	color: var(--primary-color);
}

.ps-matcher-icon-svg {
	display: block;
	width: 22px;
	height: 22px;
}

.ps-matcher-title {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 750;
	color: var(--text-dark);
	letter-spacing: -0.02em;
}

.ps-matcher-desc {
	margin: 0 0 1.35rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--text-light);
}

.ps-matcher-progress {
	display: flex;
	gap: 0.45rem;
	margin-bottom: 1.25rem;
}

.ps-matcher-progress-step {
	flex: 1;
	height: 4px;
	border-radius: 99px;
	background: rgba(15, 23, 42, 0.12);
}

.ps-matcher-progress-step.is-active {
	background: var(--primary-color);
}

.ps-matcher-progress-step.is-current {
	background: var(--primary-color);
	box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.2);
}

.ps-matcher-q-label {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 650;
	color: var(--text-dark);
}

.ps-matcher-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.ps-matcher-option {
	display: inline-flex;
	align-items: center;
	padding: 0.65rem 0.95rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--text-dark);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transform: none;
}

.ps-matcher-option:hover,
.ps-matcher-option:focus,
.ps-matcher-option:active {
	border-color: var(--primary-color);
	background: #fff;
	color: var(--text-dark);
	transform: none;
}

.ps-matcher-results-title {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 650;
	color: var(--text-dark);
}

.ps-matcher-list .acc-deal-note {
	-webkit-line-clamp: 2;
	white-space: normal;
}

.ps-matcher-auth {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin: 1.5rem 0 1rem;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	background: rgba(15, 118, 110, 0.08);
	border: 1px solid rgba(15, 118, 110, 0.16);
}

.ps-matcher-auth-text {
	margin: 0;
	flex: 1 1 220px;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--text-dark);
}

.ps-matcher-auth-btn.is-saving {
	opacity: 0.85;
	cursor: wait;
	pointer-events: none;
}

.ps-matcher-restart {
	display: block;
	margin-top: 1.15rem;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--text-light);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	transform: none;
}

.ps-matcher-restart[hidden] {
	display: none !important;
}

.ps-matcher-restart:disabled,
.ps-matcher-restart.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
	text-decoration: none;
}

.ps-matcher-restart:hover,
.ps-matcher-restart:focus,
.ps-matcher-restart:active {
	color: var(--text-dark);
	background: transparent;
	transform: none;
}

.ps-matcher-empty {
	margin: 0 0 1rem;
	color: var(--text-light);
	font-size: 0.92rem;
}

.ps-matcher-loading {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.35rem 0 0.15rem;
}

.ps-matcher-loading[hidden] {
	display: none !important;
}

.ps-matcher-loading-spinner {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 2px solid rgba(15, 118, 110, 0.2);
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: ps-matcher-spin 0.7s linear infinite;
}

.ps-matcher-loading-text {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-dark);
}

@keyframes ps-matcher-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Catalog hub placement */
.ps-hub-matcher {
	padding: 2.5rem 0 4rem;
}

.ps-hub-matcher .ps-matcher {
	margin-top: 0;
}

.ps-hub-matcher .ps-matcher-inner {
	max-width: none;
}

:root[data-theme="dark"] .ps-matcher-loading-spinner {
	border-color: rgba(45, 212, 191, 0.22);
	border-top-color: #2dd4bf;
}

:root[data-theme="dark"] .ps-matcher-icon {
	border-color: rgba(45, 212, 191, 0.22);
	background: rgba(45, 212, 191, 0.1);
	color: #2dd4bf;
}

:root[data-theme="dark"] .ps-matcher {
	border-color: var(--border-color);
	background: var(--surface-1);
	box-shadow: none;
}

:root[data-theme="dark"] .ps-matcher-progress-step {
	background: rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .ps-matcher-progress-step.is-active,
:root[data-theme="dark"] .ps-matcher-progress-step.is-current {
	background: #2dd4bf;
	box-shadow: none;
}

:root[data-theme="dark"] .ps-matcher-option {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.14);
	color: var(--text-dark);
}

:root[data-theme="dark"] .ps-matcher-option:hover,
:root[data-theme="dark"] .ps-matcher-option:focus,
:root[data-theme="dark"] .ps-matcher-option:active {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(45, 212, 191, 0.5);
}

:root[data-theme="dark"] .ps-matcher-auth {
	background: rgba(45, 212, 191, 0.1);
	border-color: rgba(45, 212, 191, 0.28);
}
