/* INTOUCH — Catalogue & Devis */

:root {
	--icd-primary: #0097e0;
	--icd-dark: #0a2540;
	--icd-border: #cbd5e1;
	--icd-muted: #64748b;
}

/* --- Masquage des montants ------------------------------------------ */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-page .woocommerce-Price-amount,
.woocommerce .woocommerce-price-suffix {
	display: none !important;
}

.woocommerce table.shop_table th.product-price,
.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table th.product-subtotal,
.woocommerce table.shop_table td.product-subtotal,
.woocommerce-cart .cart_totals tr.cart-subtotal,
.woocommerce-checkout table.shop_table tfoot tr.cart-subtotal,
.woocommerce-order-details tfoot tr.woocommerce-table__line-item.cart-subtotal,
.woocommerce-cart .cart-collaterals .cross-sells .price {
	display: none !important;
}

/* --- Masquage des montants : sélecteurs WoodMart --------------------- */
.wd-product .price,
.wd-product-cart-inner .price,
.wd-sticky-btn-cont .price,
.wd-quick-view-content .price,
.wd-search-results .price,
.wd-nav-product-cat .price,
.woocommerce-mini-cart__total,
.wd-dropdown-cart .woocommerce-mini-cart__total,
.widget_shopping_cart .total,
.wd-cart-subtotal,
.wd-order-summary .cart-subtotal,
.wd-buy-now-btn {
	display: none !important;
}

html.icd-modal-open {
	overflow: hidden;
}

/* --- Boutons --------------------------------------------------------- */
.icd-btn {
	display: block;
	width: 100%;
	padding: 0.85rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s ease;
}

.icd-btn--primary {
	background: var(--icd-primary);
	color: #fff !important;
}

.icd-btn--primary:hover {
	filter: brightness(0.92);
	color: #fff !important;
}

.icd-btn--secondary {
	background: transparent;
	color: var(--icd-dark) !important;
	border: 1px solid var(--icd-border);
}

.icd-btn--secondary:hover {
	border-color: var(--icd-primary);
	color: var(--icd-primary) !important;
}

/* --- Bouton "ma demande" (header) ------------------------------------ */
.icd-quote-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	font-weight: 600;
	color: var(--icd-dark);
}

.icd-quote-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--icd-primary);
	color: #fff;
	font-size: 12px;
	line-height: 1;
}

/* --- Modale ---------------------------------------------------------- */
.icd-modal {
	position: fixed;
	inset: 0;
	background: rgba(10, 37, 64, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 1rem;
}

.icd-modal[hidden],
.icd-modal.is-closed {
	display: none !important;
}

.icd-modal__box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 460px;
	width: 100%;
	padding: 2.4rem 2rem;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.icd-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.8rem;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
}

.icd-modal__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--icd-primary);
	color: #fff;
	font-size: 2rem;
	line-height: 64px;
}

.icd-modal__box h3 {
	color: var(--icd-dark);
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.icd-modal__box p {
	color: #515151;
	margin: 0 0 1.6rem;
}

.icd-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

/* --- Page de confirmation -------------------------------------------- */
.icd-thankyou {
	max-width: 640px;
	margin: 2rem auto;
	padding: 2.5rem 2rem;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	text-align: center;
	background: #fff;
}

.icd-thankyou__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--icd-primary);
	color: #fff;
	font-size: 2rem;
	line-height: 64px;
}

.icd-thankyou h2 {
	color: var(--icd-dark);
	margin: 0 0 0.75rem;
}

.icd-thankyou__text {
	color: #515151;
	margin: 0 0 1.75rem;
}

.icd-thankyou__info {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	text-align: left;
	margin-bottom: 1.75rem;
}

.icd-thankyou__item strong {
	display: block;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--icd-muted);
	margin-bottom: 0.15rem;
}

.icd-thankyou__btn {
	max-width: 320px;
	margin: 0 auto;
}

@media (max-width: 540px) {
	.icd-thankyou__info {
		grid-template-columns: 1fr;
	}
}

/* --- Formulaire intégré au panier ------------------------------------ */
.icd-inline-checkout {
	margin-top: 3rem;
}

.icd-inline-checkout h2 {
	color: var(--icd-dark);
}
