:root {
	--jlrc-black: #000;
	--jlrc-white: #fff;
	--jlrc-grey-50: #f5f5f5;
	--jlrc-grey-300: #c8c8c8;
	--jlrc-grey-700: #404040;
}

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

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

.jlrc-root {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 2147483000;
	pointer-events: none;
	font-family: JaguarLandRoverLight, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--jlrc-black);
}

.jlrc-root .screen-reader-text,
.jlrc-blocked-embed .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jlrc-panel {
	position: absolute;
	top: auto;
	left: 50%;
	bottom: 20px;
	width: min(1180px, calc(100% - 100px));
	max-height: calc(100% - 40px);
	margin: 0;
	padding: 0;
	overflow: auto;
	transform: translateX(-50%);
	background: var(--jlrc-white);
	border: 1px solid #c9cdd1;
	border-radius: 4px;
	box-shadow: 0 16px 48px rgba(16, 24, 32, .22);
	overscroll-behavior: contain;
	pointer-events: auto;
}

.jlrc-copy {
	max-width: 650px;
}

.jlrc-shell {
	position: relative;
	width: 100%;
	margin: 0 auto;
	padding: 26px 28px;
}

.jlrc-view[data-jlrc-view="summary"] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 32px;
}

.jlrc-eyebrow {
	margin: 0 0 7px;
	font-family: JaguarLandRoverBold, "Helvetica Neue", Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	line-height: 1.3;
}

.jlrc-panel h2,
.jlrc-panel h3,
.jlrc-blocked-embed strong {
	font-family: JaguarLandRoverBold, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
}

.jlrc-panel h2 {
	margin: 0 0 8px;
	font-size: clamp(26px, 2.7vw, 34px);
	line-height: 1.15;
	letter-spacing: -.02em;
}

.jlrc-panel h2[tabindex="-1"]:focus {
	outline: none;
}

.jlrc-copy > p:not(.jlrc-eyebrow),
.jlrc-preferences-head > p:not(.jlrc-eyebrow) {
	max-width: 720px;
	margin: 0 0 12px;
	color: var(--jlrc-grey-700);
}

.jlrc-copy > p:not(.jlrc-eyebrow) {
	max-width: 760px;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.4;
}

.jlrc-copy .jlrc-policy {
	font-size: 14px;
	line-height: 1.5;
}

.jlrc-policy,
.jlrc-back,
.jlrc-text-button {
	appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--jlrc-black);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.jlrc-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin: 0;
}

.jlrc-button {
	min-height: 46px;
	padding: 11px 18px;
	border: 1px solid var(--jlrc-black);
	border-radius: 3px;
	font: inherit;
	font-family: JaguarLandRoverBold, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.jlrc-button--primary {
	background: var(--jlrc-black);
	color: var(--jlrc-white);
}

.jlrc-button--primary:hover {
	background: var(--jlrc-grey-700);
}

.jlrc-button--secondary {
	background: var(--jlrc-white);
	color: var(--jlrc-black);
}

.jlrc-button--secondary:hover {
	background: var(--jlrc-grey-50);
}

.jlrc-text-button {
	margin: 0;
}

.jlrc-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	padding: 0;
	border: 2px solid var(--jlrc-black);
	background: var(--jlrc-white);
	color: var(--jlrc-black);
	font: 25px/1 Arial, sans-serif;
	cursor: pointer;
}

.jlrc-preferences-head {
	padding-right: 56px;
}

.jlrc-back {
	margin-bottom: 18px;
}

.jlrc-categories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0;
}

.jlrc-category {
	display: flex;
	min-height: 172px;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	padding: 18px;
	border: 1px solid var(--jlrc-grey-300);
	background: var(--jlrc-grey-50);
}

.jlrc-category h3 {
	margin: 0 0 6px;
	font-size: 18px;
}

.jlrc-category p {
	margin: 0;
	font-size: 14px;
	color: var(--jlrc-grey-700);
}

.jlrc-toggle {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 9px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

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

.jlrc-toggle i {
	position: relative;
	display: block;
	width: 46px;
	height: 24px;
	border: 2px solid var(--jlrc-black);
	background: var(--jlrc-white);
	transition: background-color .18s ease;
}

.jlrc-toggle i::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	background: var(--jlrc-black);
	content: "";
	transition: transform .18s ease, background-color .18s ease;
}

.jlrc-toggle input:checked + i {
	background: var(--jlrc-black);
}

.jlrc-toggle input:checked + i::after {
	transform: translateX(22px);
	background: var(--jlrc-white);
}

.jlrc-toggle input:focus-visible + i,
.jlrc-button:focus-visible,
.jlrc-close:focus-visible,
.jlrc-settings-button:focus-visible,
.jlrc-policy:focus-visible,
.jlrc-back:focus-visible,
.jlrc-text-button:focus-visible,
.jlrc-blocked-embed button:focus-visible {
	outline: 3px solid #1a73e8;
	outline-offset: 3px;
}

.jlrc-toggle--locked {
	cursor: default;
}

.jlrc-toggle--locked i {
	opacity: .65;
}

.jlrc-preferences-actions {
	display: flex;
	align-items: center;
	gap: 22px;
}

.jlrc-settings-button {
	position: absolute;
	left: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 2px solid var(--jlrc-white);
	border-radius: 50%;
	background: var(--jlrc-black);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
	color: var(--jlrc-white);
	font: 700 12px/1.2 JaguarLandRoverLight, "Helvetica Neue", Arial, sans-serif;
	cursor: pointer;
	pointer-events: auto;
}

/*
 * The live JLR site opens its registration form in #vrdgpopup. On wide
 * screens the consent UI moves into the free right rail so both controls stay
 * usable. On narrower screens the registration form gets priority; the
 * consent card returns as soon as that form closes.
 */
@media (min-width: 1200px) {
	.jlrc-root--registration-open .jlrc-panel {
		top: 12px;
		right: 12px;
		bottom: auto;
		left: auto;
		width: 260px;
		max-height: calc(100% - 24px);
		transform: none;
	}

	.jlrc-root--registration-open .jlrc-shell {
		padding: 18px;
	}

	.jlrc-root--registration-open .jlrc-view[data-jlrc-view="summary"] {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.jlrc-root--registration-open .jlrc-copy {
		max-width: none;
	}

	.jlrc-root--registration-open .jlrc-eyebrow {
		font-size: 10px;
	}

	.jlrc-root--registration-open .jlrc-panel h2 {
		font-size: 24px;
	}

	.jlrc-root--registration-open .jlrc-copy > p:not(.jlrc-eyebrow) {
		font-size: 14px;
		line-height: 1.35;
	}

	.jlrc-root--registration-open .jlrc-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.jlrc-root--registration-open .jlrc-button {
		width: 100%;
	}

	.jlrc-root--registration-open .jlrc-categories {
		grid-template-columns: 1fr;
	}

	.jlrc-root--registration-open .jlrc-category {
		min-height: 0;
	}

	.jlrc-root--registration-open .jlrc-preferences-actions {
		align-items: stretch;
		flex-direction: column;
	}
}

@media (max-width: 1199px) {
	.jlrc-root--registration-open .jlrc-panel {
		visibility: hidden;
		pointer-events: none;
	}
}

.jlrc-settings-button svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: currentColor;
}

.jlrc-settings-button span {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.jlrc-blocked-embed {
	display: grid;
	min-height: 260px;
	place-items: center;
	padding: 28px;
	border: 2px solid var(--jlrc-black);
	background: var(--jlrc-grey-50);
	color: var(--jlrc-black);
	text-align: center;
}

.jlrc-blocked-embed__inner {
	max-width: 520px;
}

.jlrc-blocked-embed strong {
	display: block;
	margin-bottom: 7px;
	font-size: 22px;
}

.jlrc-blocked-embed p {
	margin: 0 0 16px;
}

.jlrc-blocked-embed button {
	min-height: 44px;
	padding: 10px 18px;
	border: 2px solid var(--jlrc-black);
	border-radius: 0;
	background: var(--jlrc-black);
	color: var(--jlrc-white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 760px) {
	.jlrc-shell {
		padding: 20px;
	}

	.jlrc-panel {
		bottom: 12px;
		width: calc(100% - 24px);
		max-height: calc(100% - 24px);
	}

	.jlrc-view[data-jlrc-view="summary"] {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.jlrc-copy {
		max-width: none;
	}

	.jlrc-panel h2 {
		font-size: 26px;
	}

	.jlrc-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.jlrc-button {
		width: 100%;
	}

	.jlrc-categories {
		grid-template-columns: 1fr;
	}

	.jlrc-category {
		min-height: 0;
	}

	.jlrc-preferences-actions {
		align-items: stretch;
		flex-direction: column;
	}

}

@media (prefers-reduced-motion: reduce) {
	.jlrc-root * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
