#onecs-cc-root,
#onecs-cc-root *,
#onecs-cc-root *::before,
#onecs-cc-root *::after {
	box-sizing: border-box;
}

.onecs-cc-is-open {
	overflow: hidden;
}

#onecs-cc-root[hidden],
#onecs-cc-root [hidden] {
	display: none !important;
}

#onecs-cc-root {
	font: inherit;
	line-height: 1.5;
	color: var(--onecs-cc-text, #111827);
}

#onecs-cc-root button,
.onecs-cc-link {
	font: inherit;
}

.onecs-cc__banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999998;
	padding: 24px;
	background: var(--onecs-cc-background, #fff);
	border-top: 1px solid rgb(17 24 39 / 16%);
	box-shadow: 0 -12px 40px rgb(0 0 0 / 14%);
	animation: onecs-cc-enter 240ms ease-out both;
}

.onecs-cc__banner-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	width: min(1200px, 100%);
	margin: 0 auto;
}

.onecs-cc__copy {
	flex: 1 1 auto;
}

.onecs-cc__title,
.onecs-cc__category h3,
.onecs-cc__copy p,
.onecs-cc__category p {
	margin-top: 0;
	color: inherit;
	font-family: inherit;
}

.onecs-cc__title {
	margin-bottom: 8px;
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 700;
	line-height: 1.25;
}

.onecs-cc__copy p {
	max-width: 780px;
	margin-bottom: 8px;
	font-size: 16px;
}

.onecs-cc__policy {
	color: var(--onecs-cc-primary, #1d4ed8);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.onecs-cc__links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.onecs-cc__text-action {
	padding: 0;
	color: var(--onecs-cc-primary, #1d4ed8);
	background: transparent;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.onecs-cc__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	max-width: 480px;
}

.onecs-cc__button,
.onecs-cc__revisit,
.onecs-cc__close,
.onecs-cc__text-action,
.onecs-cc-link {
	appearance: none;
	border: 0;
	cursor: pointer;
}

.onecs-cc__button {
	min-height: 44px;
	padding: 10px 18px;
	color: var(--onecs-cc-text, #111827);
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 6px;
	font-weight: 700;
	line-height: 1.2;
}

.onecs-cc__button--primary {
	color: #fff;
	background: var(--onecs-cc-primary, #1d4ed8);
	border-color: var(--onecs-cc-primary, #1d4ed8);
}

.onecs-cc__button--text {
	color: var(--onecs-cc-primary, #1d4ed8);
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.onecs-cc__button:hover,
.onecs-cc__button:focus-visible,
.onecs-cc__revisit:hover,
.onecs-cc__revisit:focus-visible,
.onecs-cc__close:hover,
.onecs-cc__close:focus-visible,
.onecs-cc__text-action:hover,
.onecs-cc__text-action:focus-visible,
.onecs-cc-link:hover,
.onecs-cc-link:focus-visible {
	filter: brightness(.9);
}

.onecs-cc__button:focus-visible,
.onecs-cc__revisit:focus-visible,
.onecs-cc__close:focus-visible,
.onecs-cc__text-action:focus-visible,
.onecs-cc-link:focus-visible,
.onecs-cc__toggle input:focus-visible + span {
	outline: 3px solid var(--onecs-cc-primary, #1d4ed8);
	outline-offset: 3px;
}

.onecs-cc__overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgb(0 0 0 / 58%);
}

.onecs-cc__modal {
	width: min(680px, 100%);
	max-height: min(780px, calc(100vh - 40px));
	overflow: auto;
	background: var(--onecs-cc-background, #fff);
	border-radius: 10px;
	box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
	animation: onecs-cc-modal-enter 180ms ease-out both;
}

.onecs-cc__modal-header {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px 14px;
	background: var(--onecs-cc-background, #fff);
	border-bottom: 1px solid rgb(17 24 39 / 12%);
}

.onecs-cc__modal-header .onecs-cc__title {
	margin-bottom: 0;
}

.onecs-cc__close {
	display: grid;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	place-items: center;
	padding: 0;
	color: var(--onecs-cc-text, #111827);
	background: transparent;
	border-radius: 50%;
	font-size: 30px;
	line-height: 1;
}

.onecs-cc__categories {
	padding: 6px 24px;
}

.onecs-cc__category {
	display: flex;
	align-items: center;
	gap: 24px;
	justify-content: space-between;
	padding: 18px 0;
	border-bottom: 1px solid rgb(17 24 39 / 12%);
}

.onecs-cc__category:last-child {
	border-bottom: 0;
}

.onecs-cc__category h3 {
	margin-bottom: 4px;
	font-size: 17px;
	font-weight: 700;
}

.onecs-cc__category p {
	margin-bottom: 0;
	font-size: 14px;
}

.onecs-cc__toggle {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	cursor: pointer;
}

.onecs-cc__toggle input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.onecs-cc__toggle > span:last-child {
	position: relative;
	display: block;
	width: 48px;
	height: 26px;
	background: #9ca3af;
	border-radius: 999px;
	transition: background-color 160ms ease;
}

.onecs-cc__toggle > span:last-child::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
	content: '';
	transition: transform 160ms ease;
}

.onecs-cc__toggle input:checked + span {
	background: var(--onecs-cc-primary, #1d4ed8);
}

.onecs-cc__toggle input:checked + span::after {
	transform: translateX(22px);
}

.onecs-cc__toggle input:disabled + span {
	cursor: not-allowed;
	opacity: .6;
}

.onecs-cc__modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 24px 24px;
}

.onecs-cc__modal-policy {
	align-self: center;
	margin-right: auto;
}

.onecs-cc__revisit {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 999997;
	display: grid;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	place-items: center;
	padding: 0;
	color: #fff;
	background: var(--onecs-cc-primary, #1d4ed8);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 5px 18px rgb(0 0 0 / 20%);
}

.onecs-cc__revisit svg {
	display: block;
	width: 26px;
	height: 26px;
}

.onecs-cc-link {
	padding: 0;
	color: inherit;
	background: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
}

button.onecs-cc-link.onecs-cc-link--icon {
	display: inline-grid;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	place-items: center;
	padding: 0;
	color: #fff;
	background-color: var(--onecs-cc-primary, #0b3a5b);
	background-image: none;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 5px 18px rgb(0 0 0 / 20%);
	font-size: 0;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
}

button.onecs-cc-link.onecs-cc-link--icon svg {
	display: block;
	width: 26px;
	height: 26px;
	margin: 0;
}

button.onecs-cc-link.onecs-cc-link--text {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	width: auto;
	min-width: 0;
	min-height: 40px;
	padding: 6px 0 5px;
	color: var(--onecs-cc-text, #022642);
	background-color: transparent;
	background-image: none;
	border: 0;
	border-bottom: 2px solid var(--onecs-cc-primary, #c40000);
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.4;
	text-decoration: none;
	text-transform: none;
}

button.onecs-cc-link.onecs-cc-link--text::after {
	color: var(--onecs-cc-primary, #c40000);
	content: '\2192';
	font-size: 20px;
	line-height: 1;
	transition: transform 160ms ease;
}

button.onecs-cc-link.onecs-cc-link--text:hover::after,
button.onecs-cc-link.onecs-cc-link--text:focus-visible::after {
	transform: translateX(3px);
}

.onecs-cc-blocked-frame {
	background: #f3f4f6;
}

@keyframes onecs-cc-enter {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@keyframes onecs-cc-modal-enter {
	from { transform: translateY(10px) scale(.99); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 767px) {
	.onecs-cc__banner {
		padding: 18px;
	}

	.onecs-cc__banner-inner {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
	}

	.onecs-cc__actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: none;
	}

	.onecs-cc__button {
		width: 100%;
	}

	.onecs-cc__overlay {
		padding: 10px;
	}

	.onecs-cc__modal {
		max-height: calc(100vh - 20px);
	}

	.onecs-cc__modal-header,
	.onecs-cc__categories {
		padding-right: 18px;
		padding-left: 18px;
	}

	.onecs-cc__modal-actions {
		flex-direction: column-reverse;
		padding: 14px 18px 18px;
	}

	.onecs-cc__modal-policy {
		align-self: flex-start;
		margin: 6px 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.onecs-cc__banner,
	.onecs-cc__modal,
	.onecs-cc__toggle > span:last-child,
	.onecs-cc__toggle > span:last-child::after {
		animation: none;
		transition: none;
	}
}

/* Keep the consent controls predictable when a theme defines global heading/button styles. */
#onecs-cc-root .onecs-cc__title {
	margin: 0 0 8px;
	color: var(--onecs-cc-text, #111827);
	font-family: inherit;
	font-size: clamp(20px, 2vw, 26px);
	font-style: normal;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.25;
	text-transform: none;
}

#onecs-cc-root .onecs-cc__copy p,
#onecs-cc-root .onecs-cc__category p {
	color: var(--onecs-cc-text, #111827);
	font-family: inherit;
	font-style: normal;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.5;
	text-transform: none;
}

#onecs-cc-root .onecs-cc__copy p {
	margin: 0 0 8px;
	font-size: 16px;
}

#onecs-cc-root .onecs-cc__category h3 {
	margin: 0 0 4px;
	color: var(--onecs-cc-text, #111827);
	font-family: inherit;
	font-size: 17px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.3;
	text-transform: none;
}

#onecs-cc-root .onecs-cc__button {
	min-height: 44px;
	padding: 10px 18px;
	color: var(--onecs-cc-text, #111827);
	background-color: transparent;
	background-image: none;
	border: 1px solid currentColor;
	border-radius: 6px;
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
}

#onecs-cc-root .onecs-cc__button--primary {
	color: #fff;
	background-color: var(--onecs-cc-primary, #1d4ed8);
	border-color: var(--onecs-cc-primary, #1d4ed8);
}

#onecs-cc-root .onecs-cc__button--text {
	color: var(--onecs-cc-primary, #1d4ed8);
	background-color: transparent;
	border-color: transparent;
	text-decoration: underline;
}

#onecs-cc-root .onecs-cc__close {
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	color: var(--onecs-cc-text, #111827);
	background-color: transparent;
	background-image: none;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	font-family: inherit;
	font-size: 30px;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	text-transform: none;
}

#onecs-cc-root .onecs-cc__text-action {
	min-width: 0;
	min-height: 0;
	padding: 0;
	color: var(--onecs-cc-primary, #1d4ed8);
	background-color: transparent;
	background-image: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.5;
	text-decoration: underline;
	text-transform: none;
}

#onecs-cc-root .onecs-cc__revisit {
	display: grid;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	place-items: center;
	padding: 0;
	color: #fff;
	background-color: var(--onecs-cc-primary, #1d4ed8);
	background-image: none;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 5px 18px rgb(0 0 0 / 20%);
	font-size: 0;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
}

#onecs-cc-root .onecs-cc__revisit svg {
	display: block;
	width: 26px;
	height: 26px;
	margin: 0;
}
