/**
 * PSB-FORMULARIOS-2026-CONFIGURADOR-VISUAL-005 / PLASTIFICADOS-VISUAL-REVERSO-001.
 * Scoped bajo .psb-config-visual-shell (piloto Plastificados).
 */

body.psb-pres-portal-shell .psb-config-visual-shell {
	min-width: 0;
}

body.psb-pres-portal-shell .psb-config-visual-shell__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(248px, 300px);
	gap: 1.15rem 1.35rem;
	align-items: start;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-config-visual-shell__config-zone {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

body.psb-pres-portal-shell .psb-config-visual-shell__price-zone {
	min-width: 0;
	position: sticky;
	top: 1rem;
}

body.psb-pres-portal-shell .psb-config-price-panel {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
}

/* Resumen funcional compacto (sin maqueta visual) */
body.psb-pres-portal-shell .psb-config-resumen {
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	background: #fafaf9;
	padding: 0.85rem 0.95rem;
}

body.psb-pres-portal-shell .psb-config-resumen__title {
	margin: 0 0 0.55rem;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-config-resumen__list {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

body.psb-pres-portal-shell .psb-config-resumen__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

body.psb-pres-portal-shell .psb-config-resumen__row dt {
	margin: 0;
	font-weight: 500;
	color: #78716c;
	flex-shrink: 0;
}

body.psb-pres-portal-shell .psb-config-resumen__row dd {
	margin: 0;
	font-weight: 600;
	color: #1c1917;
	text-align: right;
	word-break: break-word;
}

/* Secciones configurador */
body.psb-pres-portal-shell .psb-config-section {
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	background: #fafaf9;
	padding: 0.85rem 0.95rem 0.95rem;
}

body.psb-pres-portal-shell .psb-config-section__head {
	margin-bottom: 0.65rem;
}

body.psb-pres-portal-shell .psb-config-section__title {
	margin: 0;
	font-size: 11px;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #57534e;
}

body.psb-pres-portal-shell .psb-config-section__body {
	min-width: 0;
}

body.psb-pres-portal-shell .psb-config-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: flex-end;
}

body.psb-pres-portal-shell .psb-config-field-row--medidas {
	align-items: flex-end;
}

/* Opciones acabado — tarjetas compactas */
body.psb-pres-portal-shell .psb-config-option-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

@media (min-width: 720px) {
	body.psb-pres-portal-shell .psb-config-option-grid--acabado {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.psb-pres-portal-shell .psb-config-option-card {
	display: block;
	cursor: pointer;
}

body.psb-pres-portal-shell .psb-config-option-card__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
}

body.psb-pres-portal-shell .psb-config-option-card__inner {
	display: block;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #d6d3d1;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: #44403c;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	min-height: 44px;
	box-sizing: border-box;
}

body.psb-pres-portal-shell .psb-config-option-card:hover .psb-config-option-card__inner {
	border-color: #a8a29e;
}

body.psb-pres-portal-shell .psb-config-option-card__input:focus-visible + .psb-config-option-card__inner {
	outline: none;
	box-shadow: 0 0 0 3px rgba(41, 37, 36, 0.12);
}

body.psb-pres-portal-shell .psb-config-option-card__input:checked + .psb-config-option-card__inner {
	border-color: #44403c;
	background: #f5f5f4;
	box-shadow: 0 0 0 1px #44403c;
	color: #1c1917;
}

/* Panel precio integrado */
body.psb-pres-portal-shell .psb-config-price-panel .psb-pres-live-price,
body.psb-pres-portal-shell .psb-config-price-panel.psb-pres-live-price {
	margin: 0;
	border-radius: 12px;
	border: 1px solid #d6d3d1;
	background: linear-gradient(180deg, #fafaf9 0%, #fff 100%);
	box-shadow: 0 4px 20px rgba(28, 25, 23, 0.06);
	padding: 1.25rem 1.15rem 1.1rem;
}

body.psb-pres-portal-shell .psb-config-price-panel .psb-pres-live-price__amount {
	font-size: clamp(1.75rem, 2.5vw, 2.2rem);
}

body.psb-pres-portal-shell .psb-config-visual-shell .psb-pres-form2026__cards .psb-pres-pl-radio-grid,
body.psb-pres-portal-shell .psb-config-visual-shell .psb-pres-form2026__cards .psb-pres-fp-caras-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Móvil */
@media (max-width: 767px) {
	body.psb-pres-portal-shell .psb-config-visual-shell__layout {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	body.psb-pres-portal-shell .psb-config-visual-shell__config-zone {
		order: 1;
	}

	body.psb-pres-portal-shell .psb-config-visual-shell__price-zone {
		order: 2;
		position: static;
	}

	body.psb-pres-portal-shell .psb-config-option-grid--acabado {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	body.psb-pres-portal-shell .psb-config-visual-shell__layout {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
		gap: 1rem;
	}
}
