/* [ADV] Bogmad - Comandă prin WhatsApp */

.bogmad-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
}

.bogmad-wa-btn__icon {
	flex: 0 0 auto;
	width: 1.15em;
	height: 1.15em;
}

/* Avada pune iconițe (coș / detalii) pe primul și ultimul link din rollover — nu și pe al nostru. */
.fusion-product-buttons a.bogmad-wa-btn:before,
.product-buttons a.bogmad-wa-btn:before {
	content: none !important;
	display: none !important;
}

/* --- Rollover (design clean): moștenește stilul temei, iconița e verde --- */
.fusion-rollover-content .fusion-product-buttons a.bogmad-wa-btn {
	padding-left: 0;
	max-width: none;
}

.fusion-rollover-content .fusion-product-buttons a.bogmad-wa-btn .bogmad-wa-btn__icon {
	color: #25d366;
}

/* --- Sub produs (design classic): rând separat, pe toată lățimea --- */
.product-buttons-container a.bogmad-wa-btn {
	display: flex;
	float: none;
	clear: both;
	width: 100%;
	max-width: none;
	margin-top: 10px;
	padding-left: 0;
}

.product-buttons-container a.bogmad-wa-btn .bogmad-wa-btn__icon {
	color: #25d366;
}

/* --- Post Card Avada (card produs în arhive, upsells, similare) --- */
/* Ambele butoane lipite la stânga (echivalentul float:left), pe același rând. */
.fusion-post-card-cart .fusion-post-card-cart-button-wrapper:has(.bogmad-wa-btn) {
	justify-content: flex-start !important;
	align-items: flex-start !important;
	flex-wrap: wrap;
	column-gap: 10px;
}

.fusion-post-card-cart a.bogmad-wa-btn--card {
	/* Aceleași dimensiuni ca „Cumpără” (.fusion-post-card-cart-add-to-cart). */
	margin: 10px 0 0 !important;
	padding: 8px 12px !important;
	border: 0 !important;
	line-height: 17px !important;
	font-size: 12px;
	float: none;
	background-color: #25d366 !important;
	background-image: none !important;
	color: #fff !important;
	white-space: nowrap;
}

.fusion-post-card-cart a.bogmad-wa-btn--card .bogmad-wa-btn__label {
	line-height: inherit;
}

.fusion-post-card-cart .fusion-post-card-cart-button-wrapper:has(.bogmad-wa-btn) .fusion-post-card-cart-add-to-cart {
	margin-top: 10px !important;
}

.fusion-post-card-cart a.bogmad-wa-btn--card:hover,
.fusion-post-card-cart a.bogmad-wa-btn--card:focus {
	background-color: #1ebe5b !important;
	border-color: #1ebe5b !important;
	color: #fff !important;
}

.bogmad-wa-card-only {
	display: flex;
	margin-top: 10px;
}

/* --- Pagina de produs / shortcode: buton plin, verde WhatsApp --- */
a.bogmad-wa-btn--single,
a.bogmad-wa-btn--shortcode {
	background: #25d366;
	border: 0;
	border-radius: 4px;
	color: #fff !important;
	padding: 0 20px;
	min-height: 44px;
	line-height: 1.2;
	font-weight: 600;
	vertical-align: middle;
	transition: background-color .2s ease;
}

a.bogmad-wa-btn--single:hover,
a.bogmad-wa-btn--single:focus,
a.bogmad-wa-btn--shortcode:hover,
a.bogmad-wa-btn--shortcode:focus {
	background: #1ebe5b;
	color: #fff !important;
}

form.cart a.bogmad-wa-btn--single {
	margin-left: 10px;
}

.bogmad-wa-single-wrap {
	margin: 15px 0;
}

@media (max-width: 640px) {
	/* Pe mobil, sub „Cumpără”, pe toată lățimea. */
	form.cart a.bogmad-wa-btn--single {
		display: flex;
		width: 100%;
		margin: 10px 0 0;
	}
}
