.consentkit-banner,
.consentkit-modal {
	box-sizing: border-box;
}

.consentkit-banner *,
.consentkit-modal * {
	box-sizing: border-box;
}

.consentkit-banner {
	position: fixed;
	left: 24px;
	right: 24px;
	bottom: 24px;
	z-index: 99998;
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	max-width: 1080px;
	margin: 0 auto;
	padding: 20px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
	color: #111827;
}

.consentkit-banner[hidden],
.consentkit-modal[hidden] {
	display: none !important;
}

.consentkit-banner__content {
	max-width: 680px;
}

.consentkit-banner__title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
}

.consentkit-banner__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #4b5563;
}

.consentkit-banner__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.consentkit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.consentkit-button:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.consentkit-button--primary {
	background: var(--consentkit-primary-color, #2563eb);
	color: #ffffff;
}

.consentkit-button--secondary {
	background: #f3f4f6;
	border-color: #e5e7eb;
	color: #111827;
}

.consentkit-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.consentkit-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.consentkit-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 28px;
	background: #ffffff;
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
	color: #111827;
}

.consentkit-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #111827;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.consentkit-modal__title {
	margin: 0 48px 20px 0;
	font-size: 24px;
	line-height: 1.3;
}

.consentkit-toggle {
	position: relative;
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 14px;
	align-items: flex-start;
	padding: 18px 0;
	border-top: 1px solid #e5e7eb;
	cursor: pointer;
}

.consentkit-toggle input {
	position: relative;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	border: 2px solid #cbd5e1;
	border-radius: 7px;
	background: #ffffff;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.consentkit-toggle input:checked {
	background: var(--consentkit-primary-color, #2563eb);
	border-color: var(--consentkit-primary-color, #2563eb);
}

.consentkit-toggle input:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.consentkit-toggle input:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.consentkit-toggle input:disabled {
	background: #f8fafc;
	border-color: var(--consentkit-primary-color, #2563eb);
	cursor: not-allowed;
	opacity: 1;
}

.consentkit-toggle input:disabled:checked {
	background: var(--consentkit-primary-color, #2563eb);
}

.consentkit-toggle span {
	display: block;
	min-width: 0;
}

.consentkit-toggle strong {
	display: block;
	margin-bottom: 5px;
	font-size: 15px;
	line-height: 1.35;
	color: #111827;
}

.consentkit-toggle small {
	display: block;
	max-width: 480px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.5;
}

.consentkit-modal__dialog {
	border: 1px solid rgba(255, 255, 255, 0.75);
}

.consentkit-modal__overlay {
	backdrop-filter: blur(6px);
}

.consentkit-button:focus-visible,
.consentkit-modal__close:focus-visible,
.consentkit-preferences-button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
}

.consentkit-button--primary:hover {
	background: var(--consentkit-primary-color, #2563eb);
}

.consentkit-modal__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.consentkit-modal-open {
	overflow: hidden;
}

.consentkit-policy-page,
.consentkit-preferences-page {
	max-width: 820px;
}

.consentkit-company-info {
	padding-left: 20px;
}

.consentkit-toggle input:checked {
	accent-color: var(--consentkit-primary-color, #2563eb);
}

.consentkit-preferences-button:hover {
	border-color: var(--consentkit-primary-color, #2563eb);
}

@media (max-width: 768px) {
	.consentkit-banner {
		left: 12px;
		right: 12px;
		bottom: 12px;
		flex-direction: column;
		align-items: stretch;
		padding: 18px;
	}

	.consentkit-banner__actions,
	.consentkit-modal__actions {
		flex-direction: column;
	}

	.consentkit-button {
		width: 100%;
	}

	.consentkit-modal {
		padding: 12px;
	}

	.consentkit-modal__dialog {
		padding: 22px;
		border-radius: 18px;
	}
}

.consentkit-preferences-wrapper {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99997;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}

.consentkit-preferences-wrapper[hidden] {
	display: none !important;
}

.consentkit-preferences-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 8px 10px 8px 12px;
	border: 0;
	background: transparent;
	color: #111827;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.consentkit-preferences-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	color: #111827;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	opacity: 0.8;
}

.consentkit-preferences-close:hover,
.consentkit-preferences-close:focus {
	opacity: 1;
	background: #e5e7eb;
}

@keyframes consentkit-banner-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes consentkit-modal-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes consentkit-modal-dialog-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.consentkit-banner:not([hidden]) {
	animation: consentkit-banner-in 0.28s ease-out;
}

.consentkit-modal:not([hidden]) {
	animation: consentkit-modal-fade-in 0.2s ease-out;
}

.consentkit-modal:not([hidden]) .consentkit-modal__dialog {
	animation: consentkit-modal-dialog-in 0.26s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.consentkit-banner,
	.consentkit-modal,
	.consentkit-modal__dialog,
	.consentkit-button {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}

.consentkit-banner__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.5;
}

.consentkit-banner__links a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.consentkit-banner__links a:hover,
.consentkit-banner__links a:focus {
	opacity: 1;
}

.consentkit-banner__links span {
	opacity: 0.5;
}

.consentkit-modal__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 13px;
	line-height: 1.5;
}

.consentkit-modal__links a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.consentkit-modal__links a:hover,
.consentkit-modal__links a:focus {
	opacity: 1;
}

.consentkit-modal__links span {
	opacity: 0.5;
}

.consentkit-preferences-wrapper {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 8px;
}

.consentkit-preferences-close {
	width: 28px;
	height: 28px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 999px;
	background: #ffffff;
	color: #111827;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		opacity 0.2s ease;
	opacity: 1;
}

.consentkit-preferences-close:hover,
.consentkit-preferences-close:focus {
	background: #f3f4f6;
	border-color: rgba(0, 0, 0, 0.2);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}