:root {
	--kosher-bg: rgba(15, 23, 42, 0.94);
	--kosher-panel: rgba(255, 255, 255, 0.9);
	--kosher-panel-strong: #ffffff;
	--kosher-text: #eff6ff;
	--kosher-text-dark: #0f172a;
	--kosher-muted: rgba(226, 232, 240, 0.82);
	--kosher-border: rgba(148, 163, 184, 0.24);
	--kosher-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
	--kosher-primary: #2563eb;
	--kosher-primary-hover: #1d4ed8;
	--kosher-secondary: rgba(255, 255, 255, 0.08);
	--kosher-secondary-hover: rgba(255, 255, 255, 0.14);
	--kosher-radius-lg: 20px;
	--kosher-radius-md: 14px;
	--kosher-radius-sm: 12px;
	--kosher-z-banner: 99997;
	--kosher-z-modal: 99998;
}

@media (prefers-color-scheme: light) {
	:root {
		--kosher-bg: rgba(15, 23, 42, 0.95);
		--kosher-panel-strong: #ffffff;
		--kosher-text: #eff6ff;
		--kosher-text-dark: #0f172a;
		--kosher-muted: rgba(226, 232, 240, 0.82);
		--kosher-border: rgba(148, 163, 184, 0.22);
	}
}

.kosher-modal-open {
	overflow: hidden;
}

.kosher-cookie-banner,
.kosher-cookie-modal,
.kosher-cookie-settings-trigger {
	font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.kosher-cookie-banner {
	position: fixed;
	right: 0;
	bottom: 20px;
	left: 0;
	z-index: var(--kosher-z-banner);
	display: none;
	color: var(--kosher-text);
}

.kosher-cookie-banner.is-active {
	display: block;
	animation: kosher-slide-up 220ms ease-out;
}

.kosher-cookie-banner__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-top: 1px solid #a200a2;
    background: #a200a2;
}

.kosher-cookie-banner__message {
	flex: 1 1 280px;
	min-width: 0;
}

.kosher-cookie-banner__title {
	display: block;
	margin-bottom: 6px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--kosher-text);
}

.kosher-cookie-banner__copy {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #fff;
}

.kosher-cookie-banner__actions,
.kosher-cookie-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.kosher-cookie-button,
.kosher-cookie-settings-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid transparent;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 180ms ease,
		color 180ms ease,
		border-color 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.kosher-cookie-button:hover,
.kosher-cookie-button:focus-visible,
.kosher-cookie-settings-trigger:hover,
.kosher-cookie-settings-trigger:focus-visible {
	transform: translateY(-1px);
}

.kosher-cookie-button:focus-visible,
.kosher-cookie-settings-trigger:focus-visible,
.kosher-cookie-toggle__input:focus-visible + .kosher-cookie-toggle__track {
	outline: 3px solid rgba(96, 165, 250, 0.55);
	outline-offset: 3px;
}

.kosher-cookie-button--primary {
	background: #fff;
	color: #7a147a;
	box-shadow: 0 10px 24px #7a147a38;
}

.kosher-cookie-button--primary:hover,
.kosher-cookie-button--primary:focus-visible {
	background: #7a147a;
	color: #fff;
}

.kosher-cookie-button--secondary {
	background: #fff;
	color: #7a147a;
	box-shadow: 0 10px 24px #7a147a38;
}

.kosher-cookie-button--secondary:hover,
.kosher-cookie-button--secondary:focus-visible {
	background: var(--kosher-secondary-hover);
}

.kosher-cookie-button--ghost {
    border-color: #ffecfc;
    background: #ffd4f8;
    color: #7a137a;
}

.kosher-cookie-button--ghost:hover,
.kosher-cookie-button--ghost:focus-visible {
	background: #7a137a;
	color: #ffecfc;
}

.kosher-cookie-settings-trigger {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: var(--kosher-z-banner);
	width: 48px;
	min-width: 48px;
	min-height: 48px;
	padding: 0;
	border-radius: 999px;
	border-color: rgba(15, 23, 42, 0.14);
	background: rgba(255, 255, 255, 0.94);
	color: #7a147a;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
	backdrop-filter: blur(16px);
}

.kosher-cookie-banner.is-active + .kosher-cookie-settings-trigger {
	display: none;
}

.kosher-cookie-settings-trigger svg {
	width: 20px;
	height: 20px;
	display: block;
}

.kosher-cookie-settings-trigger--shortcode {
	position: static;
}

.kosher-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 99999999999;
	display: none;
}

.kosher-cookie-modal.is-active {
	display: block;
}

.kosher-cookie-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.64);
	backdrop-filter: blur(4px);
}

.kosher-cookie-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(92vw, 560px);
	margin: 6vh auto;
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 24px;
	background:
		radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32%),
		var(--kosher-panel);
	box-shadow: var(--kosher-shadow);
	color: var(--kosher-text-dark);
}

.kosher-cookie-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.kosher-cookie-modal__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--kosher-text-dark);
	letter-spacing: 0.21px;
}

.kosher-cookie-modal__description {
	margin: 8px 0 0;
	font-size: 0.96rem;
	line-height: 1.6;
	color: rgba(15, 23, 42, 0.72);
}

.kosher-cookie-modal__close {
	width: 44px;
	min-width: 44px;
	padding: 0;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.76);
	color: var(--kosher-text-dark);
}

.kosher-cookie-modal__list {
	display: grid;
	gap: 14px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.kosher-cookie-modal__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: var(--kosher-radius-md);
	background: var(--kosher-panel-strong);
}

.kosher-cookie-modal__item-title {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--kosher-text-dark);
	letter-spacing: 0.21px;
}

.kosher-cookie-modal__item-copy {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.55;
	color: rgba(15, 23, 42, 0.68);
}

.kosher-cookie-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-top: 4px;
}

.kosher-cookie-toggle__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.kosher-cookie-toggle__track {
	position: relative;
	display: inline-flex;
	width: 52px;
	height: 32px;
	border-radius: 999px;
	background: #cbd5e1;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
	transition: background-color 180ms ease;
}

.kosher-cookie-toggle__track::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 6px 12px rgba(15, 23, 42, 0.14);
	transition: transform 180ms ease;
}

.kosher-cookie-toggle__input:checked + .kosher-cookie-toggle__track {
	background: var(--kosher-primary);
}

.kosher-cookie-toggle__input:checked + .kosher-cookie-toggle__track::after {
	transform: translateX(20px);
}

.kosher-cookie-toggle__input:disabled + .kosher-cookie-toggle__track {
	background: #94a3b8;
	cursor: not-allowed;
}

.kosher-cookie-modal__actions {
	justify-content: flex-end;
}

@media (max-width: 680px) {
	.kosher-cookie-banner {
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 10000000000000;
	}

	.kosher-cookie-banner__inner,
	.kosher-cookie-modal__dialog {
		padding: 18px;
	}

	.kosher-cookie-settings-trigger {
left: 12px;
bottom: 12px;
	}

	.kosher-cookie-modal__dialog {
		width: calc(100vw - 24px);
		margin: 12px auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kosher-cookie-banner.is-active,
	.kosher-cookie-button,
	.kosher-cookie-settings-trigger,
	.kosher-cookie-toggle__track,
	.kosher-cookie-toggle__track::after {
		animation: none;
		transition: none;
	}
}

@keyframes kosher-slide-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}
