/**
 * WooCommerce Multiple Product Buttons - Frontend styles
 * Developed by Abu Bakar Zahid
 *
 * Colors, borders, radius, and font size come from per-product inline styles
 * set by the admin; this file only handles layout, spacing, and interaction.
 */

.wcmpb-button-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0;
	clear: both;
}

.wcmpb-button-group .wcmpb-button,
.wcmpb-button-group a.wcmpb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	line-height: 1.3;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	max-width: 100%;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.wcmpb-button-group .wcmpb-button:hover,
.wcmpb-button-group .wcmpb-button:focus {
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
	filter: brightness(1.06);
}

.wcmpb-button-group .wcmpb-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.wcmpb-button-group .wcmpb-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.wcmpb-button-group .wcmpb-button {
		transition: none;
	}

	.wcmpb-button-group .wcmpb-button:hover {
		transform: none;
	}
}

/* Small screens: keep buttons comfortably tappable and wrapping. */
@media screen and (max-width: 480px) {
	.wcmpb-button-group {
		gap: 8px;
	}

	.wcmpb-button-group .wcmpb-button {
		flex: 1 1 calc(50% - 8px);
		min-width: 120px;
		padding: 10px 14px;
	}
}
