.swesite-consent-banner,
.swesite-consent-modal,
.swesite-consent-floating-link {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.swesite-consent-banner[hidden],
.swesite-consent-modal[hidden] {
	display: none;
}

.swesite-consent-banner {
	align-items: center;
	background: rgba(255, 255, 255, .96);
	border: 1px solid rgba(148, 163, 184, .22);
	border-radius: 26px;
	box-shadow: 0 28px 80px rgba(15, 23, 42, .18);
	display: grid;
	gap: 18px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	left: 50%;
	max-width: 1180px;
	padding: 18px;
	position: fixed;
	width: min(calc(100% - 28px), 1180px);
	z-index: 99990;
}

.swesite-consent-banner.is-bottom,
.swesite-consent-banner.is-bar {
	bottom: 18px;
	transform: translateX(-50%);
}

.swesite-consent-banner.is-center {
	top: 50%;
	transform: translate(-50%, -50%);
}

.swesite-consent-banner.is-bar {
	border-radius: 18px;
	max-width: 1500px;
	width: min(calc(100% - 20px), 1500px);
}

.swesite-consent-banner__mark {
	align-items: center;
	background: linear-gradient(135deg, #2563eb, #06b6d4);
	border-radius: 18px;
	box-shadow: 0 18px 34px rgba(37, 99, 235, .22);
	color: #fff;
	display: flex;
	font-size: 20px;
	font-weight: 900;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.swesite-consent-banner h2,
.swesite-consent-modal h2,
.swesite-consent-category h3 {
	color: #0f172a;
	margin: 0;
}

.swesite-consent-banner h2 {
	font-size: 20px;
}

.swesite-consent-banner p,
.swesite-consent-modal p,
.swesite-consent-category p {
	color: #53627a;
	line-height: 1.55;
	margin: 6px 0 0;
}

.swesite-consent-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.swesite-consent-links a,
.swesite-consent-floating-link,
.swesite-footer-cookie-button {
	color: #2563eb;
	font-weight: 850;
	text-decoration: none;
}

.swesite-footer-cookie-button {
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-align: left;
}

.swesite-consent-actions,
.swesite-consent-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.swesite-consent-actions button,
.swesite-consent-modal__actions button,
.swesite-consent-modal__head button {
	background: #fff;
	border: 1px solid rgba(148, 163, 184, .28);
	border-radius: 14px;
	color: #0f172a;
	cursor: pointer;
	font: inherit;
	font-weight: 900;
	min-height: 44px;
	padding: 12px 16px;
}

.swesite-consent-actions .is-primary,
.swesite-consent-modal__actions .is-primary {
	background: linear-gradient(135deg, #2563eb, #06b6d4);
	border: 0;
	box-shadow: 0 14px 28px rgba(37, 99, 235, .2);
	color: #fff;
}

.swesite-consent-floating-link {
	background: rgba(255, 255, 255, .94);
	border: 1px solid rgba(148, 163, 184, .24);
	border-radius: 999px;
	bottom: 14px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
	cursor: pointer;
	font-size: 12px;
	padding: 8px 12px;
	position: fixed;
	right: 14px;
	z-index: 99980;
}

.swesite-consent-modal-open {
	overflow: hidden;
}

.swesite-consent-modal {
	inset: 0;
	position: fixed;
	z-index: 99995;
}

.swesite-consent-modal__backdrop {
	background: rgba(15, 23, 42, .56);
	inset: 0;
	position: absolute;
}

.swesite-consent-modal__panel {
	background: #f8fbff;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 28px;
	box-shadow: 0 34px 100px rgba(15, 23, 42, .34);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	left: 50%;
	max-height: min(780px, calc(100vh - 32px));
	overflow: hidden;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(920px, calc(100% - 28px));
}

.swesite-consent-modal__head,
.swesite-consent-modal__actions {
	align-items: center;
	background: rgba(255, 255, 255, .9);
	border-bottom: 1px solid rgba(148, 163, 184, .2);
	display: flex;
	justify-content: space-between;
	padding: 18px 22px;
}

.swesite-consent-modal__actions {
	border-bottom: 0;
	border-top: 1px solid rgba(148, 163, 184, .2);
}

.swesite-consent-modal__head span {
	color: #2563eb;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.swesite-consent-modal__head button {
	border-radius: 999px;
	font-size: 24px;
	height: 42px;
	padding: 0;
	width: 42px;
}

.swesite-consent-modal__body {
	overflow: auto;
	padding: 20px 22px;
}

.swesite-consent-categories {
	display: grid;
	gap: 12px;
	margin-top: 18px;
}

.swesite-consent-category {
	background: #fff;
	border: 1px solid rgba(148, 163, 184, .2);
	border-radius: 18px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
	padding: 16px;
}

.swesite-consent-category__top {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.swesite-consent-switch {
	display: inline-flex;
	flex: 0 0 auto;
}

.swesite-consent-switch input {
	position: absolute;
	visibility: hidden;
}

.swesite-consent-switch span {
	background: #cbd5e1;
	border-radius: 999px;
	cursor: pointer;
	display: block;
	height: 30px;
	position: relative;
	transition: .2s ease;
	width: 54px;
}

.swesite-consent-switch span::after {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
	content: "";
	height: 24px;
	left: 3px;
	position: absolute;
	top: 3px;
	transition: .2s ease;
	width: 24px;
}

.swesite-consent-switch input:checked + span {
	background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.swesite-consent-switch input:checked + span::after {
	transform: translateX(24px);
}

.swesite-consent-category details {
	color: #53627a;
	font-size: 13px;
	margin-top: 12px;
}

.swesite-consent-category summary {
	color: #2563eb;
	cursor: pointer;
	font-weight: 900;
}

.swesite-consent-category ul {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.swesite-consent-category li {
	background: #f2f7ff;
	border-radius: 12px;
	padding: 10px;
}

.swesite-consent-category li span,
.swesite-consent-category li small {
	color: #64748b;
	display: block;
}

@media (max-width: 760px) {
	.swesite-consent-floating-link[data-swesite-consent-open] {
		display: none !important;
		opacity: 0 !important;
		pointer-events: none !important;
		visibility: hidden !important;
	}

	.swesite-consent-banner {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.swesite-consent-actions,
	.swesite-consent-modal__actions {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.swesite-consent-modal__panel {
		border-radius: 0;
		height: 100vh;
		max-height: none;
		width: 100%;
	}

	.swesite-consent-category__top {
		align-items: stretch;
	}
}
