/*===============================================================================================================
                                   HHS — FORMULARIO DE FACTURACIÓN CFDI
=================================================================================================================*/

/* El precio público ya contiene IVA y el ajuste comercial interno. */
.hhs-price-tax-note {
	font-size: 0 !important;
}

.hhs-price-tax-note::after {
    content: "Precios incluyen IVA";
    font-size: 15px;
}

.hhs-invoice {
	width: 100%;
	margin: 30px 0;
	padding: 28px;
	color: #173747;
	background: linear-gradient(135deg, #f4f9fc 0%, #ffffff 48%);
	border: 1px solid #cfe1eb;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(23, 55, 71, 0.08);
}

.hhs-invoice__heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 0;
}

.hhs-invoice__intro {
	flex: 1 1 auto;
	min-width: 0;
}

.hhs-invoice__icon {
	display: inline-flex;
	flex: 0 0 50px;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	color: #fff;
	background: #0878b8;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.hhs-invoice h2,
.hhs-invoice h3 {
	color: #173747;
}

.hhs-invoice h2 {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.25;
}

.hhs-invoice h3 {
	margin: 25px 0 14px;
	padding-bottom: 9px;
	border-bottom: 1px solid #dce8ee;
	font-size: 17px;
}

.hhs-invoice p {
	margin: 0;
	color: #5d707a;
	line-height: 1.55;
}

.hhs-invoice__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px 18px;
}

.hhs-invoice__field {
	min-width: 0;
}

.hhs-invoice__field label {
	display: block;
	margin-bottom: 6px;
	color: #294b5b;
	font-size: 13px;
	font-weight: 700;
}

.hhs-invoice__field input,
.hhs-invoice__field select {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 9px 12px;
	color: #173747;
	background: #fff;
	border: 1px solid #bfcfd7;
	border-radius: 7px;
	box-shadow: none;
	font: inherit;
	text-align: left;
}

.hhs-invoice__field select {
	max-width: 100%;
	padding-right: 38px;
	line-height: 1.4;
	text-align: left !important;
	text-align-last: left;
	direction: ltr;
}

.hhs-invoice__field select option {
	padding: 8px 12px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	text-align: left !important;
	direction: ltr;
}

.hhs-invoice__field input:focus,
.hhs-invoice__field select:focus {
	border-color: #0878b8;
	box-shadow: 0 0 0 3px rgba(8, 120, 184, 0.14);
	outline: none;
}

.hhs-invoice__field.is-invalid input,
.hhs-invoice__field.is-invalid select {
	border-color: #c83d50;
	background: #fffafb;
}

.hhs-invoice__field-error {
	color: #a52c3d !important;
	font-weight: 700;
}

.hhs-invoice__field input[readonly] {
	color: #536872;
	background: #edf3f6;
}

.hhs-invoice__field small,
.hhs-invoice__help {
	display: block;
	margin-top: 5px;
	color: #6e8089;
	font-size: 12px;
	line-height: 1.45;
}

.hhs-invoice__help {
	margin: -5px 0 14px !important;
}

.hhs-invoice__consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 22px 0 17px;
	color: #425d69;
	font-size: 13px;
	line-height: 1.5;
}

.hhs-invoice__consent input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.hhs-invoice__toggle,
.hhs-invoice__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	color: #fff;
	background: #0878b8;
	border: 1px solid #0878b8;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hhs-invoice__toggle {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 20px;
	white-space: nowrap;
}

.hhs-invoice__toggle:hover,
.hhs-invoice__toggle:focus-visible,
.hhs-invoice__submit:hover,
.hhs-invoice__submit:focus-visible {
	color: #fff;
	background: #075f91;
	border-color: #075f91;
	box-shadow: 0 6px 16px rgba(8, 120, 184, 0.2);
}

.hhs-invoice__panel,
.hhs-invoice__success,
.hhs-invoice__error {
	margin-top: 22px;
}

.hhs-invoice__panel[hidden] {
	display: none !important;
}

.hhs-invoice__success,
.hhs-invoice__error {
	padding: 15px 17px;
	border-radius: 8px;
}

.hhs-invoice__error strong {
	display: block;
}

.hhs-invoice__error ul {
	margin: 8px 0 0 18px;
	padding: 0;
}

.hhs-invoice__error li + li {
	margin-top: 3px;
}

.hhs-invoice__consent.is-invalid {
	padding: 10px 12px;
	color: #902536;
	background: #fff1f3;
	border: 1px solid #efc3ca;
	border-radius: 7px;
}

.hhs-invoice__success {
	color: #155f3d;
	background: #eefaf4;
	border: 1px solid #bde3d0;
}

.hhs-invoice__success p + p {
	margin-top: 8px;
}

.hhs-invoice__support {
	padding-top: 10px;
	border-top: 1px solid #c9e6d7;
}

.hhs-invoice__support a {
	color: #0878b8;
	font-weight: 800;
	text-decoration: underline;
}

.hhs-invoice__error {
	margin-bottom: 18px;
	color: #902536;
	background: #fff1f3;
	border: 1px solid #efc3ca;
}

.hhs-invoice__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/*====================================================================================================
                              PRECIO FINAL ÚNICO EN CARRITO Y CHECKOUT
====================================================================================================*/

tr.cart-subtotal,
tr.tax-total,
tr.tax-rate,
tr[class*="tax-rate"],
tr.fee,
tr[class*="fee"],
.cart_totals [class*="tax-rate"],
.fusion-woo-cart-totals [class*="tax-rate"],
.woocommerce-form-coupon-toggle,
form.checkout_coupon,
.coupon,
.wp-block-woocommerce-checkout-order-summary-coupon-form-block,
.wp-block-woocommerce-cart-order-summary-coupon-form-block,
.wc-block-components-totals-coupon,
.wp-block-woocommerce-checkout-order-summary-subtotal-block,
.wp-block-woocommerce-cart-order-summary-subtotal-block,
.wp-block-woocommerce-checkout-order-summary-taxes-block,
.wp-block-woocommerce-cart-order-summary-taxes-block,
.wp-block-woocommerce-checkout-order-summary-fee-block,
.wp-block-woocommerce-cart-order-summary-fee-block {
	display: none !important;
}

@media (max-width: 800px) {
	.hhs-invoice {
		margin: 22px 0;
		padding: 20px 16px;
	}

	.hhs-invoice__heading {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 12px;
	}

	.hhs-invoice__intro {
		flex-basis: calc(100% - 54px);
	}

	.hhs-invoice__icon {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
	}

	.hhs-invoice h2 {
		font-size: 20px;
	}

	.hhs-invoice__grid {
		grid-template-columns: 1fr;
	}

	.hhs-invoice__toggle,
	.hhs-invoice__submit {
		width: 100%;
	}
}
