/* =========================================================
   BIPIXELS — COOKIE CONSENT
   ========================================================= */

   :root {
	--bpx-consent-red: var(--wp--preset--color--accent-1, #dc2931);
	--bpx-consent-red-hover: var(--wp--preset--color--accent-2);
	--bpx-consent-black: #090909;
	--bpx-consent-white: #fff;
	--bpx-consent-muted: rgb(0 0 0 / 64%);
	--bpx-consent-line: rgb(0 0 0 / 5%);
	--bpx-consent-soft: rgb(0 0 0 / 6%);
	--bpx-consent-ease: cubic-bezier(.2, .8, .2, 1);
}


/* =========================================================
   HIDDEN
   ========================================================= */

.bpx-consent[hidden],
.bpx-consent-modal[hidden] {
	display: none !important;
}


/* =========================================================
   FIRST-VISIT BANNER
   ========================================================= */

.bpx-consent {
	position: fixed;
	z-index: 99998;
	right: 22px;
	bottom: 22px;
	width: min(470px, calc(100vw - 44px));
	color: var(--bpx-consent-black);
	background: #ffffffed;
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 4px;
	box-shadow: 0 30px 80px rgb(0 0 0 / 9%), 0 8px 24px rgb(0 0 0 / 2%), inset 0 1px 0 rgba(255, 255, 255, .07);
	overflow: hidden;
	isolation: isolate;
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
	animation: bpx-consent-enter .65s var(--bpx-consent-ease) both;
	font-size: 14px;
	backdrop-filter: blur(4px);
}

.bpx-consent__inner {
	position: relative;
	padding: 1em 1.5em;
}


.bpx-consent__title {
	display: block;
	margin: 0 0 12px;
	color: #fff;
	font-size: 1.4em;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.045em;
	display: none;
}
.bpx-consent p {
    margin: 0 0 1em;
}

/* red micro-line */

.bpx-consent__title::before {
	content: "";

	display: block;

	width: 34px;
	height: 3px;

	margin: 0 0 18px;

	background: var(--bpx-consent-red);

	border-radius: 99px;
}


.bpx-consent__text {
	max-width: 400px;

	margin: 0;

	color: var(--bpx-consent-muted);

	font-size: 14px;
	font-weight: 400;
	line-height: 1.62;
	letter-spacing: -.01em;
}


.bpx-consent__text a,
.bpx-consent-modal a {
	text-decoration-line: underline;
	text-decoration-color: rgba(255, 255, 255, .34);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition:
		color .2s ease,
		text-decoration-color .2s ease;
}


.bpx-consent__text a:hover,
.bpx-consent-modal a:hover {
}


/* =========================================================
   BANNER ACTIONS
   ========================================================= */

.bpx-consent__actions {
	display: flex;
	gap: 1.5em;
	margin-top: 0em;
}


.bpx-consent__button {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin: 0;
	padding: 10px 16px;
	color: #000;
	background: rgb(0 0 0 / 6%);
	border: 1px solid rgb(0 0 0 / 16%);
	border-radius: 4px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-align: center;
	cursor: pointer;
	transition:
		transform .25s var(--bpx-consent-ease),
		background-color .2s ease,
		border-color .2s ease,
		box-shadow .2s ease,
		color .2s ease;
}


.bpx-consent__button:hover {
	transform: translateY(0px);
	background: rgba(255, 255, 255, .10);
	border-color: rgba(255, 255, 255, .30);
}


.bpx-consent__button:active {
	transform: translateY(0) scale(.985);
}


/* Accept */

.bpx-consent__actions [data-bpx-consent="accept"] {
	background: var(--bpx-consent-red);
	border-color: var(--bpx-consent-red);
	color: #fff;
}


.bpx-consent__actions [data-bpx-consent="accept"]:hover {
	background: var(--bpx-consent-red-hover);
	border-color: var(--bpx-consent-red-hover);
}


/* Reject */

.bpx-consent__actions [data-bpx-consent="reject"] {
	background: transparent;
	border-color: rgb(0 0 0 / 0%);
	color: rgb(0 0 0 / 56%);
	padding-left: 0;
	padding-right: 0;
}


/* Customize */

.bpx-consent__actions [data-bpx-consent="preferences"] {
	color: rgb(0 0 0 / 56%);
	background: #00000000;
	padding-left: 0;
	padding-right: 0;
	border-color: transparent;
}


.bpx-consent__actions [data-bpx-consent="preferences"]:hover, .bpx-consent__actions [data-bpx-consent="reject"]:hover {
	color: #000;
	background: rgba(255, 255, 255, .04);
	border-color: rgba(255, 255, 255, .07);
}


/* =========================================================
   PREFERENCES MODAL
   ========================================================= */

html.bpx-consent-modal-open,
html.bpx-consent-modal-open body {
	overflow: hidden;
}


.bpx-consent-modal {
	position: fixed;
	z-index: 1000000;
	inset: 0;

	display: grid;
	place-items: center;

	padding: 24px;

	font-family: inherit;
	-webkit-font-smoothing: antialiased;

	animation: bpx-backdrop-in .25s ease both;
}


.bpx-consent-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 3, 3, .68);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}


/* =========================================================
   MODAL PANEL
   ========================================================= */

.bpx-consent-modal__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 620px);
	max-height: calc(100dvh - 48px);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 38px;
	color: var(--wp--preset--color--contrast);
	background: #fff;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 4px;
	box-shadow:
		0 45px 130px rgba(0, 0, 0, .52),
		0 12px 40px rgba(0, 0, 0, .32),
		inset 0 1px 0 rgba(255, 255, 255, .07);
	isolation: isolate;
	animation: bpx-modal-enter .48s var(--bpx-consent-ease) both;
	scrollbar-width: thin;
	scrollbar-color:
		rgba(255, 255, 255, .20)
		transparent;
}




/* grid */

.bpx-consent-modal__panel::after {
	content: "";

	position: absolute;
	z-index: -2;
	inset: 0;

	background-image:
		linear-gradient(
			rgba(255, 255, 255, .022) 1px,
			transparent 1px
		),
		linear-gradient(
			90deg,
			rgba(255, 255, 255, .022) 1px,
			transparent 1px
		);

	background-size: 38px 38px;

	-webkit-mask-image:
		linear-gradient(
			135deg,
			rgba(0, 0, 0, .5),
			transparent 62%
		);

	mask-image:
		linear-gradient(
			135deg,
			rgba(0, 0, 0, .5),
			transparent 62%
		);

	pointer-events: none;
}


/* =========================================================
   MODAL HEADER
   ========================================================= */

.bpx-consent-modal__eyebrow {
	margin: 0 0 13px;

	color: var(--bpx-consent-red);

	font-size: 11px;
	font-weight: 700;
	line-height: 1;

	letter-spacing: .12em;
	text-transform: uppercase;
}


.bpx-consent-modal h2 {
	max-width: 490px;
	margin: 0 55px 12px 0;
	font-size: 1.4em;
	font-weight: 600;
	line-height: .98;
	letter-spacing: -.05em;
	text-transform: inherit;
}


.bpx-consent-modal__intro {
	max-width: 510px;

	margin: 0 0 30px;

	color: var(--bpx-consent-muted);

	font-size: 14px;
	line-height: 1.6;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.bpx-consent-modal__close {
	position: absolute;
	z-index: 5;
	top: 20px;
	right: 20px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0 0 2px;
	color: rgb(0 0 0 / 72%);
	border-radius: 50%;
	font: inherit;
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition:
		transform .3s var(--bpx-consent-ease),
		color .2s ease,
		background .2s ease,
		border-color .2s ease;
}


.bpx-consent-modal__close:hover {
	transform: rotate(90deg);
	background: rgba(255, 255, 255, .10);
	border-color: rgba(255, 255, 255, .22);
}


/* =========================================================
   PREFERENCE ROWS
   ========================================================= */

.bpx-consent-option {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 20px 0;
	color: #000000;
	border-top: 1px solid var(--bpx-consent-line);
	text-transform: inherit;
	font-weight: inherit;
	font-size: inherit;
}


.bpx-consent-option:last-of-type {
	border-bottom: 1px solid var(--bpx-consent-line);
}


label.bpx-consent-option {
	cursor: pointer;
}


.bpx-consent-option__copy {
	min-width: 0;
}


.bpx-consent-option__copy {
	display: block;
	margin: 0 0 5px;
	font-size: 15px;
	line-height: 1.25;
}

.bpx-consent-option__copy strong{
	font-weight: 600;
}
.bpx-consent-option__copy small {
	max-width: 410px;
	margin: 0;
	color: rgb(0 0 0 / 52%);
	font-size: 13px;
	line-height: 1.5;
	display: block;
}


.bpx-consent-option__status {
	flex-shrink: 0;

	color: rgba(255, 255, 255, .42);

	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;

	letter-spacing: .07em;
	text-transform: uppercase;

	white-space: nowrap;
}


/* Locked row */

.bpx-consent-option--locked .bpx-consent-option__status {
	padding: 7px 9px;
	color: rgb(0 0 0 / 62%);
	background: rgb(0 0 0 / 6%);
	border: 1px solid rgb(0 0 0 / 8%);
	border-radius: 999px;
}


/* =========================================================
   SWITCHES
   ========================================================= */

.bpx-consent-switch {
	position: relative;

	display: inline-flex;

	flex: 0 0 auto;

	width: 50px;
	height: 29px;
}


.bpx-consent-switch input {
	position: absolute;

	width: 1px;
	height: 1px;

	margin: -1px;
	padding: 0;

	overflow: hidden;

	clip: rect(0 0 0 0);
	clip-path: inset(50%);

	white-space: nowrap;

	border: 0;
}


.bpx-consent-switch > span {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 10%);
	border: 1px solid rgb(0 0 0 / 17%);
	border-radius: 999px;
	border: 1px solid rgb(28 25 25 / 17%);
	color .25s ease,
		border-color .25s ease,
		box-shadow .25s ease;
}


.bpx-consent-switch > span::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 19px;
	height: 19px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
	transition:
		transform .28s var(--bpx-consent-ease);
}


.bpx-consent-switch input:checked + span {
	background: var(--bpx-consent-red);
	border-color: var(--bpx-consent-red);

	box-shadow:
		0 0 0 3px rgba(197, 33, 40, .10),
		0 5px 18px rgba(197, 33, 40, .18);
}


.bpx-consent-switch input:checked + span::after {
	transform: translateX(21px);
}


/* row hover */

label.bpx-consent-option:hover .bpx-consent-option__copy strong {
	color: #000;
}


label.bpx-consent-option:hover .bpx-consent-switch > span {
	border-color: rgba(255, 255, 255, .35);
}


/* =========================================================
   MODAL ACTIONS
   ========================================================= */

.bpx-consent-modal__actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;

	margin-top: 28px;
}


.bpx-consent-modal__actions .bpx-consent__button {
	min-width: 0;
}


/* Save is primary inside preferences */

.bpx-consent-modal__actions [data-bpx-consent="save"] {
	background: var(--bpx-consent-red);
	border-color: var(--bpx-consent-red);
	box-shadow:
		0 8px 28px rgba(197, 33, 40, .23);
	color: #fff;
}


.bpx-consent-modal__actions [data-bpx-consent="save"]:hover {
	background: var(--bpx-consent-red-hover);
	border-color: var(--bpx-consent-red-hover);

	box-shadow:
		0 12px 34px rgba(197, 33, 40, .30);
}


/* Keep accept/reject visually neutral in modal */

.bpx-consent-modal__actions [data-bpx-consent="accept"],
.bpx-consent-modal__actions [data-bpx-consent="reject"] {
	background: rgba(255, 255, 255, .05);
}


.bpx-consent-modal__actions [data-bpx-consent="accept"]:hover,
.bpx-consent-modal__actions [data-bpx-consent="reject"]:hover {
	background: rgb(0 0 0 / 10%);
	border-color: rgb(0 0 0 / 30%);
}


/* =========================================================
   PRIVACY LINK
   ========================================================= */

.bpx-consent-modal__policy {
	margin: 3em 0 0;
	color: rgb(0 0 0 / 42%);
	font-size: 12px;
	line-height: 1.5;
}


/* =========================================================
   FOOTER COOKIE SETTINGS
   ========================================================= */

.bpx-cookie-settings-link {
	appearance: none;

	margin: 0;
	padding: 0;

	color: inherit;
	background: transparent;

	border: 0;

	font: inherit;
	font-size: inherit;
	font-weight: inherit;

	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;

	cursor: pointer;

	transition: color .2s ease;
}


.bpx-cookie-settings-link:hover {
	color: var(--bpx-consent-red);
}


/* =========================================================
   ACCESSIBILITY / FOCUS
   ========================================================= */

.bpx-consent__button:focus-visible,
.bpx-consent-modal__close:focus-visible,
.bpx-cookie-settings-link:focus-visible {
	outline-offset: 3px;
}


.bpx-consent-switch input:focus-visible + span {
	outline-offset: 4px;
}


/* =========================================================
   MOTION
   ========================================================= */

@keyframes bpx-consent-enter {
	from {
		opacity: 0;
		transform: translateY(24px) scale(.975);
		filter: blur(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}


@keyframes bpx-backdrop-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}


@keyframes bpx-modal-enter {
	from {
		opacity: 0;
		transform: translateY(20px) scale(.975);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

	.bpx-consent {
		right: 12px;
		bottom: 12px;
		width: calc(100vw - 24px);
		left: 12px;
	}


	.bpx-consent__inner {
	}


	.bpx-consent__title {
		font-size: 25px;
	}


	.bpx-consent__actions {
		grid-template-columns: 1fr;
	}


	.bpx-consent__actions [data-bpx-consent="preferences"] {
		grid-column: auto;
	}


	.bpx-consent-modal {
		align-items: end;

		padding: 10px;
	}


	.bpx-consent-modal__panel {
		width: 100%;
		max-height: calc(100dvh - 20px);

		padding: 30px 20px 22px;

		border-radius: 20px 20px 14px 14px;
	}


	.bpx-consent-modal h2 {
		margin-right: 42px;

		font-size: 31px;
	}


	.bpx-consent-modal__close {
		top: 15px;
		right: 15px;
	}


	.bpx-consent-option {
		gap: 15px;

		padding: 18px 0;
	}


	.bpx-consent-option__copy p {
		font-size: 12px;
	}


	.bpx-consent-option--locked {
		align-items: start;
	}


	.bpx-consent-option__status {
		white-space: normal;
		text-align: right;
	}


	.bpx-consent-modal__actions {
		grid-template-columns: 1fr;
	}


	.bpx-consent-modal__actions [data-bpx-consent="save"] {
		order: -1;
	}
}


/* =========================================================
   VERY SMALL SCREENS
   =========