/* =========================================================================
 * Tamborim – Carrinho lateral (BeTheme .mfn-cart-holder) · Fase 1
 * ====================================================================== */

.mfn-cart-holder {
	--tbc-text: #1f1f1f;
	--tbc-muted: #6b6b6b;
	--tbc-line: #e6e6e6;
	--tbc-cta: #0070b8;        /* azul da loja escurecido: branco passa de 4,5:1 */
	--tbc-cta-hover: #005a94;
	--tbc-brand: #f1ca00;      /* amarelo da marca, só como destaque */
}

/* ---- Cabeçalho ------------------------------------------------------- */
.mfn-cart-holder .mfn-ch-header .close-mfn-cart {
	color: var(--tbc-muted);
}
.mfn-cart-holder .mfn-ch-header .close-mfn-cart:hover,
.mfn-cart-holder .mfn-ch-header .close-mfn-cart:focus-visible {
	color: var(--tbc-text);
}

/* ---- Item ------------------------------------------------------------ */
.mfn-cart-holder .mfn-chp-name {
	margin-bottom: 4px;
}
.mfn-cart-holder .mfn-chp-name a {
	color: var(--tbc-text);
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
}
.mfn-cart-holder .mfn-chp-name a:hover,
.mfn-cart-holder .mfn-chp-name a:focus-visible {
	color: var(--tbc-cta);
	text-decoration: underline;
}

/* Preço unitário (abaixo do nome): discreto. Com qtd. 1 o JS oculta. */
.mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-info .price,
.mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-info .price .woocommerce-Price-amount {
	color: var(--tbc-muted);
	font-size: 13px;
	line-height: 1.4;
	font-weight: 400;
}
.mfn-cart-holder .mfn-ch-product.tbc-qty-1 .mfn-chp-info .price {
	display: none;
}

/* Total do item (coluna direita): escuro e em destaque. */
/* O tema pinta todo .woocommerce-Price-amount do carrinho de amarelo. */
.mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-price,
.mfn-cart-holder .mfn-ch-content .mfn-ch-product .mfn-chp-price .woocommerce-Price-amount {
	color: var(--tbc-text);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

/* ---- Quantidade ------------------------------------------------------ */
.mfn-cart-holder .mfn-chp-quantity input.qty {
	color: var(--tbc-text);
	font-weight: 600;
	font-size: 15px;
}
.mfn-cart-holder .mfn-chp-quantity .quantity-change {
	min-width: 40px;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tbc-text);
}

/* ---- Remover --------------------------------------------------------- */
.mfn-cart-holder .mfn-chp-remove,
.mfn-cart-holder .mfn-chp-remove i {
	color: var(--tbc-muted);
	font-size: 13px;
	font-weight: 400;
}
.mfn-cart-holder .mfn-chp-remove {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 4px;
	text-decoration: none;
}
.mfn-cart-holder .mfn-chp-remove:hover,
.mfn-cart-holder .mfn-chp-remove:focus-visible {
	color: #b42318;
}
.mfn-cart-holder .mfn-chp-remove:hover i,
.mfn-cart-holder .mfn-chp-remove:focus-visible i {
	color: #b42318;
}

/* ---- Totais ---------------------------------------------------------- */
.mfn-cart-holder .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-subtotal.tbc-hidden {
	display: none;
}
.mfn-cart-holder .mfn-chft-total,
.mfn-cart-holder .mfn-chft-total .amount {
	color: var(--tbc-text);
	font-size: 16px;
}
.mfn-cart-holder .mfn-chft-total strong .amount {
	font-size: 20px;
	font-weight: 700;
}
.mfn-cart-holder .mfn-chft-apply-coupon-switcher {
	color: var(--tbc-text);
}

/* ---- Botões ---------------------------------------------------------- */
.mfn-cart-holder .mfn-ch-footer-buttons a.button {
	background-color: var(--tbc-cta);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	min-height: 50px;
	padding: 15px 20px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.mfn-cart-holder .mfn-ch-footer-buttons a.button:hover,
.mfn-cart-holder .mfn-ch-footer-buttons a.button:focus-visible {
	background-color: var(--tbc-cta-hover);
	color: #fff;
}
.mfn-cart-holder .mfn-ch-footer-buttons a.button:focus-visible,
.mfn-cart-holder .mfn-ch-footer-buttons a:not(.button):focus-visible {
	outline: 3px solid var(--tbc-brand);
	outline-offset: 2px;
}

/* "Ver carrinho" como botão secundário com contorno. */
.mfn-cart-holder .mfn-ch-footer-buttons a:not(.button) {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 10px;
	border: 1px solid #c9c9c9;
	border-radius: 6px;
	color: var(--tbc-text);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	background: #fff;
}
.mfn-cart-holder .mfn-ch-footer-buttons a:not(.button):hover {
	border-color: var(--tbc-text);
	color: var(--tbc-text);
}
