/* Samtyckesbannern. Håller sig till temats variabler när de finns, och
   står på egna ben när de inte gör det — pluginet ska fungera även i ett
   annat tema. */

.clubwear-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	padding: 1rem;
	background: var(--wp--preset--color--contrast, #0a0d14);
	color: var(--wp--preset--color--base, #fff);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.clubwear-consent__inner {
	max-width: 76rem;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
}

.clubwear-consent__text {
	flex: 1 1 24rem;
	min-width: 0;
}

.clubwear-consent__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	color: inherit;
}

.clubwear-consent__text p {
	margin: 0;
	max-width: 62ch;
	opacity: 0.85;
}

.clubwear-consent a {
	color: inherit;
	text-decoration: underline;
}

.clubwear-consent__choices {
	flex: 1 1 100%;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.75rem 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.clubwear-consent__choices label {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.875rem;
}

.clubwear-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	flex: 0 0 auto;
}

.clubwear-consent__btn {
	appearance: none;
	cursor: pointer;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.65rem 1.15rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: transparent;
	color: inherit;
	white-space: nowrap;
}

.clubwear-consent__btn:hover {
	border-color: rgba(255, 255, 255, 0.55);
}

.clubwear-consent__btn--accept,
.clubwear-consent__btn--save {
	background: var(--wp--preset--color--primary, #57ffb0);
	border-color: transparent;
	color: #0a0d14;
}

.clubwear-consent__btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #57ffb0);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.clubwear-consent__inner {
		gap: 0.85rem;
	}

	.clubwear-consent__actions {
		width: 100%;
	}

	.clubwear-consent__btn {
		flex: 1 1 auto;
		text-align: center;
	}
}
