/**
 * INKIQ Consent — banner, Manage Consent dialog, re-open tab.
 * Matches the live Complianz look: bottom banner, white background,
 * black text, 12px radius, 12px base font, 6px button radius,
 * box shadow, no animation.
 */

.inkiq-consent-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 999990;
	max-width: 720px;
	margin: 0 auto;
	padding: 16px 40px 16px 16px;
	background: #ffffff;
	color: #000000;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
	font-size: 12px;
	line-height: 1.5;
}

.inkiq-consent-banner[hidden],
.inkiq-consent-overlay[hidden],
.inkiq-consent-tab[hidden] {
	display: none;
}

.inkiq-consent-message {
	margin: 0 0 12px;
	font-size: 12px;
}

.inkiq-consent-message a {
	color: #000000;
	text-decoration: underline;
}

.inkiq-consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.inkiq-consent-btn {
	appearance: none;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.4;
	padding: 8px 14px;
	cursor: pointer;
}

.inkiq-consent-btn-accept,
.inkiq-consent-btn-save {
	background: #000000;
	color: #ffffff;
	border: 1px solid #000000;
}

.inkiq-consent-btn-manage {
	background: #ffffff;
	color: #000000;
	border: 1px solid #000000;
}

.inkiq-consent-close {
	position: absolute;
	top: 6px;
	right: 10px;
	appearance: none;
	background: none;
	border: 0;
	color: #000000;
	font-size: 18px;
	line-height: 1;
	padding: 4px;
	cursor: pointer;
}

/* Manage Consent dialog */

.inkiq-consent-overlay {
	position: fixed;
	inset: 0;
	z-index: 999995;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.inkiq-consent-dialog {
	position: relative;
	background: #ffffff;
	color: #000000;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 20px 40px 20px 20px;
	font-size: 12px;
	line-height: 1.5;
}

.inkiq-consent-dialog-title {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.3;
}

.inkiq-consent-category {
	border-top: 1px solid #e2e2e2;
	padding: 10px 0;
}

.inkiq-consent-category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.inkiq-consent-category-label {
	font-weight: 600;
}

.inkiq-consent-category-desc {
	margin: 6px 0 0;
	color: #333333;
}

.inkiq-consent-dialog-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #e2e2e2;
	padding-top: 14px;
	margin-top: 4px;
}

.inkiq-consent-optout-link {
	color: #000000;
	text-decoration: underline;
	font-size: 12px;
}

/* Slider toggle */

.inkiq-consent-switch {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 22px;
	flex: 0 0 auto;
}

.inkiq-consent-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.inkiq-consent-slider {
	position: absolute;
	inset: 0;
	background: #cccccc;
	border-radius: 22px;
	cursor: pointer;
}

.inkiq-consent-slider::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 16px;
	height: 16px;
	background: #ffffff;
	border-radius: 50%;
}

.inkiq-consent-switch input:checked + .inkiq-consent-slider {
	background: #000000;
}

.inkiq-consent-switch input:checked + .inkiq-consent-slider::before {
	transform: translateX(16px);
}

.inkiq-consent-switch input:disabled + .inkiq-consent-slider {
	opacity: 0.55;
	cursor: not-allowed;
}

.inkiq-consent-switch input:focus-visible + .inkiq-consent-slider {
	outline: 2px solid #000000;
	outline-offset: 2px;
}

/* Re-open tab (stays available after consent is set) */

.inkiq-consent-tab {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 999980;
	appearance: none;
	background: rgba(255, 255, 255, 0.92);
	color: #000000;
	border: 1px solid #bbbbbb;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	font-size: 11px;
	line-height: 1.4;
	padding: 5px 9px;
	cursor: pointer;
}
