.cookie-consent {
	position: relative;
	z-index: 12000;
}

.cookie-consent-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 12001;
	max-width: 980px;
	margin: 0 auto;
	border: 1px solid #d7e2ee;
	border-radius: 1rem;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

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

.cookie-consent-banner__content {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.1rem;
}

.cookie-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	background: #0c4f86;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cookie-title {
	margin: 0.35rem 0 0.25rem;
	font-size: 1.05rem;
}

.cookie-text {
	margin: 0;
	color: #475569;
	font-size: 0.9rem;
	line-height: 1.45;
}

.cookie-consent-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
	min-width: min(100%, 28rem);
}

.btn {
	appearance: none;
	border-radius: 10px;
	border: 1px solid transparent;
	padding: 0.55rem 0.9rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	line-height: 1.2;
}

.btn-outline {
	background: #fff;
	border-color: #94a3b8;
	color: #243044;
}

.btn-outline:hover,
.btn-outline:focus-visible {
	background: #334155;
	border-color: #334155;
	color: #fff;
}

.btn-outline-primary {
	background: #fff;
	border-color: #0c4f86;
	color: #0c4f86;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
	background: #0c4f86;
	color: #fff;
}

.btn-primary {
	background: #0c4f86;
	border-color: #0c4f86;
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: #08365e;
}

.cookie-modal[hidden] {
	display: none !important;
}

.cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 12060;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(15, 23, 42, 0.45);
}

.cookie-modal__dialog {
	width: min(720px, 100%);
	max-height: min(90vh, 760px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.cookie-modal__header,
.cookie-modal__footer {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	border-bottom: 1px solid #e2e8f0;
	flex: 0 0 auto;
}

.cookie-modal__footer {
	border-bottom: 0;
	border-top: 1px solid #e2e8f0;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.cookie-modal__body {
	padding: 1rem 1.15rem 1.25rem;
	display: grid;
	gap: 0.85rem;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.cookie-modal__close {
	border: 0;
	background: transparent;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	width: 36px;
	height: 36px;
	border-radius: 10px;
}

.cookie-modal__close:hover,
.cookie-modal__close:focus-visible {
	background: #eef3f8;
	color: #0f172a;
}

.cookie-cat {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.85rem;
}

.cookie-cat h3 {
	margin: 0 0 0.25rem;
	font-size: 0.95rem;
}

.cookie-cat p,
.cookie-cat ul {
	margin: 0;
	color: #64748b;
	font-size: 0.84rem;
}

.cookie-cat ul {
	margin-top: 0.4rem;
	padding-left: 1.1rem;
}

.cookie-cat .switch {
	flex: 0 0 auto;
	align-self: flex-start;
}

.cookie-links {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
}

.cookie-links a {
	color: #0c4f86;
	font-weight: 600;
	text-decoration: none;
}

.cookie-links a:hover {
	text-decoration: underline;
}

.cookie-fab {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 11990;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background: #0c4f86;
	color: #fff;
	box-shadow: 0 10px 24px rgba(8, 54, 94, 0.28);
	cursor: pointer;
	font-size: 1.15rem;
}

.cookie-fab:hover,
.cookie-fab:focus-visible {
	background: #08365e;
}

body.cookie-modal-open {
	overflow: hidden;
}

body.cookie-modal-open .cookie-fab,
body.cookie-modal-open .cookie-consent-banner {
	visibility: hidden;
}

@media (max-width: 860px) {
	.cookie-fab {
		display: none;
	}

	.cookie-consent-banner {
		left: 0.65rem;
		right: 0.65rem;
		bottom: 0.65rem;
		border-radius: 14px;
	}

	.cookie-consent-banner__content {
		align-items: stretch;
		flex-direction: column;
		padding: 0.9rem;
		gap: 0.85rem;
	}

	.cookie-consent-banner__actions {
		min-width: 0;
		display: grid;
		grid-template-columns: 1fr;
	}

	.cookie-consent-banner__actions .btn {
		width: 100%;
		justify-content: center;
	}

	.cookie-modal {
		padding: 0;
		place-items: stretch;
	}

	.cookie-modal__dialog {
		width: 100%;
		max-height: 100dvh;
		height: 100dvh;
		border-radius: 0;
	}

	.cookie-modal__header,
	.cookie-modal__footer,
	.cookie-modal__body {
		padding: 0.9rem 1rem;
	}

	.cookie-modal__footer {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.cookie-modal__footer .btn {
		width: 100%;
	}

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

	.cookie-cat .switch {
		align-self: flex-end;
	}
}
