#cookie-banner[hidden] {
	display: none !important;
}

#cookie-settings-trigger {
	display: none;
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9998;
	background: linear-gradient(135deg, #1cc7b8 0%, #11998e 100%);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 12px 18px;
	font-weight: 600;
	font-size: 14px;
	box-shadow: 0 10px 30px rgba(17, 153, 142, .28);
}

#cookie-settings-trigger:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 34px rgba(17, 153, 142, .34);
}

#cookie-banner {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 20px;
	background: rgba(7, 18, 28, .42);
	backdrop-filter: blur(4px);
	overflow-y: auto;
}

.cookie-banner__panel {
	width: 100%;
	max-width: 920px;
	background: #ffffff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 24px 80px rgba(16, 24, 40, .24);
	font-family: 'Poppins', 'Roboto', Arial, sans-serif;
	max-height: calc(100vh - 40px);
}

.cookie-banner__top {
	background: linear-gradient(135deg, #1cc7b8 0%, #11998e 100%);
	padding: 22px 28px 18px;
	color: #fff;
}

.cookie-banner__top h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: .2px;
}

.cookie-banner__top p {
	margin: 10px 0 0;
	max-width: 760px;
	font-size: 14px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .92);
}

.cookie-banner__body {
	padding: 24px 28px 28px;
}

.cookie-banner__options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 8px 0 22px;
}

#cookie-banner:not(.cookie-banner--expanded) .cookie-banner__options,
#cookie-banner:not(.cookie-banner--expanded) #cookie-save-selection {
	display: none !important;
}

#cookie-banner.cookie-banner--expanded #cookie-open-settings {
	display: none !important;
}

.cookie-option {
	border: 1px solid #d9e7ea;
	border-radius: 18px;
	padding: 16px;
	background: #f8fbfc;
	min-height: 150px;
}

.cookie-option--toggle {
	cursor: pointer;
}

.cookie-option__title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: 700;
	color: #0e2f3f;
}

.cookie-option__text {
	font-size: 13px;
	line-height: 1.65;
	color: #5f7280;
}

.cookie-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	background: rgba(17, 153, 142, .12);
	color: #11998e;
}

.cookie-switch {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 30px;
	flex: 0 0 auto;
}

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

.cookie-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #c9d5db;
	transition: .25s ease;
	border-radius: 999px;
}

.cookie-slider:before {
	position: absolute;
	content: "";
	height: 22px;
	width: 22px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .25s ease;
	border-radius: 50%;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}

.cookie-switch input:checked + .cookie-slider {
	background: linear-gradient(135deg, #1cc7b8 0%, #11998e 100%);
}

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

.cookie-switch input:disabled + .cookie-slider {
	background: linear-gradient(135deg, #1cc7b8 0%, #11998e 100%);
	opacity: .72;
	cursor: not-allowed;
}

.cookie-banner__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.cookie-btn {
	border: 0;
	border-radius: 999px;
	padding: 13px 20px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	transition: all .2s ease;
}

.cookie-btn:hover {
	transform: translateY(-1px);
}

.cookie-btn--primary {
	background: linear-gradient(135deg, #1cc7b8 0%, #11998e 100%);
	color: #fff;
	box-shadow: 0 14px 30px rgba(17, 153, 142, .22);
}

.cookie-btn--secondary {
	background: #eef6f7;
	color: #0e2f3f;
}

.cookie-banner__footer {
	margin-top: 16px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	font-size: 13px;
	color: #5f7280;
}

.cookie-banner__footer a,
.cookie-banner__footer button {
	color: #11998e;
	font-weight: 600;
	text-decoration: none;
	background: none;
	border: 0;
	padding: 0;
}

.cookie-banner__footer a:hover,
.cookie-banner__footer button:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	#cookie-banner {
		align-items: flex-end;
		padding: calc(8px + env(safe-area-inset-top, 0px)) 8px calc(8px + env(safe-area-inset-bottom, 0px));
	}

	.cookie-banner__panel {
		height: auto;
		max-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
		border-radius: 16px;
		overflow-y: auto;
	}

	#cookie-banner.cookie-banner--expanded .cookie-banner__panel {
		height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
	}

	.cookie-banner__top,
	.cookie-banner__body {
		padding: 14px;
	}

	.cookie-banner__top h3 {
		font-size: 18px;
	}

	.cookie-banner__top p,
	.cookie-option__text,
	.cookie-banner__footer {
		font-size: 11px;
		line-height: 1.45;
	}

	.cookie-banner__options {
		grid-template-columns: 1fr;
		gap: 8px;
		margin: 6px 0 14px;
	}

	.cookie-option {
		min-height: 0;
		padding: 12px;
		border-radius: 14px;
	}

	.cookie-option__title {
		font-size: 14px;
		margin-bottom: 8px;
	}

	.cookie-banner__actions {
		flex-direction: column;
		gap: 8px;
	}

	.cookie-btn {
		width: 100%;
		padding: 14px 18px;
		font-size: 14px;
		min-height: 48px;
	}

	#cookie-settings-trigger {
		right: 12px;
		bottom: 12px;
		padding: 11px 14px;
	}
}
