/* ==========================================================================
   Cotización WhatsApp — estilos reforzados para convivir con temas
   como BeTheme, que suelen sobreescribir display/float/overflow en
   divs, labels e inputs genéricos. Las propiedades de layout usan
   !important a propósito para blindarse frente a esos resets globales.
   ========================================================================== */

.cw-form-wrapper,
.cw-form-wrapper * {
	box-sizing: border-box !important;
}

.cw-form-wrapper {
	max-width: 720px;
	margin: 0 auto;
	width: 100%;
	float: none !important;
	overflow: visible !important;
	height: auto !important;
}

.cw-form-wrapper .cw-row {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 16px;
	margin-bottom: 16px;
	float: none !important;
	overflow: visible !important;
	height: auto !important;
}

.cw-form-wrapper .cw-field {
	flex: 1 1 240px;
	display: flex !important;
	flex-direction: column !important;
	min-width: 0;
	float: none !important;
	height: auto !important;
}

.cw-form-wrapper .cw-field-full {
	flex: 1 1 100%;
	display: flex !important;
	flex-direction: column !important;
	margin-bottom: 16px;
	float: none !important;
	height: auto !important;
}

.cw-form-wrapper label {
	font-weight: 600;
	margin: 0 0 6px 0 !important;
	font-size: 14px;
	line-height: 1.3 !important;
	float: none !important;
	display: block;
	width: auto;
}

.cw-form-wrapper input[type="text"],
.cw-form-wrapper input[type="email"],
.cw-form-wrapper input[type="number"],
.cw-form-wrapper textarea {
	padding: 10px 12px !important;
	border: 1px solid #ccc !important;
	border-radius: 6px !important;
	font-size: 15px !important;
	width: 100% !important;
	max-width: 100% !important;
	background: #fff !important;
	color: #222 !important;
	line-height: 1.4 !important;
	height: auto !important;
	float: none !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.cw-form-wrapper input:focus,
.cw-form-wrapper textarea:focus {
	outline: none !important;
	border-color: var(--cw-btn-color, #25D366) !important;
	box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.15) !important;
}

.cw-form-wrapper input.cw-invalid {
	border-color: #e02424 !important;
}

.cw-form-wrapper .cw-error {
	color: #e02424;
	font-size: 13px;
	min-height: 16px;
	margin-top: 4px;
	display: block !important;
	float: none !important;
}

.cw-form-wrapper .cw-general-error {
	color: #e02424;
	font-size: 14px;
	margin-top: 10px;
	text-align: center;
}

.cw-form-wrapper .cw-productos-list {
	display: flex !important;
	flex-flow: row wrap !important;
	gap: 10px 28px !important;
	margin-top: 8px;
	float: none !important;
	height: auto !important;
	overflow: visible !important;
}

.cw-form-wrapper .cw-producto-check {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 6px;
	cursor: pointer;
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 400;
	border: none !important;
	background: transparent !important;
	float: none !important;
	height: auto !important;
	width: auto !important;
}

.cw-form-wrapper .cw-producto-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	position: static !important;
	opacity: 1 !important;
	appearance: auto !important;
	-webkit-appearance: auto !important;
}

.cw-form-wrapper .cw-producto-nombre {
	font-size: 14px;
	white-space: nowrap;
	float: none !important;
}

.cw-form-wrapper .cw-submit-btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: var(--cw-btn-color, #25D366) !important;
	background-image: none !important;
	color: #fff !important;
	border: none !important;
	padding: 14px 28px !important;
	border-radius: 50px !important;
	font-size: 16px !important;
	font-family: inherit !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	width: 100% !important;
	max-width: 100% !important;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px;
	transition: background-color .2s ease, transform .05s ease !important;
	float: none !important;
	height: auto !important;
	min-height: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
	margin: 0 !important;
}

.cw-form-wrapper .cw-submit-btn:hover {
	background: var(--cw-btn-color, #25D366) !important;
	filter: brightness(0.92);
	color: #fff !important;
}

.cw-form-wrapper .cw-submit-btn:active {
	transform: scale(0.98);
}

.cw-form-wrapper .cw-submit-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
}

.cw-form-wrapper .cw-submit-btn.cw-loading .cw-btn-text::after {
	content: "...";
}

.cw-form-wrapper .cw-wa-icon {
	flex: 0 0 auto;
	width: 20px !important;
	height: 20px !important;
	display: block !important;
}

.cw-form-wrapper .cw-btn-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block !important;
	float: none !important;
}

@media (max-width: 400px) {
	.cw-form-wrapper .cw-submit-btn {
		font-size: 14px !important;
		padding: 12px 16px !important;
	}
}

@media (max-width: 600px) {
	.cw-form-wrapper .cw-row {
		flex-direction: column !important;
		gap: 0;
	}
	.cw-form-wrapper .cw-productos-list {
		grid-template-columns: 1fr !important;
	}
}
