.sict-cookie {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 20px;
	font-family: inherit;
	color: #172033;
}

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

.sict-cookie__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 20, 31, 0.34);
}

.sict-cookie__panel {
	position: relative;
	width: min(100%, 680px);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 28px;
	border: 1px solid rgba(23, 32, 51, 0.12);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 24px 70px rgba(14, 20, 31, 0.24);
}

.sict-cookie__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #172033;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.sict-cookie__close:hover,
.sict-cookie__close:focus-visible {
	background: #eef1f6;
	outline: none;
}

.sict-cookie__content {
	padding-right: 28px;
}

.sict-cookie__content h2 {
	margin: 0 0 12px;
	color: #111827;
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	line-height: 1.2;
	letter-spacing: 0;
}

.sict-cookie__content p {
	margin: 0;
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.6;
}

.sict-cookie__details {
	display: grid;
	gap: 12px;
	margin-top: 22px;
}

.sict-cookie__details[hidden] {
	display: none;
}

.sict-cookie__option {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border: 1px solid #d9dee7;
	border-radius: 8px;
	background: #f8fafc;
}

.sict-cookie__option strong,
.sict-cookie__option span {
	display: block;
}

.sict-cookie__option strong {
	margin-bottom: 4px;
	color: #172033;
	font-size: 0.98rem;
}

.sict-cookie__option span {
	color: #5b6473;
	font-size: 0.92rem;
	line-height: 1.45;
}

.sict-cookie__switch {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: 52px;
	height: 30px;
	cursor: pointer;
}

.sict-cookie__switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.sict-cookie__switch span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #b8c1cf;
	transition: background 160ms ease;
}

.sict-cookie__switch span::before {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
	content: "";
	transition: transform 160ms ease;
}

.sict-cookie__switch input:checked + span {
	background: #177245;
}

.sict-cookie__switch input:checked + span::before {
	transform: translateX(22px);
}

.sict-cookie__switch input:focus-visible + span {
	outline: 3px solid rgba(23, 114, 69, 0.3);
	outline-offset: 3px;
}

.sict-cookie__switch input:disabled + span {
	cursor: not-allowed;
	opacity: 0.75;
}

.sict-cookie__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.sict-cookie__button {
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sict-cookie__button[hidden] {
	display: none;
}

.sict-cookie__button--primary {
	background: #1C0A9C;
	color: #ffffff;
}

.sict-cookie__button--primary:hover,
.sict-cookie__button--primary:focus-visible {
	background: #FFB102;
	color: #000000;
}

.sict-cookie__button--secondary {
	border-color: #1C0A9C;
	background: #1C0A9C;
	color: #ffffff;
}

.sict-cookie__button--secondary:hover,
.sict-cookie__button--secondary:focus-visible {
	border-color: #FFB102;
	background: #FFB102;
	color: #000000;
}

.sict-cookie__button--ghost {
	background: #1C0A9C;
	color: #ffffff;
}

.sict-cookie__button--ghost:hover,
.sict-cookie__button--ghost:focus-visible {
	background: #FFB102;
	color: #000000;
}

.sict-cookie__button:focus-visible {
	outline: 3px solid rgba(23, 114, 69, 0.3);
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.sict-cookie {
		padding: 12px;
	}

	.sict-cookie__panel {
		padding: 22px;
	}

	.sict-cookie__actions {
		display: grid;
	}

	.sict-cookie__button {
		width: 100%;
	}

	.sict-cookie__option {
		align-items: flex-start;
	}
}
