/* ==========================================================================
   ROX 950 Toolkit — Frontend: campos de personalización en producto
   ========================================================================== */

.rox950-fields-container,
.rox950-fields-container *,
.rox950-fields-container *::before,
.rox950-fields-container *::after {
	box-sizing: border-box !important;
}

.rox950-fields-container {
	margin: 0 0 16px;
	padding: 16px 18px;
	background: #fafafa;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.rox950-fields-container__note {
	margin: 0 0 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e5e7eb;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.5;
}

.rox950-product-field {
	margin: 0 0 16px;
}

.rox950-product-field:last-child {
	margin-bottom: 0;
}

.rox950-product-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
	color: #1d2327;
}

.rox950-product-field label .required {
	color: #e00;
	text-decoration: none;
	margin-left: 2px;
}

.rox950-field-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.rox950-field-label-row label {
	margin-bottom: 0;
}

.rox950-guide-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	padding: 0;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1;
	color: #2271b1;
	background: #eaf2fa;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.rox950-guide-trigger:hover,
.rox950-guide-trigger:focus {
	background: #2271b1;
	color: #fff;
	outline: none;
}

.rox950-product-field__input {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0;
	padding: 8px 10px;
	font-size: 14px;
	line-height: 1.4;
	color: #1d2327;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
	transition: border-color .15s, box-shadow .15s;
	height: auto;
}

.rox950-product-field__input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34,113,177,.15);
	outline: none;
}

.rox950-product-field__hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.4;
}

/* ==========================================================================
   Modal informativo (guía de medida)
   ========================================================================== */

.rox950-modal,
.rox950-modal *,
.rox950-modal *::before,
.rox950-modal *::after {
	box-sizing: border-box !important;
}

.rox950-modal[hidden] {
	display: none !important;
}

.rox950-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.rox950-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.55);
}

.rox950-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	padding: 28px 24px 24px;
	box-sizing: border-box;
	box-shadow: 0 10px 40px rgba(0,0,0,.2);
}

.rox950-modal__dialog h3 {
	margin: 0 0 14px;
	font-size: 16px;
	color: #1d2327;
}

.rox950-modal__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 14px;
}

.rox950-modal__text {
	margin: 0;
	font-size: 12px !important;
	font-style: italic;
	line-height: 1.6;
	color: #374151;
}

.rox950-modal__close {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	left: auto !important;
	bottom: auto !important;
	float: none !important;
	margin: 0 !important;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
	color: #6b7280;
	background: none;
	border: none;
	border-radius: 50%;
	cursor: pointer;
}

.rox950-modal__close:hover {
	background: #f3f4f6;
	color: #1d2327;
}

body.rox950-modal-open {
	overflow: hidden;
}
