.routeos-consent,
.routeos-consent button,
.routeos-consent input {
	font-family: inherit;
}

.routeos-consent {
	--consent-ink: var(--ros-ink, #102c25);
	--consent-green: var(--ros-green, #125b45);
	--consent-line: var(--ros-line, #dbe5de);
	--consent-pale: var(--ros-pale, #f1f6f3);
}

.routeos-consent,
.routeos-consent * {
	box-sizing: border-box;
}

.routeos-consent [hidden] {
	display: none !important;
}

.routeos-consent .routeos-consent__banner {
	position: fixed;
	right: 1.5rem;
	bottom: max(1.5rem, env(safe-area-inset-bottom));
	left: 1.5rem;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	width: min(88.75rem, calc(100% - 3rem));
	max-height: calc(100dvh - 3rem);
	margin: 0 auto;
	padding: 0.75rem 1.5rem;
	overflow-y: auto;
	color: #ffffff;
	background: var(--consent-ink);
	border: 1px solid #244a3e;
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(16, 44, 37, 0.2);
}

.routeos-consent__banner h2,
.routeos-consent__modal h2,
.routeos-consent__modal h3,
.routeos-consent__banner p,
.routeos-consent__modal p {
	margin-top: 0;
}

.routeos-consent .routeos-consent__modal h2 {
	margin-bottom: 0.625rem;
	color: var(--consent-ink);
	font-size: clamp(1.4rem, 3vw, 1.75rem);
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.routeos-consent .routeos-consent__banner-copy {
	min-width: 0;
	margin: 0;
	color: #f1f6f3;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.65;
}

.routeos-consent__eyebrow {
	margin-bottom: 0.35rem;
	color: #fda4af;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.routeos-consent__gpc {
	margin: 0.75rem 0;
	padding: 0.65rem 0.75rem;
	color: #052e16;
	background: #dcfce7;
	border-left: 0.25rem solid #15803d;
	border-radius: 0.35rem;
	font-size: 0.925rem;
	font-weight: 650;
	line-height: 1.45;
}

.routeos-consent__policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.2rem;
	margin: 0;
	font-size: 0.925rem;
}

.routeos-consent__policy-links a {
	color: var(--consent-green);
	text-decoration: underline;
	text-decoration-thickness: 0.09em;
	text-underline-offset: 0.2em;
}

.routeos-consent__policy-links a:hover {
	color: var(--consent-ink);
}

.routeos-consent__banner-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 1.5rem;
}

.routeos-consent .routeos-consent__banner-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	margin: 0;
	padding: 0;
	color: #c1e5d4;
	background: transparent;
	border: 0;
	border-radius: 3px;
	font-size: 0.875rem;
	font-weight: 650;
	line-height: 1.4;
	letter-spacing: normal;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.routeos-consent .routeos-consent__banner-action:hover {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.routeos-consent__button,
.routeos-consent__close,
.routeos-consent__settings-button {
	cursor: pointer;
}

.routeos-consent__button {
	min-height: 2.9rem;
	padding: 0.7rem 1rem;
	border: 2px solid transparent;
	border-radius: 0.55rem;
	font-size: 0.95rem;
	font-weight: 750;
	line-height: 1.25;
	text-align: center;
	transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.routeos-consent__button:hover {
	transform: translateY(-1px);
}

.routeos-consent__button--choice {
	color: var(--consent-ink);
	background: #ffffff;
	border-color: #ffffff;
}

.routeos-consent__button--choice:hover {
	background: #e8f1ec;
	border-color: #e8f1ec;
}

.routeos-consent__button--secondary {
	color: #ffffff;
	background: transparent;
	border-color: #d1d5db;
}

.routeos-consent__button--secondary:hover {
	color: var(--consent-ink);
	background: #f9fafb;
}

.routeos-consent__modal-layer {
	position: fixed;
	inset: 0;
	z-index: 2147483100;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.routeos-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 7, 18, 0.76);
	backdrop-filter: blur(2px);
}

.routeos-consent__modal {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(47rem, 100%);
	max-height: min(48rem, calc(100vh - 2rem));
	overflow: hidden;
	color: #111827;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 1rem;
	box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.42);
}

.routeos-consent__modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.35rem 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.routeos-consent .routeos-consent__modal-header .routeos-consent__eyebrow {
	margin-bottom: 0.35rem;
	color: var(--consent-green);
	font-size: 0.75rem;
}

.routeos-consent__modal-header h2 {
	margin-bottom: 0;
}

.routeos-consent__close {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 2.65rem;
	height: 2.65rem;
	padding: 0;
	color: #111827;
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1;
}

.routeos-consent__close:hover {
	background: #e5e7eb;
}

.routeos-consent__modal-body {
	padding: 1.15rem 1.35rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.routeos-consent .routeos-consent__modal-body > p {
	margin-bottom: 0.85rem;
	color: #374151;
	font-size: 0.925rem;
	line-height: 1.55;
}

.routeos-consent__category {
	margin-top: 1rem;
	padding: 1rem;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 0.75rem;
}

.routeos-consent__category--unavailable {
	background: #f9fafb;
}

.routeos-consent__category-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.routeos-consent .routeos-consent__category-heading h3,
.routeos-consent__category-title {
	display: block;
	margin-bottom: 0.25rem;
	color: #111827;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
}

.routeos-consent .routeos-consent__category-heading p,
.routeos-consent__category-heading label > span:last-child {
	display: block;
	margin-bottom: 0;
	color: #4b5563;
	font-size: 0.925rem;
	font-weight: 400;
	line-height: 1.45;
}

.routeos-consent__category-heading label,
.routeos-consent__category-heading label > span {
	letter-spacing: normal;
	text-transform: none;
}

.routeos-consent__always-on,
.routeos-consent__not-used {
	flex: 0 0 auto;
	padding: 0.3rem 0.55rem;
	color: #14532d;
	background: #dcfce7;
	border: 1px solid #86efac;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.2;
}

.routeos-consent__not-used {
	color: #374151;
	background: #f3f4f6;
	border-color: #d1d5db;
}

.routeos-consent__switch {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 3rem;
	height: 1.7rem;
}

.routeos-consent__switch input {
	position: absolute;
	z-index: 2;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.routeos-consent__switch > span {
	position: absolute;
	inset: 0;
	background: #6b7280;
	border: 2px solid #4b5563;
	border-radius: 999px;
	transition: background-color 140ms ease, border-color 140ms ease;
}

.routeos-consent__switch > span::after {
	position: absolute;
	top: 0.15rem;
	left: 0.18rem;
	width: 1.1rem;
	height: 1.1rem;
	content: '';
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	transition: transform 140ms ease;
}

.routeos-consent__switch input:checked + span {
	background: #166534;
	border-color: #14532d;
}

.routeos-consent__switch input:checked + span::after {
	transform: translateX(1.28rem);
}

.routeos-consent__switch input:disabled + span {
	cursor: not-allowed;
	opacity: 0.58;
}

.routeos-consent details {
	margin-top: 0.8rem;
	padding-top: 0.8rem;
	border-top: 1px solid #e5e7eb;
}

.routeos-consent summary {
	width: fit-content;
	color: var(--consent-green);
	font-size: 0.875rem;
	font-weight: 750;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

.routeos-consent__details-list {
	display: grid;
	gap: 0.55rem;
	margin: 0.8rem 0 0;
}

.routeos-consent__details-list > div {
	display: grid;
	grid-template-columns: minmax(7rem, 0.32fr) minmax(0, 1fr);
	gap: 0.65rem;
	padding-top: 0.55rem;
	border-top: 1px solid #f3f4f6;
}

.routeos-consent__details-list dt,
.routeos-consent__details-list dd {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.45;
}

.routeos-consent__details-list dt {
	font-weight: 800;
}

.routeos-consent__details-list dd,
.routeos-consent__category details > p {
	color: #4b5563;
}

.routeos-consent__category details > p {
	margin: 0.8rem 0 0;
	font-size: 0.86rem;
	line-height: 1.5;
}

.routeos-consent__modal-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	padding: 1rem 1.35rem 1.25rem;
	background: var(--consent-ink);
	border-top: 1px solid #244a3e;
}

.routeos-consent .routeos-consent__modal--inline {
	width: 100%;
	max-height: none;
	margin: 1.5rem 0 0;
	border: 1px solid var(--consent-line);
	border-radius: 8px;
	box-shadow: none;
}

.routeos-consent__modal--inline .routeos-consent__modal-body {
	overflow: visible;
}

.routeos-consent__modal--inline .routeos-consent__eyebrow,
.routeos-consent__modal--inline .routeos-consent__category--unavailable {
	display: none;
}

.routeos-consent.routeos-consent__policy .routeos-consent__policy-intro {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
}

.routeos-consent.routeos-consent__policy .routeos-consent__modal h2 {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.3;
}

.routeos-consent.routeos-consent__policy .routeos-consent__modal h3 {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.routeos-consent.routeos-consent__policy .routeos-consent__modal p {
	margin: 0 0 0.75rem;
	font-size: 0.925rem;
	line-height: 1.55;
}

.ros-document-page:has(.routeos-consent__policy) {
	max-width: 820px;
	padding-top: 48px;
}

.ros-document-page:has(.routeos-consent__policy) .ros-document-heading {
	margin-bottom: 24px;
}

.routeos-consent.routeos-consent__policy .routeos-consent__saved-message {
	margin: 1rem 0 0;
	padding: 0.8rem 1rem;
	color: var(--consent-green);
	background: var(--consent-pale);
	border: 1px solid var(--consent-line);
	border-radius: 7px;
	font-size: 0.925rem;
}

.routeos-consent__settings-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 0.85rem 1rem;
}

.routeos-consent__settings-button {
	padding: 0.2rem;
	color: inherit;
	background: transparent;
	border: 0;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: underline;
	text-decoration-thickness: 0.09em;
	text-underline-offset: 0.2em;
}

.routeos-consent__settings-button:hover {
	text-decoration-thickness: 0.14em;
}

.routeos-consent__screen-reader-status {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.routeos-consent-policy-anchor {
	display: block;
	position: relative;
	top: -2rem;
	visibility: hidden;
}

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

.routeos-consent :is(a, button, input, summary):focus-visible,
.routeos-consent__settings-button:focus-visible {
	outline: 3px solid #fbbf24;
	outline-offset: 3px;
}

@media (max-width: 48rem) {
	.routeos-consent .routeos-consent__banner {
		flex-wrap: wrap;
		gap: 0.25rem 1.25rem;
		padding: 0.875rem 1rem 0.5rem;
	}

	.routeos-consent__banner-actions {
		margin-left: auto;
	}

	.routeos-consent__modal-layer {
		align-items: end;
		padding: 0;
	}

	.routeos-consent__modal {
		width: 100%;
		max-height: calc(100vh - 0.5rem);
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 1rem 1rem 0 0;
	}

	.routeos-consent__details-list > div {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}
}

@media (max-width: 30rem) {
	.routeos-consent .routeos-consent__banner {
		right: 0.75rem;
		bottom: max(0.75rem, env(safe-area-inset-bottom));
		left: 0.75rem;
		width: calc(100% - 1.5rem);
		max-height: calc(100dvh - 1.5rem);
	}

	.routeos-consent__modal-header,
	.routeos-consent__modal-body,
	.routeos-consent__modal-actions {
		padding-right: 1rem;
		padding-left: 1rem;
	}

	.routeos-consent__modal-actions {
		grid-template-columns: 1fr;
	}

	.routeos-consent__category-heading {
		gap: 0.65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.routeos-consent *,
	.routeos-consent *::before,
	.routeos-consent *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
