/* TMW Frete sob Cotação — aviso no carrinho e no checkout.
   Coerente com o Woodmart: usa as variáveis do tema quando existem. */

.tmw-fc-aviso {
	display: block;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid #f0d58c;
	border-left: 4px solid #e8a33d;
	border-radius: var(--wd-brd-radius, 5px);
	background: #fdf8ec;
	text-align: left;
}

.tmw-fc-aviso .tmw-fc-texto {
	margin: 0 0 14px;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #5b4a2a;
}

.tmw-fc-aviso .tmw-whats-cotacao {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	padding: 11px 20px;
	border: 0;
	border-radius: var(--wd-brd-radius, 5px);
	background: #25d366;
	color: #fff;
	font-family: var(--wd-text-font, inherit);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.tmw-fc-aviso .tmw-whats-cotacao:hover,
.tmw-fc-aviso .tmw-whats-cotacao:focus {
	background: #1da851;
	color: #fff;
	text-decoration: none;
}

.tmw-fc-aviso .tmw-whats-cotacao:active {
	transform: translateY(1px);
}

.tmw-fc-aviso .tmw-whats-cotacao:focus-visible {
	outline: 2px solid #0b5c2c;
	outline-offset: 2px;
}

/* Ícone do WhatsApp em SVG inline, sem dependência de fonte de ícones. */
.tmw-fc-aviso .tmw-fc-icone {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91C21.96 6.45 17.5 2 12.04 2zm0 18.15h-.01a8.2 8.2 0 0 1-4.18-1.15l-.3-.18-3.11.82.83-3.04-.2-.31a8.18 8.18 0 0 1-1.26-4.38c0-4.54 3.7-8.23 8.24-8.23 2.2 0 4.26.86 5.82 2.41a8.18 8.18 0 0 1 2.41 5.83c0 4.54-3.7 8.23-8.24 8.23zm4.52-6.16c-.25-.12-1.47-.72-1.69-.81-.23-.08-.39-.12-.56.13-.17.25-.64.81-.79.97-.14.17-.29.19-.54.06-.25-.12-1.05-.39-2-1.23-.74-.66-1.24-1.47-1.38-1.72-.15-.25-.02-.39.11-.51.11-.11.25-.29.37-.43.12-.15.17-.25.25-.42.08-.17.04-.31-.02-.43-.06-.12-.56-1.34-.76-1.84-.2-.48-.41-.41-.56-.42h-.48c-.17 0-.43.06-.66.31-.23.25-.87.85-.87 2.07s.89 2.4 1.02 2.57c.12.17 1.75 2.67 4.23 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.47-.07 1.47-.6 1.68-1.18.21-.58.21-1.07.14-1.18-.06-.1-.23-.17-.48-.29z'/%3E%3C/svg%3E");
}

/* Celular: botão em largura total, mais fácil de acertar com o dedo. */
@media (max-width: 768.98px) {
	.tmw-fc-aviso {
		padding: 14px;
	}

	.tmw-fc-aviso .tmw-whats-cotacao {
		display: flex;
		width: 100%;
		padding: 13px 16px;
		font-size: 15px;
	}
}

/* O Elementor Pro embrulha a mensagem nas classes dele; garante que o nosso
   bloco não herde centralização nem margens estranhas. */
.e-checkout-message .tmw-fc-aviso,
.woocommerce-shipping-totals .tmw-fc-aviso,
.woocommerce-cart-no-shipping-available-html .tmw-fc-aviso {
	margin-top: 6px;
}
