/* PS Woo, modulo CTA: botones Agendar demo y Cotizar y formulario.
 * Portado de bd-product-cta 2.4.3 con el prefijo ps-woo-. Los botones usan la
 * clase .elementor-button del tema; el color sale de un bloque en linea
 * generado desde los ajustes (PS_Woo_CTA_Botones::css_colores()). */

.ps-woo-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* El contenedor es <span> en la ficha (va dentro de <p class="price">) y <div>
 * en las tarjetas (va despues del enlace de la tarjeta). */
span.ps-woo-buttons {
	display: flex;
}

li.product .ps-woo-buttons,
.ps-woo-buttons--loop {
	justify-content: center;
}

.ps-woo-buttons--loop {
	margin: 10px 0 0;
}

/* Frase de presentacion despues del precio (regla 2.3). */
.ps-woo-presentacion {
	display: block;
	margin-top: 4px;
	font-size: 0.95rem;
	font-weight: 400;
	color: #171717;
}

/* Native <button> reset so it inherits the .elementor-button look
 * instead of the browser's default button chrome. */
.ps-woo-btn,
.ps-woo-btn:link,
.ps-woo-btn:visited,
.ps-woo-btn:hover,
.ps-woo-btn:active,
.ps-woo-btn:focus {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none !important;
	transition: background-color 0.2s ease, filter 0.2s ease;
}

.ps-woo-btn:focus-visible {
	outline: 2px solid #061033;
	outline-offset: 2px;
}

.ps-woo-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- */
/* Form page ([bd_cta_form])                                         */
/* ---------------------------------------------------------------- */

.ps-woo-page-form {
	max-width: 620px;
}

.ps-woo-fieldset {
	border: none;
	padding: 0;
	margin: 0 0 28px;
}

.ps-woo-legend {
	font-size: 15px;
	font-weight: 700;
	color: #061033;
	padding: 0 0 10px;
	margin: 0;
	width: 100%;
}

.ps-woo-required {
	color: #c0392b;
}

.ps-woo-hint {
	font-size: 13px;
	color: #666;
	margin: -4px 0 12px;
}

/* Type selector , checkboxes styled as cards, both selectable */
.ps-woo-type-options {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.ps-woo-type-card {
	position: relative;
	display: flex;
	align-items: center;
	border: 2px solid #e2e5ea;
	border-radius: 10px;
	padding: 16px 16px 16px 44px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ps-woo-type-card:hover {
	border-color: #b9c3d1;
}

.ps-woo-type-card input[type="checkbox"] {
	position: absolute;
	top: 16px;
	left: 14px;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #1D71B8;
}

.ps-woo-type-card:has(input:checked),
.ps-woo-type-card.is-checked {
	border-color: #1D71B8;
	background-color: #f2f7fc;
}

.ps-woo-type-card__title {
	font-weight: 700;
	color: #061033;
	font-size: 15px;
}

/* Product picker */
.ps-woo-product-picker {
	display: flex;
	gap: 8px;
}

.ps-woo-product-picker input {
	flex: 1;
}

.ps-woo-product-add-btn {
	appearance: none;
	border: 2px solid #1D71B8;
	background: #fff;
	color: #1D71B8;
	font-weight: 600;
	font-size: 14px;
	padding: 0 18px;
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ps-woo-product-add-btn:hover {
	background: #1D71B8;
	color: #fff;
}

.ps-woo-product-chips-wrap {
	margin: 12px 0 0;
	padding: 16px 18px !important;
	border: 1px solid #e2e5ea;
	border-radius: 10px;
	background: #fafbfc;
}

.ps-woo-product-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
}

.ps-woo-product-chips-empty {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 14.5px;
	color: #93999f;
	font-style: italic;
}

/* The theme has aggressive list resets (`ul li:first-child{padding:0}`,
 * `ul li{padding:8px 0}`) that beat a plain `.ps-woo-chip` class on
 * specificity , the padding below was silently getting zeroed on the
 * first (often only) chip without !important, which is what made a
 * single selected product look "stuck to the edge" no matter how much
 * padding we declared. Same story for [hidden] below: the theme's own
 * `p` styling overrides the UA default `[hidden]{display:none}`. */
.ps-woo-chip {
	display: flex !important;
	align-items: center;
	gap: 10px;
	background: #eef2f7;
	border: 1px solid rgba(6, 16, 51, 0.08);
	color: #061033;
	border-radius: 999px !important;
	padding: 12px 12px 12px 20px !important;
	margin: 0 !important;
	font-size: 16px;
	font-weight: 600;
}

.ps-woo-product-chips-empty[hidden] {
	display: none !important;
}

.ps-woo-chip__remove {
	appearance: none;
	border: none;
	background: rgba(6, 16, 51, 0.12);
	color: #061033;
	width: 30px;
	height: 30px;
	min-width: 30px;
	border-radius: 50%;
	line-height: 1;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
	flex-shrink: 0;
}

.ps-woo-chip__remove:hover {
	background: #c0392b;
	color: #fff;
}

/* Contact fields */
.ps-woo-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 560px) {
	.ps-woo-grid,
	.ps-woo-type-options {
		grid-template-columns: 1fr;
	}
}

.ps-woo-field {
	display: block;
	margin-bottom: 16px;
}

.ps-woo-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #171717;
}

.ps-woo-phone-row {
	display: flex;
	gap: 8px;
}

.ps-woo-phone-row input {
	flex: 1;
	min-width: 0;
}

/* Country code combobox , shows only the code when closed (that's all
 * that's sent to the CRM); the open list shows full country names. */
.ps-woo-country-select {
	position: relative;
	flex: 0 0 auto;
}

.ps-woo-country-trigger {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	width: 92px;
	padding: 11px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	font-size: 16px;
	font-weight: 400 !important; /* Elementor's kit-wide `.elementor-kit-{id} button` rule (0,1,1) bolds every <button> on the site , beats this plain class (0,1,0) without !important. */
	font-family: inherit;
	color: #171717;
	cursor: pointer;
	box-sizing: border-box;
}

.ps-woo-country-trigger:focus,
.ps-woo-country-trigger[aria-expanded="true"] {
	outline: none;
	border-color: #1D71B8;
	box-shadow: 0 0 0 3px rgba(29, 113, 184, 0.15);
}

.ps-woo-country-trigger__arrow {
	font-size: 10px;
	color: #666;
}

.ps-woo-country-custom {
	flex: 0 0 auto;
	width: 84px;
	padding: 11px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 400;
	box-sizing: border-box;
	font-family: inherit;
}

.ps-woo-country-custom:focus {
	outline: none;
	border-color: #1D71B8;
	box-shadow: 0 0 0 3px rgba(29, 113, 184, 0.15);
}

.ps-woo-country-list {
	position: absolute;
	z-index: 20;
	top: calc(100% + 4px);
	left: 0;
	min-width: 220px;
	max-height: 260px;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(6, 16, 51, 0.15);
}

.ps-woo-country-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 5px;
	font-size: 14.5px;
	color: #171717;
	cursor: pointer;
}

.ps-woo-country-list li:hover {
	background: #f2f7fc;
}

.ps-woo-country-list li[aria-selected="true"] {
	background: #eef2f7;
	font-weight: 600;
}

.ps-woo-country-list__code {
	font-weight: 700;
	color: #1D71B8;
	min-width: 44px;
}

.ps-woo-field input,
.ps-woo-field select,
.ps-woo-field textarea,
.ps-woo-product-picker input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 16px; /* >=16px prevents iOS Safari auto-zoom on focus */
	box-sizing: border-box;
	font-family: inherit;
}

.ps-woo-field input:focus,
.ps-woo-field textarea:focus,
.ps-woo-product-picker input:focus {
	outline: none;
	border-color: #1D71B8;
	box-shadow: 0 0 0 3px rgba(29, 113, 184, 0.15);
}

.ps-woo-field input[aria-invalid="true"] {
	border-color: #c0392b;
}

.ps-woo-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ps-woo-field-error {
	color: #c0392b;
	font-size: 12.5px;
	margin: 5px 0 0;
	min-height: 0;
}

.ps-woo-field-error:empty {
	display: none;
}

.ps-woo-form__error {
	color: #c0392b;
	background: #fdf0ef;
	border: 1px solid #f3c8c4;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13.5px;
	margin: 0 0 16px;
	display: none;
}

.ps-woo-form__error.is-visible {
	display: block;
}

.ps-woo-form__submit {
	width: 100%;
	position: relative;
	padding: 14px 24px;
	font-size: 15.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.ps-woo-form__submit[disabled] {
	opacity: 0.75;
	cursor: not-allowed;
}

.ps-woo-btn__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ps-woo-spin 0.7s linear infinite;
}

.ps-woo-form__submit.is-loading .ps-woo-btn__spinner {
	display: inline-block;
}

@keyframes ps-woo-spin {
	to { transform: rotate(360deg); }
}

.ps-woo-form__success {
	text-align: center;
	color: #061033;
	max-width: 620px;
	padding: 32px 20px;
	background: #f2f7fc;
	border-radius: 12px;
}

.ps-woo-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #77C043;
	color: #fff;
	font-size: 24px;
	margin-bottom: 12px;
}

.ps-woo-form__success p {
	margin: 0 0 6px;
}

/* Algunos temas pisan el display:none del atributo hidden. */
.ps-woo-form__success[hidden],
.ps-woo-country-list[hidden],
.ps-woo-country-custom[hidden],
.ps-woo-form[hidden] {
	display: none !important;
}
