/**
 * PSB-PORTAL-FORMS-HOTFIX-007 — medidas canónicas + tarjetas horizontales + diagrama sutil.
 */

/* —— Medidas: fila única largo × ancho —— */
body.psb-pres-portal-shell .psb-pres-form2026__grid--medidas {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 0.5rem 0.75rem;
	width: 100%;
	max-width: 100%;
}

body.psb-pres-portal-shell .psb-pres-form2026__medidas-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.65rem 1rem;
	width: 100%;
}

body.psb-pres-portal-shell .psb-config-field-row--medidas {
	align-items: flex-end;
	flex: 1 1 auto;
	min-width: 0;
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-field {
	flex: 1 1 0;
	min-width: 0;
	max-width: 148px;
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-field__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #57534e;
	margin-bottom: 0.3rem;
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-field__input {
	min-height: 44px;
	width: 100%;
	max-width: 148px;
	border-radius: 10px;
	border: 1px solid #d6d3d1;
	padding: 0.45rem 0.55rem;
	font-size: 14px;
	line-height: 1.25;
	color: #1c1917;
	background: #fff;
	box-sizing: border-box;
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-field__input:hover {
	border-color: #a8a29e;
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-field__input:focus {
	outline: none;
	border-color: #78716c;
	box-shadow: 0 0 0 3px rgba(41, 37, 36, 0.1);
}

body.psb-pres-portal-shell .psb-pres-fp-medidas-x {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	align-self: flex-end;
	width: 2rem;
	min-height: 44px;
	margin: 0;
	padding: 0 0 0.55rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1;
	color: #44403c;
}

body.psb-pres-portal-shell .psb-pres-form2026__medidas-hint {
	margin: 0.4rem 0 0;
}

/* Diagrama decorativo sutil */
body.psb-pres-portal-shell .psb-pres-form2026__medidas-diagram {
	flex: 0 0 auto;
	align-self: center;
	opacity: 0.5;
}

body.psb-pres-portal-shell .psb-pres-form2026-medidas-diagram {
	margin: 0;
	line-height: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026-medidas-diagram__svg {
	display: block;
	width: 64px;
	height: auto;
}

body.psb-pres-portal-shell .psb-pres-form2026-medidas-diagram__plane {
	fill: #f5f5f4;
	stroke: #d6d3d1;
	stroke-width: 1;
}

body.psb-pres-portal-shell .psb-pres-form2026-medidas-diagram__tick {
	stroke: #a8a29e;
	stroke-width: 1;
	stroke-linecap: round;
	fill: none;
}

/* REGA medidas embebidas */
body.psb-pres-portal-shell .psb-pres-rega-block--medidas .psb-pres-form2026__medidas-layout {
	margin-top: 0.15rem;
}

/* —— Tarjetas opción: bandera horizontal (icono izquierda) —— */
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-card__inner,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-fp-caras-card__inner,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-st-pelicula-card__inner,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-plegado-escenario-card__inner,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-tr-modalidad-card__inner,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-rega-tipo-card__inner,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-config-option-card__inner {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	padding: 12px 14px;
	min-height: 56px;
	text-align: left;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-card__icon,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-fp-caras-card__icon,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-st-pelicula-card__icon,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-plegado-escenario-card__icon,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-tr-modalidad-card__icon,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-rega-tipo-card__icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-card__text,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-fp-caras-card__text,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-st-pelicula-card__text,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-plegado-escenario-card__text,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-tr-modalidad-card__text,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-rega-tipo-card__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	text-align: left;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-card__title,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-fp-caras-card__title,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-st-pelicula-card__title,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-plegado-escenario-card__title,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-tr-modalidad-card__title,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-rega-tipo-card__title {
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
	color: #1c1917;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-card__desc,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-fp-caras-card__desc,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-st-pelicula-card__desc,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-plegado-escenario-card__desc,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-tr-modalidad-card__desc,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-rega-tipo-card__desc {
	font-size: 12px;
	line-height: 1.35;
	color: #78716c;
	font-weight: 500;
}

body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-card__svg,
body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-card__icon svg {
	width: 28px;
	height: 28px;
	max-width: 100%;
	max-height: 100%;
}

/* Responsive */
@media (max-width: 520px) {
	body.psb-pres-portal-shell .psb-pres-form2026__grid--medidas {
		flex-wrap: wrap;
	}

	body.psb-pres-portal-shell .psb-pres-fp-medidas-field {
		flex: 1 1 calc(50% - 1.5rem);
		max-width: none;
	}

	body.psb-pres-portal-shell .psb-pres-fp-medidas-field__input {
		max-width: 100%;
	}

	body.psb-pres-portal-shell .psb-pres-fp-medidas-x {
		order: 0;
		align-self: flex-end;
		padding-bottom: 0.55rem;
	}

	body.psb-pres-portal-shell .psb-pres-form2026__medidas-diagram {
		margin-left: auto;
	}
}

@media (max-width: 767px) {
	body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-pl-radio-grid,
	body.psb-pres-portal-shell .psb-pres-form2026__cards .psb-pres-fp-caras-grid {
		grid-template-columns: 1fr;
	}
}
