/**
 * WE Bangla Product Buttons — front end styles.
 * Colours, sizes and radius come from CSS variables printed by the plugin.
 */

.webpb-group {
	display: flex;
	flex-direction: column;
	gap: var(--webpb-gap, 8px);
	width: 100%;
	max-width: 100%;
	margin: 14px 0;
	padding: 0;
	box-sizing: border-box;
	clear: both;
}

.webpb-group--boxed {
	padding: var(--webpb-gap, 8px);
	border: 2px solid var(--webpb-border, #e02b20);
}

.webpb-group--contact {
	margin-top: 10px;
}

.webpb-group .webpb-btn,
.webpb-group .single_add_to_cart_button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: var(--webpb-height, 44px);
	margin: 0 !important;
	padding: 8px 16px;
	float: none !important;
	border: 0;
	border-radius: var(--webpb-radius, 2px);
	font-size: var(--webpb-size, 16px);
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.webpb-group .webpb-btn:hover,
.webpb-group .single_add_to_cart_button:hover {
	opacity: 0.9;
	text-decoration: none;
}

.webpb-group .webpb-btn:focus-visible,
.webpb-group .single_add_to_cart_button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Order now sits at the top and is a touch wider than the rest. */
.webpb-group .webpb-btn--order {
	order: -1;
	background: var(--webpb-order-bg, #2000c8) !important;
	color: var(--webpb-order-text, #fff) !important;
}

.webpb-group .single_add_to_cart_button {
	background: var(--webpb-cart-bg, #17a2b8) !important;
	color: var(--webpb-cart-text, #fff) !important;
	width: 94%;
	margin: 0 auto !important;
}

.webpb-group .webpb-btn--call {
	background: var(--webpb-call-bg, #ffc107) !important;
	color: var(--webpb-call-text, #000) !important;
	width: 94%;
	margin: 0 auto !important;
}

.webpb-group .webpb-btn--wa {
	background: var(--webpb-wa-bg, #4caf50) !important;
	color: var(--webpb-wa-text, #fff) !important;
	width: 94%;
	margin: 0 auto !important;
}

.webpb-group .webpb-btn svg {
	flex: 0 0 auto;
}

.webpb-hide-cart .single_add_to_cart_button {
	display: none !important;
}

.webpb-group .webpb-btn--order[disabled],
.webpb-group .webpb-btn--order.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Variable products: the group lives inside the variation wrapper. */
.woocommerce-variation-add-to-cart .webpb-group {
	margin-top: 0;
}

/* Sticky mobile bar */
.webpb-sticky {
	display: none;
}

@media (max-width: 782px) {
	.webpb-sticky {
		display: flex;
		position: fixed;
		z-index: 9998;
		right: 0;
		bottom: 0;
		left: 0;
		gap: 6px;
		padding: 8px;
		background: #fff;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
	}

	.webpb-sticky .webpb-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		border: 0;
		border-radius: var(--webpb-radius, 2px);
		font-size: var(--webpb-size, 16px);
		font-weight: 600;
		text-decoration: none;
		cursor: pointer;
	}

	.webpb-sticky .webpb-sticky-order {
		flex: 1 1 auto;
		background: var(--webpb-order-bg, #2000c8);
		color: var(--webpb-order-text, #fff);
	}

	.webpb-sticky .webpb-sticky-icon {
		flex: 0 0 52px;
	}

	.webpb-sticky .webpb-btn--call {
		background: var(--webpb-call-bg, #ffc107);
		color: var(--webpb-call-text, #000);
	}

	.webpb-sticky .webpb-btn--wa {
		background: var(--webpb-wa-bg, #4caf50);
		color: var(--webpb-wa-text, #fff);
	}
}

@media (prefers-reduced-motion: reduce) {
	.webpb-group .webpb-btn,
	.webpb-group .single_add_to_cart_button {
		transition: none;
	}
}
