.rimece-quote-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.rimece-quote-modal.is-open {
	display: block;
}

.rimece-quote-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(238, 241, 242, 0.94);
}

.rimece-quote-modal__panel {
	position: relative;
	max-width: 460px;
	margin: 6vh auto;
	background: #fff;
	border-radius: 8px;
	padding: 24px 28px 28px;
	max-height: 88vh;
	overflow-y: auto;
	font-family: inherit;
	box-shadow: 0 4px 20px rgba(1, 15, 20, 0.12);
	border: 1px solid #e6eaea;
	color-scheme: light;
}

/* Header */
.rimece-quote-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

#rimece-quote-title {
	margin: 0;
	color: #013b5d;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.rimece-quote-modal__close {
	flex: 0 0 auto !important;
	background: #f3f5f6 !important;
	border: none !important;
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	font-size: 20px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	color: #6b7679 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	text-transform: none !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.rimece-quote-modal__close:hover {
	background: #e6eceb !important;
	color: #0c8d79 !important;
}

/* Progreso */
.rimece-quote-progress {
	height: 5px;
	background: #eef1f2;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 6px;
}

.rimece-quote-progress__bar {
	height: 100%;
	width: 0;
	background: #0c8d79;
	border-radius: 3px;
	transition: width 0.25s ease;
}

.rimece-quote-step-count {
	margin: 0 0 2px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.4px;
	color: #9aa5ab;
}

.rimece-quote-modal__context {
	margin: 0 0 18px;
	color: #0c8d79;
	font-weight: 500;
	font-size: 12.5px;
	min-height: 16px;
}

/* Pasos */
.rimece-quote-step {
	display: none;
}

.rimece-quote-step.is-active {
	display: block;
	animation: rimece-fade 0.2s ease;
}

@keyframes rimece-fade {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.rimece-quote-step__question {
	display: block;
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
}

.rimece-quote-step__nota {
	display: inline-block;
	margin-top: 4px;
	font-size: 12.5px;
	font-weight: 400;
	color: #6b7679;
}

/* Desplegables (categoría / producto) */
.rimece-quote-select {
	width: 100% !important;
	padding: 13px 36px 13px 14px !important;
	border: 1.5px solid #d9e2e4 !important;
	border-radius: 5px !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	height: auto !important;
	min-height: 0 !important;
	font-family: inherit !important;
	background-color: #fff !important;
	color: #1a1a1a !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	color-scheme: light;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	margin: 0 !important;
}

.rimece-quote-select::-ms-expand {
	display: none;
}

.rimece-quote-select:focus {
	outline: none !important;
	border-color: #0c8d79 !important;
}

/* Opciones de cantidad: lista vertical, una por fila */
.rimece-quote-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rimece-quote-option {
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	text-align: left !important;
	padding: 13px 16px !important;
	border: 1.5px solid #d9e2e4 !important;
	border-radius: 6px !important;
	background: #fbfcfc !important;
	color: #333 !important;
	font-size: 14.5px !important;
	font-family: inherit !important;
	font-weight: 400 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	cursor: pointer !important;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
	margin: 0 0 8px !important;
}

.rimece-quote-option::before {
	content: '';
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-right: 12px;
	border-radius: 50%;
	border: 1.5px solid #b9c3c6;
	box-sizing: border-box;
}

.rimece-quote-option:hover {
	border-color: #0c8d79 !important;
}

.rimece-quote-option.is-selected {
	background: #eaf6f3 !important;
	border-color: #0c8d79 !important;
	color: #0a5c4f !important;
	font-weight: 600 !important;
}

.rimece-quote-option.is-selected::before {
	border-color: #0c8d79;
	border-width: 5px;
}

/* Campos de contacto */
.rimece-quote-field {
	margin-bottom: 14px;
}

.rimece-quote-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: #555;
}

.rimece-quote-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #d9e2e4;
	border-radius: 5px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	box-sizing: border-box;
}

.rimece-quote-field input:focus {
	outline: none;
	border-color: #0c8d79;
}

/* Resumen final */
.rimece-quote-summary {
	margin: 0;
	background: #f7f9f9;
	border-radius: 6px;
	padding: 4px 16px;
}

.rimece-quote-summary dt {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #9aa5ab;
	margin-top: 12px;
}

.rimece-quote-summary dd {
	margin: 2px 0 0;
	font-size: 14.5px;
	font-weight: 600;
	color: #1a1a1a;
	padding-bottom: 12px;
	border-bottom: 1px solid #e8ecec;
}

.rimece-quote-summary dd:last-child {
	border-bottom: none;
	padding-bottom: 12px;
}

.rimece-quote-error {
	color: #c0392b;
	font-size: 13px;
	margin: 12px 0 0;
}

/* Navegación: Atrás (texto/ghost) claramente distinto de Siguiente (sólido) */
.rimece-quote-nav {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid #eef1f2;
}

.rimece-quote-back {
	flex: 0 0 auto !important;
	padding: 10px 4px !important;
	background: none !important;
	color: #6b7679 !important;
	border: none !important;
	border-radius: 0 !important;
	font-weight: 600 !important;
	font-size: 13.5px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	cursor: pointer !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.rimece-quote-back:hover {
	color: #0c8d79 !important;
	text-decoration: underline !important;
}

.rimece-quote-next {
	flex: 1 !important;
	padding: 13px !important;
	background: #0c8d79 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 5px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: 13px !important;
	letter-spacing: 0.4px !important;
	cursor: pointer !important;
	box-shadow: 0 2px 6px rgba(12, 141, 121, 0.35) !important;
	margin: 0 !important;
}

.rimece-quote-next:hover {
	background: #0a7565 !important;
}

/* Enviar: mismo verde esmeralda que Siguiente — la distinción es que solo
   aparece en el paso de resumen, no el color. */
.rimece-quote-submit {
	flex: 1 !important;
	padding: 13px !important;
	background: #0c8d79 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 5px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: 13px !important;
	letter-spacing: 0.4px !important;
	cursor: pointer !important;
	box-shadow: 0 2px 6px rgba(12, 141, 121, 0.35) !important;
	margin: 0 !important;
}

.rimece-quote-submit:hover {
	background: #0a7565 !important;
}

.rimece-quote-submit:disabled {
	opacity: 0.6 !important;
	cursor: default !important;
	box-shadow: none !important;
}

body.rimece-quote-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.rimece-quote-modal__panel {
		margin: 0;
		max-width: 100%;
		min-height: 100vh;
		border-radius: 0;
		padding: 20px 20px 24px;
	}
}
