.psp-configurator {
	max-width: 640px;
	margin: 1em 0;
	font-family: inherit;
}

.psp-configurator__form {
	padding: 1.5em;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fafafa;
}

.psp-field {
	margin-bottom: 1.2em;
}

.psp-field__label {
	display: flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	margin-bottom: 0.4em;
	font-size: 0.95em;
}

.psp-field__prefix {
	color: #999;
	font-size: 0.9em;
	min-width: 1.2em;
}

.psp-field__hint {
	color: #aaa;
	font-size: 0.85em;
	font-weight: 400;
}

.psp-field__input,
.psp-field__select {
	width: 100%;
	padding: 0.6em 0.8em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	background: #fff;
	box-sizing: border-box;
}

.psp-field__input:focus,
.psp-field__select:focus {
	outline: 2px solid #3F57B2;
	outline-offset: -1px;
}

.psp-field__error {
	display: block;
	color: #d63638;
	font-size: 0.85em;
	margin-top: 0.3em;
	min-height: 1em;
}

.psp-required {
	color: #d63638;
}

.psp-fibre-toggle {
	display: flex;
	gap: 1.5em;
	margin: 0.5em 0;
}

.psp-fibre-toggle label {
	display: flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 400;
	cursor: pointer;
}

.psp-fibre-thickness {
	margin-top: 0.5em;
}

.psp-configurator__order {
	display: flex;
	gap: 1em;
	align-items: flex-end;
	margin-top: 1.5em;
}

.psp-configurator__order .psp-field--qty {
	flex: 0 0 100px;
}

.psp-configurator__order .psp-field--price {
	flex: 1;
}

.psp-price-display {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.6em 0.8em;
	background: #f0f4ff;
	border: 1px solid #3F57B2;
	border-radius: 4px;
	font-size: 1.2em;
	font-weight: 700;
	color: #3F57B2;
	min-height: 2.8em;
	box-sizing: border-box;
}

.psp-price__value {
	flex: 1;
}

.psp-price__loading {
	display: none;
}

.psp-spinner {
	width: 1.2em;
	height: 1.2em;
	animation: psp-rotate 1s linear infinite;
	stroke: #3F57B2;
}

@keyframes psp-rotate {
	100% { transform: rotate(360deg); }
}

.psp-configurator__errors {
	color: #d63638;
	background: #fcf0f1;
	padding: 0.8em 1em;
	border-radius: 4px;
	margin-bottom: 1em;
	font-size: 0.9em;
}

.psp-configurator__errors p {
	margin: 0 0 0.3em;
}

.psp-add-to-cart {
	margin-top: 1em;
}

.psp-btn-add-to-cart {
	width: 100%;
	padding: 0.8em 1.5em;
	font-size: 1.1em;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	background: #3F57B2;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s;
}

.psp-btn-add-to-cart:hover {
	background: #2c3f8a;
}

.psp-btn-add-to-cart:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
	.psp-configurator__order {
		flex-direction: column;
		gap: 0.8em;
	}
	.psp-configurator__order .psp-field--qty {
		flex: 1;
	}
}

/* Porto / Elementor compatibility — scoped overrides */
.woocommerce div.product .psp-configurator form.cart {
	display: none; /* hide default WC add-to-cart when our configurator is active */
}

.psp-configurator .psp-field__select,
.psp-configurator .psp-field__input {
	font-family: inherit;
	color: inherit;
}
