/**
 * Copy Inquiry Products - front end styles.
 */

/* Hide add to cart on inquiry products, whatever renders it. */
.cip-inquiry-product form.cart,
.cip-inquiry-product .elementor-widget-woocommerce-product-add-to-cart,
.cip-inquiry-product .elementor-widget-wc-add-to-cart,
.cip-inquiry-product .single_add_to_cart_button,
.cip-inquiry-product .woocommerce-variation-add-to-cart {
	display: none !important;
}

/*
 * Visibility helpers. Add one of these as a CSS class in Elementor's
 * Advanced tab to show a widget only on inquiry products, or only on
 * normal ones. Useful when the Add to Cart widget carries the price:
 * put a Product Price widget alongside it with .cip-inquiry-only.
 */
body:not(.cip-inquiry-product) .cip-inquiry-only {
	display: none !important;
}

body.cip-inquiry-product .cip-normal-only {
	display: none !important;
}

/* Collapse the price when the product is set to hide it. */
.cip-hide-price .elementor-widget-woocommerce-product-price,
.cip-hide-price .elementor-widget-wc-product-price,
.cip-hide-price .summary > .price,
.cip-hide-price .product .price:empty {
	display: none !important;
}

.cip-form {
	margin: 24px 0;
	max-width: 620px;
}

.cip-form__notice {
	background: #FDEC09;
	color: #1F2937;
	padding: 14px 18px;
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.55;
	border-radius: 4px;
}

.cip-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.cip-field--wide {
	grid-column: 1 / -1;
}

@media (max-width: 600px) {
	.cip-form__fields {
		grid-template-columns: minmax(0, 1fr);
	}
}

.cip-field__label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 500;
	color: #1F2937;
}

.cip-field__required {
	color: #b91c1c;
}

.cip-field__input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	color: #1F2937;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.cip-field__input:focus {
	outline: none;
	border-color: #1F2937;
	box-shadow: 0 0 0 3px rgba(31, 41, 55, .12);
}

textarea.cip-field__input {
	min-height: 110px;
	resize: vertical;
}

.cip-field.has-error .cip-field__input {
	border-color: #dc2626;
	background: #fef7f7;
}

.cip-field.has-error .cip-field__input:focus {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .14);
}

.cip-field__error {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: #b91c1c;
	min-height: 0;
}

.cip-field__error:empty {
	display: none;
}

.cip-field--consent {
	margin: 18px 0 0;
}

.cip-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #1F2937;
	cursor: pointer;
}

.cip-consent input {
	margin: 3px 0 0;
	flex: 0 0 auto;
}

.cip-consent a {
	text-decoration: underline;
}

/* Honeypot. Hidden from people, reachable by naive bots. */
.cip-form__hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.cip-form__submit {
	margin: 22px 0 0;
	padding: 14px 30px;
	border: 0;
	border-radius: 4px;
	background: #1F2937;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: opacity .15s ease;
}

.cip-form__submit:hover {
	opacity: .88;
}

.cip-form__submit:disabled {
	opacity: .5;
	cursor: default;
}

.cip-form__message {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 15px;
	line-height: 1.5;
}

.cip-form__message:not(.is-success):not(.is-error) {
	display: none;
}

.cip-form__message.is-success {
	background: #ecfdf5;
	color: #065f46;
}

.cip-form__message.is-error {
	background: #fef2f2;
	color: #991b1b;
}

.cip-loop-button {
	display: inline-block;
}
