.cbp-banner,
.cbp-modal {
	box-sizing: border-box;
	color: var(--cbp-foreground);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.cbp-banner *,
.cbp-banner *::before,
.cbp-banner *::after,
.cbp-modal *,
.cbp-modal *::before,
.cbp-modal *::after {
	box-sizing: border-box;
}

.cbp-banner[hidden],
.cbp-modal[hidden] {
	display: none !important;
}

.cbp-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 99998;
	padding: 18px;
	background: var(--cbp-background);
	color: var(--cbp-foreground);
	border-top: 1px solid var(--cbp-border);
	box-shadow: 0 -16px 44px rgba(15, 23, 42, 0.16);
}

.cbp-banner--no-shadow {
	box-shadow: none;
}

.cbp-banner--top {
	top: 0;
	bottom: auto;
	border-top: 0;
	border-bottom: 1px solid var(--cbp-border);
	box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14);
}

.cbp-banner--bottom {
	bottom: 0;
}

.cbp-banner__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px 28px;
	align-items: center;
	max-width: var(--cbp-content-width);
	margin: 0 auto;
	padding: 4px 0;
}

.cbp-banner--width-full .cbp-banner__content {
	max-width: none;
}

.cbp-banner--align-center .cbp-banner__content {
	text-align: center;
}

.cbp-banner--align-center .cbp-banner__actions {
	justify-content: center;
}

.cbp-banner__copy {
	min-width: 0;
	max-width: 760px;
}

.cbp-banner--align-center .cbp-banner__copy {
	margin-inline: auto;
}

.cbp-banner__title,
.cbp-modal h2 {
	margin: 0;
	color: var(--cbp-foreground);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
}

.cbp-banner__message {
	margin: 7px 0 0;
	color: var(--cbp-foreground);
	font-size: 14px;
	line-height: 1.6;
	opacity: 0.82;
}

.cbp-banner__actions,
.cbp-modal__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
}

.cbp-banner__actions {
	min-width: min(100%, 360px);
}

.cbp-banner__categories {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding-top: 4px;
	font-size: 13px;
}

.cbp-inline-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 6px 10px;
	background: #f8fafc;
	border: 1px solid var(--cbp-border);
	border-radius: 999px;
	cursor: pointer;
	user-select: none;
}

.cbp-inline-toggle input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--cbp-accent);
}

.cbp-button,
.cbp-preferences-button,
.cbp-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin: 0;
	padding: 10px 16px;
	appearance: none;
	background: #ffffff;
	border: 1px solid var(--cbp-border);
	border-radius: var(--cbp-button-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	color: var(--cbp-foreground);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		box-shadow 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.cbp-button:hover,
.cbp-preferences-button:hover,
.cbp-icon-button:hover {
	border-color: var(--cbp-accent);
	box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

.cbp-button:active,
.cbp-preferences-button:active,
.cbp-icon-button:active {
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transform: translateY(0);
}

.cbp-button--primary {
	border-color: var(--cbp-accent);
	background: var(--cbp-accent);
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.cbp-button--primary:hover {
	background: var(--cbp-accent);
	color: #ffffff;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.cbp-button--secondary {
	background: #ffffff;
}

.cbp-button:focus-visible,
.cbp-preferences-button:focus-visible,
.cbp-icon-button:focus-visible,
.cbp-inline-toggle input:focus-visible,
.cbp-toggle input:focus-visible + .cbp-toggle__switch {
	outline: 3px solid var(--cbp-accent);
	outline-offset: 3px;
}

.cbp-banner--type-box,
.cbp-banner--type-popup {
	left: 18px;
	right: auto;
	width: min(460px, calc(100vw - 36px));
	padding: 18px;
	background: var(--cbp-background);
	border: 1px solid var(--cbp-border);
	border-radius: max(var(--cbp-radius), 10px);
	box-shadow: 0 22px 70px rgba(15, 23, 42, 0.22);
}

.cbp-banner--type-box .cbp-banner__content,
.cbp-banner--type-popup .cbp-banner__content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	padding: 0;
}

.cbp-banner--type-box .cbp-banner__actions,
.cbp-banner--type-popup .cbp-banner__actions {
	justify-content: stretch;
	min-width: 0;
}

.cbp-banner--type-box .cbp-button,
.cbp-banner--type-popup .cbp-button {
	flex: 1 1 auto;
}

.cbp-banner--position-bottom_right {
	left: auto;
	right: 18px;
	bottom: 18px;
}

.cbp-banner--position-bottom_left {
	left: 18px;
	right: auto;
	bottom: 18px;
}

.cbp-banner--position-top_right {
	left: auto;
	right: 18px;
	top: 18px;
	bottom: auto;
}

.cbp-banner--position-top_left {
	left: 18px;
	right: auto;
	top: 18px;
	bottom: auto;
}

.cbp-banner--type-banner {
	left: 0;
	right: 0;
	width: auto;
	border-right: 0;
	border-left: 0;
	border-radius: 0;
}

.cbp-banner--type-banner.cbp-banner--top {
	top: 0;
	bottom: auto;
}

.cbp-banner--type-banner.cbp-banner--bottom {
	top: auto;
	bottom: 0;
}

.cbp-banner--type-popup {
	left: 50%;
	right: auto;
	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%);
}

.cbp-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.cbp-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
}

.cbp-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(680px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	margin: 16px auto;
	overflow: hidden;
	background: var(--cbp-background);
	border: 1px solid var(--cbp-border);
	border-radius: max(var(--cbp-radius), 12px);
	box-shadow: 0 30px 90px rgba(15, 23, 42, 0.3);
}

.cbp-modal--sidebar .cbp-modal__panel {
	width: min(440px, 100vw);
	height: 100vh;
	max-height: 100vh;
	margin: 0 0 0 auto;
	border-radius: 0;
}

.cbp-modal--push_down {
	position: fixed;
	inset: 0 auto auto 0;
	width: 100%;
}

.cbp-modal--push_down .cbp-modal__backdrop {
	display: none;
}

.cbp-modal--push_down .cbp-modal__panel {
	width: 100%;
	max-height: 72vh;
	margin: 0;
	border-radius: 0;
}

.cbp-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--cbp-border);
}

.cbp-modal__body {
	display: grid;
	gap: 10px;
	overflow: auto;
	padding: 16px 20px;
	background: #f8fafc;
}

.cbp-modal__footer {
	padding: 16px 20px;
	background: #ffffff;
	border-top: 1px solid var(--cbp-border);
}

.cbp-icon-button {
	width: 38px;
	min-width: 38px;
	min-height: 38px;
	padding: 0;
	border-radius: 999px;
	font-weight: 700;
}

.cbp-toggle {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	margin: 0;
	padding: 16px;
	background: #ffffff;
	border: 1px solid var(--cbp-border);
	border-radius: max(var(--cbp-radius), 10px);
	cursor: pointer;
}

.cbp-toggle__copy {
	display: grid;
	gap: 4px;
	color: var(--cbp-foreground);
	font-size: 14px;
	line-height: 1.45;
}

.cbp-toggle__copy strong {
	font-size: 15px;
	font-weight: 700;
}

.cbp-toggle__copy span {
	opacity: 0.76;
}

.cbp-toggle__control {
	display: inline-flex;
	cursor: pointer;
}

.cbp-toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cbp-toggle__switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 28px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 999px;
	background: #cbd5e1;
	transition:
		background-color 160ms ease,
		border-color 160ms ease;
}

.cbp-toggle__switch::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	content: "";
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.24);
	transition: transform 160ms ease;
}

.cbp-toggle input:checked + .cbp-toggle__switch {
	background: var(--cbp-accent);
	border-color: var(--cbp-accent);
}

.cbp-toggle input:checked + .cbp-toggle__switch::after {
	transform: translateX(20px);
}

.cbp-toggle input:disabled + .cbp-toggle__switch {
	opacity: 0.65;
}

.cbp-cookie-details {
	margin-top: 8px;
	font-size: 13px;
}

.cbp-cookie-details summary {
	display: inline-flex;
	align-items: center;
	color: var(--cbp-accent);
	cursor: pointer;
	font-weight: 650;
}

.cbp-cookie-details p,
.cbp-cookie-details ul {
	margin: 8px 0 0;
}

.cbp-cookie-details ul {
	display: grid;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.cbp-cookie-details li {
	display: grid;
	gap: 2px;
	padding: 8px 10px;
	background: #f8fafc;
	border: 1px solid var(--cbp-border);
	border-radius: 8px;
}

.cbp-cookie-details li strong {
	font-size: 13px;
}

.cbp-cookie-details li span,
.cbp-cookie-details li em {
	font-style: normal;
	opacity: 0.76;
}

.cbp-cookie-policy {
	display: grid;
	gap: 14px;
}

.cbp-cookie-policy__updated {
	margin: 0;
	opacity: 0.76;
}

.cbp-cookie-empty {
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid var(--cbp-border);
	border-radius: var(--cbp-radius);
}

.cbp-cookie-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1px solid var(--cbp-border);
	border-radius: var(--cbp-radius);
}

.cbp-cookie-table th,
.cbp-cookie-table td {
	padding: 12px;
	border-bottom: 1px solid var(--cbp-border);
	text-align: left;
	vertical-align: top;
}

.cbp-cookie-table th {
	background: #f8fafc;
	font-weight: 700;
}

.cbp-cookie-table tr:last-child td {
	border-bottom: 0;
}

@media (max-width: 860px) {
	.cbp-banner__content {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.cbp-banner__copy {
		max-width: none;
	}

	.cbp-banner__actions,
	.cbp-modal__footer {
		justify-content: stretch;
	}

	.cbp-banner__actions .cbp-button,
	.cbp-modal__footer .cbp-button {
		flex: 1 1 100%;
	}
}

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

	.cbp-banner--type-box,
	.cbp-banner--type-popup,
	.cbp-banner--position-bottom_right,
	.cbp-banner--position-bottom_left,
	.cbp-banner--position-top_right,
	.cbp-banner--position-top_left {
		left: 12px;
		right: 12px;
		width: auto;
	}

	.cbp-banner--position-bottom_right,
	.cbp-banner--position-bottom_left {
		bottom: 12px;
	}

	.cbp-banner--position-top_right,
	.cbp-banner--position-top_left {
		top: 12px;
	}

	.cbp-banner--type-banner {
		left: 0;
		right: 0;
		width: auto;
	}

	.cbp-banner--type-banner.cbp-banner--bottom {
		bottom: 0;
	}

	.cbp-banner--type-banner.cbp-banner--top {
		top: 0;
	}

	.cbp-banner--type-popup {
		left: 12px;
		right: 12px;
		top: 50%;
		bottom: auto;
		width: auto;
		transform: translateY(-50%);
	}

	.cbp-banner__title,
	.cbp-modal h2 {
		font-size: 17px;
	}

	.cbp-modal__panel {
		width: 100vw;
		max-height: 100vh;
		margin: 0;
		border-radius: 0;
	}

	.cbp-modal__header,
	.cbp-modal__body,
	.cbp-modal__footer {
		padding-inline: 14px;
	}

	.cbp-toggle {
		padding: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cbp-button,
	.cbp-preferences-button,
	.cbp-icon-button,
	.cbp-toggle__switch,
	.cbp-toggle__switch::after {
		transition: none;
	}
}

@media (forced-colors: active) {
	.cbp-button,
	.cbp-preferences-button,
	.cbp-icon-button,
	.cbp-modal__panel,
	.cbp-banner,
	.cbp-toggle,
	.cbp-cookie-table {
		border: 1px solid CanvasText;
	}
}
