.ooec-root * {
	box-sizing: border-box;
}

.ooec-root [hidden] {
	display: none !important;
}

.ooec-banner,
.ooec-dialog,
.ooec-noscript {
	background: var(--ooec-bg);
	border: 1px solid var(--ooec-border);
	border-radius: var(--ooec-radius);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
	color: var(--ooec-text);
	font-size: 16px;
	line-height: 1.5;
}

.ooec-gpc-notice {
	background: var(--ooec-bg);
	border: 2px solid var(--ooec-border);
	color: var(--ooec-text);
	margin: 0;
	padding: 10px 16px;
	position: fixed;
	top: 8px;
	inset-inline: 8px;
}

.ooec-banner {
	align-items: center;
	display: flex;
	gap: 24px;
	max-height: 90vh;
	overflow: auto;
	padding: 20px;
	position: fixed;
}

.ooec-banner-copy {
	flex: 1;
	min-width: 0;
}

.ooec-banner h2,
.ooec-dialog h2 {
	color: inherit;
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0 0 8px;
}

.ooec-banner p,
.ooec-dialog p {
	margin: 0 0 12px;
}

.ooec-layout-bottom-bar .ooec-banner,
.ooec-layout-top-bar .ooec-banner {
	left: 16px;
	right: 16px;
}

.ooec-layout-bottom-bar .ooec-banner {
	bottom: 16px;
}

.ooec-layout-top-bar .ooec-banner {
	top: 16px;
}

.ooec-layout-bottom-left .ooec-banner,
.ooec-layout-bottom-right .ooec-banner {
	bottom: 16px;
	display: block;
	max-width: 440px;
}

.ooec-layout-bottom-left .ooec-banner {
	left: 16px;
}

.ooec-layout-bottom-right .ooec-banner {
	right: 16px;
}

.ooec-layout-center-modal .ooec-banner {
	display: block;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(560px, calc(100% - 32px));
}

.ooec-position-start .ooec-actions {
	justify-content: flex-start;
}

.ooec-position-center .ooec-actions {
	justify-content: center;
}

.ooec-position-end .ooec-actions {
	justify-content: flex-end;
}

.ooec-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ooec-button,
.ooec-open-preferences,
.ooec-floating-button {
	border: 2px solid var(--ooec-button);
	border-radius: var(--ooec-radius);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1.25;
	padding: 10px 16px;
}

.ooec-button-primary {
	background: var(--ooec-button);
	color: var(--ooec-button-text);
}

.ooec-button-secondary,
.ooec-open-preferences {
	background: var(--ooec-bg);
	color: var(--ooec-text);
}

.ooec-button-link {
	background: transparent;
	border-color: transparent;
	color: var(--ooec-text);
	text-decoration: underline;
}

.ooec-button:focus-visible,
.ooec-close:focus-visible,
.ooec-open-preferences:focus-visible,
.ooec-floating-button:focus-visible,
.ooec-category input:focus-visible,
.ooec-policy-links a:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.ooec-policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 10px;
}

.ooec-policy-links a {
	color: inherit;
	text-decoration: underline;
}

.ooec-overlay {
	background: rgba(0, 0, 0, 0.55);
	inset: 0;
	position: fixed;
}

.ooec-dialog {
	left: 50%;
	max-height: 90vh;
	overflow: auto;
	padding: 24px;
	position: fixed;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(680px, calc(100% - 32px));
	z-index: 2;
}

.ooec-dialog-header {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.ooec-close {
	background: transparent;
	border: 2px solid transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: 2rem;
	line-height: 1;
	padding: 2px 8px;
}

.ooec-dialog fieldset {
	border: 0;
	margin: 20px 0;
	padding: 0;
}

.ooec-category {
	align-items: center;
	border-top: 1px solid var(--ooec-border);
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding: 16px 0;
}

.ooec-category label {
	font-weight: 700;
}

.ooec-category p {
	font-size: 0.925rem;
	margin: 4px 0 0;
}

.ooec-category input {
	accent-color: var(--ooec-button);
	height: 24px;
	min-width: 24px;
	width: 24px;
}

.ooec-floating-button {
	background: var(--ooec-button);
	bottom: 16px;
	color: var(--ooec-button-text);
	max-width: min(280px, calc(100% - 32px));
	position: fixed;
	inset-inline-end: 16px;
}

.ooec-noscript {
	bottom: 16px;
	left: 16px;
	padding: 16px;
	position: fixed;
	right: 16px;
}

.ooec-policy-table-wrap {
	overflow-x: auto;
}

.ooec-policy-table {
	border-collapse: collapse;
	width: 100%;
}

.ooec-policy-table th,
.ooec-policy-table td {
	border: 1px solid currentColor;
	padding: 8px;
	text-align: start;
	vertical-align: top;
}

.ooec-animation-fade .ooec-banner,
.ooec-animation-fade .ooec-dialog {
	animation: ooec-fade 0.2s ease-out;
}

.ooec-animation-slide .ooec-banner {
	animation: ooec-slide 0.25s ease-out;
}

@keyframes ooec-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes ooec-slide {
	from { opacity: 0; translate: 0 20px; }
	to { opacity: 1; translate: 0 0; }
}

@media (max-width: 700px) {
	.ooec-banner {
		align-items: stretch;
		display: block;
	}

	.ooec-banner .ooec-actions {
		margin-top: 16px;
	}

	.ooec-button {
		flex: 1 1 140px;
	}

	.ooec-layout-bottom-left .ooec-banner,
	.ooec-layout-bottom-right .ooec-banner {
		left: 8px;
		max-width: none;
		right: 8px;
	}

	.ooec-layout-bottom-bar .ooec-banner,
	.ooec-layout-top-bar .ooec-banner {
		left: 8px;
		right: 8px;
	}

	.ooec-dialog {
		padding: 18px;
		width: calc(100% - 16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ooec-root * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.ooec-button,
	.ooec-close,
	.ooec-embed-placeholder {
		forced-color-adjust: auto;
	}
}

.ooec-open-preferences {
	background: #fff;
	border: 2px solid #135e96;
	border-radius: 8px;
	color: #1d2327;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1.25;
	padding: 10px 16px;
}

.ooec-embed-placeholder {
	align-items: center;
	background: var(--ooec-bg, #fff);
	border: 2px dashed var(--ooec-border, #777);
	color: var(--ooec-text, #1d2327);
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 240px;
	padding: 24px;
	text-align: center;
}

.ooec-embed-placeholder p {
	margin: 0 0 12px;
}

.ooec-embed-placeholder + iframe,
[data-ooec-activated-embed] {
	border: 0;
	min-height: 240px;
	width: 100%;
}
