.viz-cookie {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	padding: 16px 0;
	pointer-events: none;
}

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

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

.viz-cookie__inner {
	width: 94%;
	max-width: 1240px;
	margin: 0 auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: var(--shadow);
	border: 1px solid rgba(46, 46, 46, 0.08);
	padding: 16px 16px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 14px 18px;
	align-items: center;
	pointer-events: auto;
	transform: translateY(18px);
	opacity: 0;
	transition: transform 260ms ease, opacity 260ms ease;
}

.viz-cookie.is-visible .viz-cookie__inner {
	transform: translateY(0);
	opacity: 1;
}

.viz-cookie.is-hiding .viz-cookie__inner {
	transform: translateY(18px);
	opacity: 0;
}

.viz-cookie__title {
	font-family: "Proxima Nova Semibold", sans-serif;
	font-weight: 600;
	font-size: 18px;
	margin-bottom: 6px;
}

.viz-cookie__desc {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.35;
}

.viz-cookie__link {
	display: inline-block;
	margin-left: 8px;
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(46, 46, 46, 0.35);
}

.viz-cookie__actions {
	display: inline-flex;
	gap: 5px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.viz-cookie__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 10px;
	border: 1px solid rgba(46, 46, 46, 0.16);
	background: #fff;
	color: var(--text);
	font-family: "Proxima Nova Semibold", sans-serif;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: 0.2s ease;
}

.viz-cookie__btn:hover {
	border-color: rgba(46, 46, 46, 0.24);
	transform: translateY(-1px);
}

.viz-cookie__btn--primary {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.viz-cookie__btn--primary:hover {
	filter: brightness(0.98);
}

.viz-cookie__btn--ghost {
	background: #fff;
}

/* Modal */
.viz-cookie-modal[hidden] {
	display: none !important;
}

.viz-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 20px;
}

.viz-cookie-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.48);
}

.viz-cookie-modal__dialog {
	position: relative;
	width: min(720px, 100%);
	background: #fff;
	border-radius: 14px;
	box-shadow: var(--shadow);
	padding: 18px 18px;
	border: 1px solid rgba(46, 46, 46, 0.08);
}

.viz-cookie-modal__close {
	position: absolute;
	right: 10px;
	top: 10px;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	border: 1px solid rgba(46, 46, 46, 0.12);
	background: #fff;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
}

.viz-cookie-modal__title {
	font-family: "Proxima Nova Extrabold", "Proxima Nova Semibold", sans-serif;
	font-weight: 700;
	font-size: 22px;
	margin: 0 0 8px;
}

.viz-cookie-modal__subtitle {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.35;
	margin-bottom: 14px;
}

.viz-cookie-cat {
	border: 1px solid rgba(46, 46, 46, 0.10);
	border-radius: 12px;
	padding: 12px 12px;
	margin-bottom: 10px;
}

.viz-cookie-cat__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.viz-cookie-cat__name {
	font-family: "Proxima Nova Semibold", sans-serif;
	font-weight: 600;
	font-size: 16px;
}

.viz-cookie-cat__desc {
	margin-top: 6px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.35;
}

.viz-cookie-modal__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
	margin-top: 14px;
}

.viz-cookie-modal__note {
	margin-top: 10px;
	font-size: 14px;
	color: var(--muted);
}

/* Switch */
.viz-cookie-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.viz-cookie-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.viz-cookie-switch__ui {
	width: 46px;
	height: 28px;
	border-radius: 999px;
	background: rgba(46, 46, 46, 0.16);
	display: inline-block;
	position: relative;
	transition: 180ms ease;
}

.viz-cookie-switch__ui::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
	transition: 180ms ease;
}

.viz-cookie-switch input:checked + .viz-cookie-switch__ui {
	background: rgba(var(--primary-rgb), 0.95);
}

.viz-cookie-switch input:checked + .viz-cookie-switch__ui::after {
	left: 22px;
}

.viz-cookie-switch input:disabled + .viz-cookie-switch__ui {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Floating button to reopen settings */
.viz-cookie-fab[hidden] {
	display: none !important;
}

.viz-cookie-fab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 9998;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(46, 46, 46, 0.14);
	box-shadow: 0 10px 24px rgba(43, 43, 43, 0.14);
	cursor: pointer;
	font-family: "Proxima Nova Semibold", sans-serif;
	font-weight: 600;
	color: var(--text);
}

@media (max-width: 760px) {
	.viz-cookie__inner {
		grid-template-columns: 1fr;
	}
	.viz-cookie__actions {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.viz-cookie__inner,
	.viz-cookie__btn {
		transition: none !important;
	}
}


