.cookie-consent {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 9999;
	max-width: 520px;
	background: #fff;
	border: 1px solid var(--color-grey-light);
	border-radius: 18px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
	padding: 1.25rem 1.5rem 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.cookie-consent[hidden] {
	display: none;
}

.cookie-consent__title {
	margin: 0;
	font-family: 'Gotham A', 'Gotham B', sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-red-primary);
}

.cookie-consent__text {
	margin: 0;
	color: var(--color-grey-dark);
	line-height: 1.5;
	font-size: 1rem;
}

.cookie-consent__links-text {
	margin: 0.5rem 0 0 0;
	color: var(--color-grey-dark);
	line-height: 1.5;
	font-size: 0.9rem;
}

.cookie-consent__link {
	color: var(--color-red-primary);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.cookie-consent__button {
	border-radius: 999px;
	padding: 0.55rem 1.5rem;
	border: 2px solid var(--color-red-primary);
	background: #fff;
	color: var(--color-red-primary);
	cursor: pointer;
	font-weight: 700;
	font-family: 'Archer SSm A', 'Archer SSm B', sans-serif;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	min-height: 44px;
}

.cookie-consent__button--primary {
	background: var(--color-red-primary);
	color: #fff;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
	background-color: var(--color-red-primary);
	color: #fff;
	border-color: var(--color-red-primary);
}

.cookie-consent__button:focus-visible {
	outline: 2px solid var(--color-red-primary);
	outline-offset: 2px;
}

.cookie-consent__button--secondary {
	background: #fff;
	color: var(--color-red-primary);
}

.cookie-consent__button--secondary:hover,
.cookie-consent__button--secondary:focus-visible {
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
	background-color: var(--color-red-primary);
	color: #fff;
	border-color: var(--color-red-primary);
}

.cookie-consent__manage-trigger {
	position: fixed;
	bottom: 1.25rem;
	left: 1.25rem;
	background: transparent;
	border: 0;
	color: var(--color-red-primary);
	font-weight: 700;
	font-family: 'Gotham A', 'Gotham B', sans-serif;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	min-height: 44px;
}

.cookie-consent__manage-trigger[hidden] {
	display: none;
}

.cookie-consent__footer-trigger {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	color: var(--color-grey-dark);
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	display: inline-block;
	line-height: inherit;
	vertical-align: baseline;
}

.cookie-consent__footer-trigger:hover,
.cookie-consent__footer-trigger:focus,
.cookie-consent__footer-trigger:active {
	background: transparent !important;
	color: var(--color-grey-dark) !important;
	text-decoration: underline !important;
	box-shadow: none !important;
	outline: none !important;
}

.cookie-consent__scrim {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.08);
	z-index: 9998;
}

.cookie-consent__scrim[hidden] {
	display: none;
}

/* Customize View Styles */
.cookie-consent__customize-view {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.cookie-consent__customize-view[hidden] {
	display: none;
}

.cookie-consent__categories {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 1rem 0;
	max-height: 300px;
	overflow-y: auto;
}

.cookie-consent__category {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem;
	background: #f8f8f8;
	border-radius: 12px;
}

.cookie-consent__category-info {
	flex: 1;
}

.cookie-consent__category-title {
	margin: 0 0 0.25rem 0;
	font-size: 1rem;
	font-weight: 700;
	color: #333;
	font-family: 'Gotham A', 'Gotham B', sans-serif;
}

.cookie-consent__category-description {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--color-grey-dark);
}

.cookie-consent__category--required {
	opacity: 0.7;
}

.cookie-consent__category--required .cookie-consent__category-title::after {
	content: ' (Always active)';
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--color-grey-dark);
}

/* Toggle Switch Styles */
.cookie-consent__toggle {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
	flex-shrink: 0;
}

.cookie-consent__toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-consent__toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.3s;
	border-radius: 28px;
}

.cookie-consent__toggle-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-slider {
	background-color: var(--color-red-primary);
}

.cookie-consent__toggle input:focus + .cookie-consent__toggle-slider {
	box-shadow: 0 0 1px var(--color-red-primary);
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-slider:before {
	transform: translateX(22px);
}

.cookie-consent__toggle input:disabled + .cookie-consent__toggle-slider {
	cursor: not-allowed;
	opacity: 0.5;
}

.cookie-consent__back-button {
	align-self: flex-start;
	background: transparent;
	border: none;
	color: var(--color-red-primary);
	font-weight: 600;
	cursor: pointer;
	padding: 0.25rem 0;
	font-size: 0.9rem;
	text-decoration: underline;
	margin-bottom: 0.5rem;
}

.cookie-consent__back-button:hover {
	color: #8a0a1f;
}

@media (max-width: 680px) {
	.cookie-consent {
		left: 1.25rem;
		right: 1.25rem;
		max-width: none;
		max-height: 80vh;
		overflow-y: auto;
	}

	.cookie-consent__actions {
		flex-direction: column;
	}

	.cookie-consent__button {
		width: 100%;
		text-align: center;
	}

	.cookie-consent__manage-trigger {
		top: 1rem;
		bottom: auto;
	}

	.cookie-consent__categories {
		max-height: 200px;
	}

	.cookie-consent__category {
		flex-direction: column;
		gap: 0.75rem;
	}

	.cookie-consent__toggle {
		align-self: flex-start;
	}
}
