/* ==========================================================================
   Cookie consent banner
   ========================================================================== */

.cookie-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2050;
	background: var(--color-white);
	border-top: 1px solid #e5e5e5;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
	font-family: var(--font-primary);
	-webkit-font-smoothing: antialiased;
}

.cookie-consent__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 32px;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 20px var(--container-padding);
	box-sizing: border-box;
}

.cookie-consent__content {
	flex: 1 1 auto;
	min-width: 0;
}

.cookie-consent__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--color-black);
}

.cookie-consent__text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-consent__text a:hover,
.cookie-consent__text a:focus {
	opacity: 0.7;
}

.cookie-consent__actions {
	flex: 0 0 auto;
}

.cookie-consent__accept {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	min-height: 48px;
	padding: 0 28px;
	font-family: inherit;
	cursor: pointer;
}

.cookie-consent.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(100%);
	transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

@media (max-width: 992px) {
	.cookie-consent {
		bottom: calc(var(--mobile-bottom-nav-height, 56px) + env(safe-area-inset-bottom, 0px));
	}

	body.bigmood-checkout-page .cookie-consent {
		bottom: 0;
	}

	.cookie-consent__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 18px var(--container-padding) 20px;
	}

	.cookie-consent__actions {
		width: 100%;
	}

	.cookie-consent__accept {
		width: 100%;
		min-width: 0;
	}
}
