.quki-consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 99998;
	background: #1e1e1e;
	color: #f5f5f5;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
	font-size: 14px;
	line-height: 1.5;
}

.quki-consent-banner--bottom {
	bottom: 0;
}

.quki-consent-banner--top {
	top: 0;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.quki-consent-banner--hidden {
	display: none;
}

.quki-consent-banner__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	justify-content: space-between;
}

.quki-consent-banner__content {
	flex: 1 1 280px;
	min-width: 0;
}

.quki-consent-banner__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
}

.quki-consent-banner__description {
	margin: 0 0 8px;
	color: #d0d0d0;
}

.quki-consent-banner__links a,
.quki-consent-modal__links a {
	color: #8ec8ff;
	text-decoration: underline;
}

.quki-consent-banner__actions,
.quki-consent-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.quki-consent-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 4px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	line-height: 1.2;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.quki-consent-btn--primary {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.quki-consent-btn--primary:hover {
	background: #135e96;
	border-color: #135e96;
}

.quki-consent-btn--secondary {
	background: transparent;
	color: #f5f5f5;
	border-color: #888;
}

.quki-consent-btn--secondary:hover {
	border-color: #ccc;
	color: #fff;
}

.quki-consent-btn--text {
	background: transparent;
	color: #8ec8ff;
	border-color: transparent;
	padding-left: 8px;
	padding-right: 8px;
}

.quki-consent-btn--text:hover {
	text-decoration: underline;
}

.quki-consent-manage {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 99997;
	padding: 8px 14px;
	font-size: 12px;
	background: #1e1e1e;
	color: #f5f5f5;
	border: 1px solid #555;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0.85;
}

.quki-consent-manage:hover {
	opacity: 1;
}

.quki-consent-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.quki-consent-modal[hidden] {
	display: none;
}

.quki-consent-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.quki-consent-modal__panel {
	position: relative;
	background: #fff;
	color: #1e1e1e;
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 8px;
	padding: 28px 24px 24px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.quki-consent-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 4px 8px;
}

.quki-consent-modal__close:hover {
	color: #000;
}

.quki-consent-modal__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
	padding-right: 32px;
}

.quki-consent-modal__intro,
.quki-consent-modal__note {
	margin: 0 0 12px;
	color: #444;
	font-size: 14px;
}

.quki-consent-modal__links {
	margin: 0 0 16px;
	font-size: 14px;
}

.quki-consent-categories {
	margin: 16px 0 20px;
	border-top: 1px solid #e0e0e0;
}

.quki-consent-category {
	border-bottom: 1px solid #e0e0e0;
}

.quki-consent-category__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 4px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
}

.quki-consent-category__summary::-webkit-details-marker {
	display: none;
}

.quki-consent-category__summary::before {
	content: "►";
	display: inline-block;
	margin-right: 8px;
	font-size: 10px;
	transition: transform 0.15s;
}

.quki-consent-category[open] .quki-consent-category__summary::before {
	transform: rotate(90deg);
}

.quki-consent-category__badge {
	font-size: 12px;
	font-weight: 500;
	color: #666;
	white-space: nowrap;
}

.quki-consent-category__desc {
	margin: 0 0 14px 24px;
	font-size: 13px;
	color: #555;
	line-height: 1.5;
}

.quki-consent-toggle {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}

.quki-consent-toggle__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.quki-consent-toggle__slider {
	display: block;
	width: 44px;
	height: 24px;
	background: #ccc;
	border-radius: 24px;
	transition: background 0.2s;
}

.quki-consent-toggle__slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.quki-consent-toggle__input:checked + .quki-consent-toggle__slider {
	background: #2271b1;
}

.quki-consent-toggle__input:checked + .quki-consent-toggle__slider::after {
	transform: translateX(20px);
}

.quki-consent-toggle__input:focus-visible + .quki-consent-toggle__slider {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.quki-consent-banner__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.quki-consent-banner__actions {
		flex-direction: column;
	}

	.quki-consent-banner__actions .quki-consent-btn {
		width: 100%;
	}

	.quki-consent-modal__actions {
		flex-direction: column;
	}

	.quki-consent-modal__actions .quki-consent-btn {
		width: 100%;
	}
}
