/**
 * Frontend styles for Button Groups Manager.
 *
 * Klasy są możliwie specyficzne, żeby łatwo można je było nadpisać
 * we własnym motywie, np.:
 * .bgm-button-link { background-color: #000; }
 */

.bgm-button-group {
	display: block;
	width: 100%;
	margin: 1.5rem 0;
}

.bgm-button-group .bgm-button-list {
	list-style: none;
	margin: 0;
	padding: 0;

	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.bgm-button-group .bgm-button-item {
	margin: 0;
	padding: 0;
}

.bgm-button-group .bgm-button-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 110px;
	padding: 0.55rem 1.4rem;

	border-radius: 9999px;
	border: none;

	background-color: #009fdf;
	color: #ffffff;

	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;

	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.12s ease;
}

.bgm-button-group .bgm-button-link:hover,
.bgm-button-group .bgm-button-link:focus-visible {
	background-color: #009fdf;
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
	transform: translateY(-1px);
	outline: none;
}

.bgm-button-group .bgm-button-link:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.bgm-button-group .bgm-button-text {
	display: inline-block;
}

/* Responsywność */

@media (max-width: 768px) {
	.bgm-button-group .bgm-button-list {
		justify-content: center;
	}

	.bgm-button-group .bgm-button-link {
		min-width: 0;
		width: auto;
		padding: 0.5rem 1.1rem;
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.bgm-button-group .bgm-button-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.bgm-button-group .bgm-button-item {
		flex: 1 1 48%;
	}

	.bgm-button-group .bgm-button-link {
		width: 100%;
	}
}

