.rcm-root {
	--rcm-primary: #2563eb;
	--rcm-bg: #ffffff;
	--rcm-text: #111827;
	--rcm-muted: #4b5563;
	--rcm-border: #d1d5db;
	--rcm-shadow: 0 18px 50px rgba(17, 24, 39, 0.18);
	color: var(--rcm-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.rcm-root,
.rcm-root * {
	box-sizing: border-box;
}

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

body.rcm-consent-modal-open {
	overflow: hidden;
}

.rcm-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147483001 !important;
	background: rgba(17, 24, 39, 0.52);
}

.rcm-banner {
	position: fixed;
	left: 50%;
	right: auto;
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 2147483000 !important;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	width: min(1120px, calc(100vw - 32px));
	margin: 0 auto;
	padding: 18px;
	border: 1px solid var(--rcm-border);
	border-radius: 8px;
	background: var(--rcm-bg);
	box-shadow: var(--rcm-shadow);
	transform: translateX(-50%);
}

.rcm-root[data-position="top"] .rcm-banner {
	top: max(16px, env(safe-area-inset-top));
	bottom: auto;
}

.rcm-banner h2,
.rcm-modal h2,
.rcm-purpose h3 {
	margin: 0;
	color: var(--rcm-text);
	line-height: 1.2;
	letter-spacing: 0;
}

.rcm-banner h2 {
	font-size: 18px;
}

.rcm-brand {
	display: flex;
	gap: 10px;
	align-items: center;
	min-width: 0;
}

.rcm-brand--modal {
	align-items: flex-start;
}

.rcm-logo {
	flex: 0 0 auto;
	width: auto;
	max-width: 120px;
	height: auto;
	max-height: 42px;
	object-fit: contain;
}

.rcm-banner p,
.rcm-modal p,
.rcm-purpose p {
	margin: 8px 0 0;
	color: var(--rcm-muted);
	font-size: 14px;
	line-height: 1.55;
}

.rcm-banner__actions,
.rcm-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.rcm-button {
	min-height: 42px;
	padding: 10px 14px;
	border: 1px solid var(--rcm-border);
	border-radius: 6px;
	background: #ffffff;
	color: var(--rcm-text);
	appearance: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.rcm-button:hover,
.rcm-button:focus-visible,
.rcm-icon-button:hover,
.rcm-icon-button:focus-visible,
.rcm-floating:hover,
.rcm-floating:focus-visible {
	border-color: var(--rcm-primary);
	outline: 2px solid color-mix(in srgb, var(--rcm-primary) 24%, transparent);
	outline-offset: 2px;
}

.rcm-button:active,
.rcm-floating:active {
	transform: translateY(1px);
}

.rcm-button--primary {
	border-color: var(--rcm-primary);
	background: var(--rcm-primary);
	color: #ffffff;
}

.rcm-button--choice,
.rcm-button--secondary,
.rcm-button--ghost {
	border-color: #9ca3af;
	background: #ffffff;
	color: #111827;
}

.rcm-button--choice {
	min-width: 138px;
}

.rcm-link {
	display: inline-flex;
	margin-top: 8px;
	color: var(--rcm-primary);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rcm-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 4px;
}

.rcm-links--footer {
	justify-content: center;
	max-width: none;
	margin-top: 0;
}

.rcm-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 2147483002 !important;
	display: flex;
	flex-direction: column;
	width: min(780px, calc(100vw - 32px));
	max-height: min(760px, calc(100vh - 32px));
	max-height: min(760px, calc(100dvh - 32px));
	overflow: hidden;
	border: 1px solid var(--rcm-border);
	border-radius: 8px;
	background: var(--rcm-bg);
	box-shadow: var(--rcm-shadow);
	transform: translate(-50%, -50%);
}

.rcm-modal__header,
.rcm-modal__footer {
	padding: 18px;
}

.rcm-modal__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: start;
	border-bottom: 1px solid var(--rcm-border);
}

.rcm-modal__heading {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	min-width: 0;
}

.rcm-modal__copy {
	min-width: 0;
}

.rcm-modal__controls {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
	align-items: center;
}

.rcm-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 8px 18px;
	overscroll-behavior: contain;
}

.rcm-modal__footer {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	border-top: 1px solid var(--rcm-border);
}

.rcm-modal__actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	justify-content: stretch;
	width: 100%;
}

.rcm-modal__actions .rcm-button {
	width: 100%;
	min-width: 0;
}

.rcm-icon-button {
	display: inline-grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid var(--rcm-border);
	border-radius: 6px;
	background: #ffffff;
	color: var(--rcm-text);
	appearance: none;
	font: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.rcm-icon-button--back {
	font-size: 30px;
	font-weight: 700;
}

.rcm-overview {
	display: grid;
	gap: 12px;
	padding: 16px 0;
}

.rcm-overview h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
}

.rcm-overview__button {
	justify-self: start;
}

.rcm-purpose {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid #e5e7eb;
}

.rcm-purpose:last-child {
	border-bottom: 0;
}

.rcm-purpose h3 {
	font-size: 16px;
}

.rcm-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.rcm-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.rcm-switch__track {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 28px;
	border-radius: 999px;
	background: #9ca3af;
	transition: background 0.16s ease;
}

.rcm-switch__track::after {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(17, 24, 39, 0.24);
	content: "";
	transition: transform 0.16s ease;
}

.rcm-switch input:checked + .rcm-switch__track {
	background: var(--rcm-primary);
}

.rcm-switch input:checked + .rcm-switch__track::after {
	transform: translateX(20px);
}

.rcm-switch input:focus-visible + .rcm-switch__track {
	outline: 2px solid color-mix(in srgb, var(--rcm-primary) 28%, transparent);
	outline-offset: 3px;
}

.rcm-switch input:disabled + .rcm-switch__track {
	opacity: 0.72;
	cursor: not-allowed;
}

.rcm-floating {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(var(--rcm-banner-offset, 16px), env(safe-area-inset-bottom));
	z-index: 2147482999 !important;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 40px;
	padding: 9px 12px;
	border: 1px solid var(--rcm-border);
	border-radius: 999px;
	background: #ffffff;
	color: #111827;
	appearance: none;
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.rcm-floating__dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--rcm-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rcm-primary) 18%, transparent);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	word-wrap: normal !important;
}

.rcm-embed-placeholder {
	display: grid;
	gap: 10px;
	place-items: center;
	min-height: 220px;
	padding: 22px;
	border: 1px solid var(--rcm-border, #d1d5db);
	border-radius: 8px;
	background: #f9fafb;
	color: #111827;
	text-align: center;
}

.rcm-embed-placeholder strong {
	font-size: 16px;
	line-height: 1.3;
}

.rcm-embed-placeholder p {
	max-width: 560px;
	margin: 0;
	color: #4b5563;
	line-height: 1.5;
}

.rcm-embed-placeholder__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.rcm-cookie-policy {
	display: grid;
	gap: 12px;
	max-width: 100%;
	color: #111827;
}

.rcm-cookie-policy p {
	margin: 0;
	line-height: 1.55;
}

.rcm-cookie-policy__table-wrap {
	max-width: 100%;
	overflow-x: auto;
}

.rcm-cookie-policy__table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	border: 1px solid var(--rcm-border, #d1d5db);
	background: #ffffff;
}

.rcm-cookie-policy__table th,
.rcm-cookie-policy__table td {
	padding: 12px;
	border-bottom: 1px solid var(--rcm-border, #d1d5db);
	text-align: left;
	vertical-align: top;
	line-height: 1.45;
}

.rcm-cookie-policy__table th {
	background: #f9fafb;
	color: #111827;
	font-weight: 800;
}

@media (max-width: 980px) {
	.rcm-banner {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.rcm-banner__actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-content: stretch;
	}

	.rcm-banner__actions .rcm-button {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 760px) {
	.rcm-banner {
		grid-template-columns: 1fr;
		left: 50%;
		right: auto;
		bottom: max(10px, env(safe-area-inset-bottom));
		width: calc(100vw - 20px);
		max-height: min(68vh, 560px);
		overflow: auto;
		padding: 14px;
	}

	.rcm-brand {
		align-items: flex-start;
	}

	.rcm-logo {
		max-width: 88px;
		max-height: 36px;
	}

	.rcm-links {
		gap: 2px 10px;
	}

	.rcm-banner__actions,
	.rcm-modal__actions {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.rcm-button,
	.rcm-button--choice {
		width: 100%;
		min-width: 0;
	}

	.rcm-modal {
		top: auto;
		bottom: 0;
		width: 100%;
		max-height: calc(100vh - 8px);
		max-height: calc(100dvh - 8px);
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 8px 8px 0 0;
		transform: translateX(-50%);
	}

	.rcm-modal__header {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 12px;
		padding: 14px;
	}

	.rcm-modal__heading {
		gap: 8px;
	}

	.rcm-modal__header p {
		font-size: 13px;
	}

	.rcm-modal__body {
		padding: 2px 14px;
	}

	.rcm-modal__footer {
		padding: 14px;
		display: grid;
		gap: 10px;
	}

	.rcm-modal__actions {
		grid-template-columns: 1fr;
	}

	.rcm-purpose {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 14px 0;
	}

	.rcm-switch {
		justify-self: start;
	}

	.rcm-overview {
		padding: 14px 0;
	}

	.rcm-overview__button {
		width: 100%;
	}

	.rcm-floating {
		right: max(10px, env(safe-area-inset-right));
		min-height: 38px;
		padding: 8px 11px;
		font-size: 12px;
	}
}
