/* Corner consent panel — bottom-right, anchored beside the cookie FAB. */
:root {
	--bosevn-consent-width: 360px;
	--bosevn-consent-bg: #ffffff;
	--bosevn-consent-border: #e0e0e0;
	--bosevn-consent-radius: 3px;
	--bosevn-consent-gap: 12px;
	--bosevn-consent-text: #131317;
	--bosevn-consent-link: #131317;
	--bosevn-consent-title-size: 15px;
	--bosevn-consent-text-size: 13px;
	--bosevn-consent-btn-size: 12px;
	--bosevn-consent-accept-bg: #181818;
	--bosevn-consent-accept-text: #ffffff;
	--bosevn-consent-deny-bg: #ffffff;
	--bosevn-consent-deny-text: #181818;
	--bosevn-consent-settings-bg: #ffffff;
	--bosevn-consent-settings-text: #181818;
	--bosevn-consent-active: #181818;
	--bosevn-consent-inactive: #c7c7c7;
	--bosevn-consent-bullet: #ffffff;
	--bosevn-consent-always-active: #6b6b6b;
	--bosevn-consent-edge: 12px;
	--bosevn-consent-fab-size: 44px;
	--bosevn-consent-fab-gap: 12px;
	--bosevn-consent-anim: 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.bosevn-consent-active *:not(.bosevn-consent-banner):not(.bosevn-consent-banner *):not(#bosevn-consent-fab-wrap):not(#bosevn-consent-fab-wrap *) {
	pointer-events: none !important;
	user-select: none !important;
}

.bosevn-consent-banner,
.bosevn-consent-banner * {
	pointer-events: auto !important;
	user-select: auto !important;
	box-sizing: border-box;
}

.bosevn-consent-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity var(--bosevn-consent-anim);
}

.bosevn-consent-overlay.is-open {
	opacity: 1;
}

.bosevn-consent-overlay[hidden],
.bosevn-consent-banner[hidden],
#bosevn-consent-fab-wrap[hidden] {
	display: none !important;
}

.bosevn-consent-banner {
	position: fixed;
	right: var(--bosevn-consent-edge);
	bottom: calc(var(--bosevn-consent-edge) + var(--bosevn-consent-fab-size) + var(--bosevn-consent-fab-gap));
	left: var(--bosevn-consent-edge);
	z-index: 99999;
	width: auto;
	max-width: none;
	max-height: min(70vh, calc(100vh - var(--bosevn-consent-edge) - var(--bosevn-consent-fab-size) - var(--bosevn-consent-fab-gap) - var(--bosevn-consent-edge)));
	display: flex;
	flex-direction: column;
	gap: var(--bosevn-consent-gap);
	padding: 16px 18px 18px;
	background: var(--bosevn-consent-bg);
	border: 0;
	border-radius: var(--bosevn-consent-radius);
	box-shadow: rgba(0, 0, 0, 0.22) 0 10px 28px;
	color: var(--bosevn-consent-text);
	font-family: inherit;
	opacity: 0;
	transform: translate3d(0, 14px, 0) scale(0.98);
	transform-origin: bottom right;
	transition:
		opacity var(--bosevn-consent-anim),
		transform var(--bosevn-consent-anim);
	will-change: opacity, transform;
}

.bosevn-consent-banner.is-open {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
}

.bosevn-consent-banner.is-docked-with-fab {
	/* Room for FAB sitting in the same corner while preferences reopen. */
	bottom: calc(var(--bosevn-consent-edge) + var(--bosevn-consent-fab-size) + var(--bosevn-consent-fab-gap));
}

.bosevn-consent-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-shrink: 0;
}

.bosevn-consent-title {
	font-size: var(--bosevn-consent-title-size);
	font-weight: 700;
	color: #000000;
	text-align: left;
	margin: 0;
}

.bosevn-consent-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: -6px -8px -6px 0;
	padding: 0;
	border: 1px solid var(--bosevn-consent-border);
	border-radius: 2px;
	background: transparent;
	color: var(--bosevn-consent-text);
	cursor: pointer;
}

.bosevn-consent-close:hover {
	border-color: #181818;
}

.bosevn-consent-divider {
	height: 1px;
	background: var(--bosevn-consent-border);
	margin-left: -18px;
	margin-right: -18px;
	flex-shrink: 0;
}

.bosevn-consent-body {
	overflow-y: auto;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}

.bosevn-consent-message {
	font-size: var(--bosevn-consent-text-size);
	line-height: 1.5;
	margin: 0 0 5px;
	word-wrap: break-word;
}

.bosevn-consent-categories {
	margin-top: 8px;
}

.bosevn-consent-categories[hidden] {
	display: none !important;
}

.bosevn-consent-category {
	background: var(--bosevn-consent-bg);
	border: 1px solid var(--bosevn-consent-border);
	border-radius: 2px;
}

.bosevn-consent-category:not(:last-child) {
	margin-bottom: 10px;
}

.bosevn-consent-category summary {
	display: block;
	list-style: none;
	cursor: pointer;
}

.bosevn-consent-category summary::-webkit-details-marker {
	display: none;
}

.bosevn-consent-category-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
}

.bosevn-consent-category-title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 700;
	margin: 0;
}

.bosevn-consent-always-active {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 700;
	color: var(--bosevn-consent-always-active);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bosevn-consent-chevron {
	display: inline-flex;
	flex: 0 0 auto;
	transition: transform 0.25s ease;
}

.bosevn-consent-category[open] .bosevn-consent-chevron {
	transform: rotate(180deg);
}

.bosevn-consent-description {
	font-size: var(--bosevn-consent-text-size);
	line-height: 1.5;
	padding: 0 12px 12px;
	margin: 0;
}

.bosevn-consent-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.bosevn-consent-checkbox {
	position: absolute;
	opacity: 0;
	width: 40px;
	height: 20px;
	margin: 0;
	cursor: pointer;
	z-index: 1;
}

.bosevn-consent-toggle-label {
	position: relative;
	display: inline-block;
	width: 34px;
	height: 18px;
}

.bosevn-consent-toggle-label::before,
.bosevn-consent-toggle-label::after {
	position: absolute;
	border-radius: 10px;
	transition: background-color 0.3s, left 0.3s;
	content: "";
}

.bosevn-consent-toggle-label::before {
	left: 0;
	top: 0;
	width: 34px;
	height: 18px;
	background: var(--bosevn-consent-inactive);
}

.bosevn-consent-toggle-label::after {
	left: 3px;
	top: 3px;
	width: 12px;
	height: 12px;
	background: var(--bosevn-consent-bullet);
}

.bosevn-consent-checkbox:checked + .bosevn-consent-toggle-label::before {
	background: var(--bosevn-consent-active);
}

.bosevn-consent-checkbox:checked + .bosevn-consent-toggle-label::after {
	left: 19px;
}

.bosevn-consent-checkbox:focus + .bosevn-consent-toggle-label::before {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(24, 24, 24, 0.6);
}

.bosevn-consent-links ul {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: var(--bosevn-consent-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bosevn-consent-link {
	color: var(--bosevn-consent-link);
	font-size: var(--bosevn-consent-text-size);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bosevn-consent-buttons {
	display: flex;
	flex-direction: column;
	gap: var(--bosevn-consent-gap);
	flex-shrink: 0;
	min-width: 0;
}

.bosevn-consent-buttons[hidden] {
	display: none !important;
}

.bosevn-consent-btn {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 12px 20px;
	border-radius: 180px;
	border: 1px solid #181818;
	font-size: var(--bosevn-consent-btn-size);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	cursor: pointer;
	white-space: normal;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bosevn-consent-btn-accept {
	background: var(--bosevn-consent-accept-bg);
	border-color: var(--bosevn-consent-accept-bg);
	color: var(--bosevn-consent-accept-text);
}

.bosevn-consent-btn-accept:hover {
	background: #3d3d3d;
	border-color: #3d3d3d;
}

.bosevn-consent-btn-deny,
.bosevn-consent-btn-settings {
	background: var(--bosevn-consent-deny-bg);
	border-color: #181818;
	color: var(--bosevn-consent-settings-text);
}

.bosevn-consent-btn-deny:hover,
.bosevn-consent-btn-settings:hover {
	background: #181818;
	color: #ffffff;
}

#bosevn-consent-fab-wrap {
	position: fixed;
	right: var(--bosevn-consent-edge);
	bottom: var(--bosevn-consent-edge);
	z-index: 100000;
}

.bosevn-consent-fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--bosevn-consent-fab-size);
	height: var(--bosevn-consent-fab-size);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #181818;
	color: #ffffff;
	cursor: pointer;
	box-shadow: rgba(0, 0, 0, 0.25) 0 4px 12px;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.bosevn-consent-fab:hover {
	transform: translateY(-1px);
	box-shadow: rgba(0, 0, 0, 0.3) 0 6px 16px;
}

.bosevn-consent-fab:focus {
	outline: none;
}

.bosevn-consent-fab:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #181818;
}

body.bosevn-consent-active .bosevn-consent-fab {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #181818;
}

.bosevn-consent-fab__icon {
	display: block;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (min-width: 768px) {
	:root {
		--bosevn-consent-edge: 16px;
		--bosevn-consent-width: 400px;
		--bosevn-consent-title-size: 16px;
	}

	.bosevn-consent-banner {
		left: auto;
		width: var(--bosevn-consent-width);
		max-width: var(--bosevn-consent-width);
		padding: 20px 24px 22px;
	}

	.bosevn-consent-divider {
		margin-left: -24px;
		margin-right: -24px;
	}

	.bosevn-consent-buttons {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.bosevn-consent-btn {
		white-space: nowrap;
	}

	.bosevn-consent-close {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
		margin: 0;
	}
}
