/* GetnDrive Visual Rebrand — Header Country / Currency / Language controls. v0.2.10.127 (Nik's Header brief 2026-11-22)

   Loaded on every public request after the Header preferences it refines. The main, lockup and shell stylesheets are
   SHA-frozen by the rendered-evidence checkers, so none of them is edited.

   The controls follow the accepted footer controls: 9px radius, thin frame, the same chevron, flag and spacing. The
   white Header keeps a light surface with dark text and teal accents; the dark drawer uses the footer's dark surface.
   Sizes are real sizes, with no transform or zoom. Touch input keeps 44px; a precise desktop pointer uses 36px. */

/* ---- Desktop Header ---- */

body.getndrive-visual-rebrand #main-header .gnd-nav-prefs--currency::before,
body.getndrive-visual-rebrand #main-header .gnd-nav-prefs--currency + .gnd-nav-prefs::before {
	display: none;
}

body.getndrive-visual-rebrand #main-header #primary-menu > li.gnd-nav-prefs--currency,
body.getndrive-visual-rebrand #main-header #primary-menu > li.gnd-nav-prefs--currency + li.gnd-nav-prefs {
	margin-left: 5px;
	padding-left: 0;
}

/* The separate sign-in button keeps a clear gap after the last control. */
body.getndrive-visual-rebrand #main-header #primary-menu > li.gnd-nav-prefs[data-gnd-nav="prefs"] {
	margin-right: 8px;
}

body.getndrive-visual-rebrand #main-header .gnd-prefs-split > summary {
	gap: 5px;
	box-sizing: border-box;
	min-height: 44px;
	padding: 3px 8px 3px 9px;
	border: 1px solid rgba(16, 32, 51, 0.24);
	border-radius: 9px;
	background: #ffffff;
	color: var(--gnd-ink, #102033);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

body.getndrive-visual-rebrand #main-header .gnd-prefs-split > summary:hover,
body.getndrive-visual-rebrand #main-header .gnd-prefs-split[open] > summary {
	border-color: var(--gnd-teal, #0f766e);
	background: rgba(15, 118, 110, 0.07);
	color: var(--gnd-ink, #102033);
}

body.getndrive-visual-rebrand #main-header .gnd-prefs-split > summary:focus-visible {
	outline: 3px solid var(--gnd-teal, #0f766e);
	outline-offset: 2px;
}

body.getndrive-visual-rebrand #main-header .gnd-prefs-split > summary .gnd-flag {
	width: 20px;
	height: 14px;
	border-radius: 3px;
}

body.getndrive-visual-rebrand #main-header .gnd-prefs-split .gnd-nav-choice__caret {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin: -3px 1px 0 2px;
	opacity: 1;
}

body.getndrive-visual-rebrand #main-header .gnd-prefs-split[open] > summary .gnd-nav-choice__caret {
	margin-top: 3px;
}

/* Panels */

body.getndrive-visual-rebrand #main-header .gnd-prefs-split--currency .gnd-nav-choice__list {
	right: 0;
	left: auto;
	min-width: 240px;
	max-width: calc(100vw - 32px);
}

body.getndrive-visual-rebrand #main-header .gnd-prefs-split .gnd-nav-choice__link,
body.getndrive-visual-rebrand #main-header .gnd-prefs-split .gnd-prefs__langs .sch-lang-switcher a,
body.getndrive-visual-rebrand #main-header .gnd-prefs-split .gnd-prefs__langs .sch-lang-switcher a:visited {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-size: 14px;
	font-weight: 500;
}

body.getndrive-visual-rebrand #main-header .gnd-prefs-split .sch-lang-switcher a .gnd-flag {
	display: inline-block;
	flex: 0 0 auto;
}

body.getndrive-visual-rebrand #main-header .gnd-prefs-split .gnd-prefs__lang-cur {
	margin-left: auto;
}

/* Currency panel (both surfaces) */

body.getndrive-visual-rebrand .gnd-prefs-currency {
	gap: 0;
}

body.getndrive-visual-rebrand .gnd-prefs-currency p {
	margin: 0;
	padding: 0 8px;
	overflow-wrap: break-word;
}

body.getndrive-visual-rebrand .gnd-prefs-currency p.gnd-prefs-currency__label {
	padding-top: 5px;
	color: #526274;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}

body.getndrive-visual-rebrand .gnd-prefs-currency p.gnd-prefs-currency__value {
	padding-top: 2px;
	padding-bottom: 5px;
	color: var(--gnd-ink, #102033);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

body.getndrive-visual-rebrand .gnd-prefs-currency p.gnd-prefs-currency__note {
	padding-bottom: 6px;
	color: #526274;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

body.getndrive-visual-rebrand .gnd-prefs-currency__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.getndrive-visual-rebrand .gnd-prefs-currency__code {
	flex: 0 0 auto;
	min-width: 3ch;
	font-weight: 700;
}

/* A precise desktop pointer can use the shorter controls; touch keeps 44px. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
	body.getndrive-visual-rebrand #main-header .gnd-prefs-split > summary {
		min-height: 36px;
	}

	body.getndrive-visual-rebrand #main-header .gnd-prefs-split .gnd-nav-choice__link,
	body.getndrive-visual-rebrand #main-header .gnd-prefs-split .gnd-prefs__langs .sch-lang-switcher a,
	body.getndrive-visual-rebrand #main-header .gnd-prefs-split .gnd-prefs__langs .sch-lang-switcher a:visited {
		min-height: 36px;
		padding-block: 5px;
	}
}

/* The narrowest desktop band: tighter frames so every label stays readable in one row beside the logo. */
@media (min-width: 1025px) and (max-width: 1199px) {
	body.getndrive-visual-rebrand #main-header .gnd-prefs-split > summary {
		gap: 4px;
		padding-inline: 7px 6px;
		font-size: 13.5px;
	}

	body.getndrive-visual-rebrand #main-header .gnd-prefs-split > summary .gnd-flag {
		width: 18px;
		height: 13px;
	}

	body.getndrive-visual-rebrand #main-header #primary-menu > li.gnd-nav-prefs--currency,
	body.getndrive-visual-rebrand #main-header #primary-menu > li.gnd-nav-prefs--currency + li.gnd-nav-prefs {
		margin-left: 4px;
	}
}

/* ---- Mobile drawer: one labelled row, wrapping only when a long value needs it ---- */

body.getndrive-visual-rebrand #mobile-drawer li.gnd-nav-prefs-group {
	position: relative;
	display: block;
	margin: 0;
	padding: 12px 0;
	border: 0;
	list-style: none;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group > .gnd-nav-prefs {
	position: static;
	display: block;
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group details.gnd-prefs-split {
	position: static;
	display: block;
	width: 100%;
	padding: 0;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs-split > summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	padding: 4px 8px 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.58);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.04);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: normal;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs-split > summary:hover,
body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs-split[open] > summary {
	border-color: #3de8d8;
	background: rgba(61, 232, 216, 0.1);
	color: #ffffff;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs-split > summary:focus-visible {
	outline: 3px solid #8ff7ee !important;
	outline-offset: 2px !important;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-nav-choice__label {
	min-width: 0;
	overflow-wrap: anywhere;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-flag {
	flex: 0 0 auto;
	width: 20px;
	height: 14px;
	border-radius: 3px;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-nav-choice__caret {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin: -3px 0 0 2px;
	opacity: 1;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs-split[open] > summary .gnd-nav-choice__caret {
	margin-top: 3px;
}

/* The panel spans the control row and lies over the links below it, inside the drawer. */
body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-nav-choice__list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	display: grid;
	gap: 2px;
	box-sizing: border-box;
	width: auto;
	min-width: 0;
	max-height: min(320px, 60vh);
	margin: 0;
	padding: 6px;
	overflow-x: hidden;
	overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 12px;
	background: #0d2842;
	box-shadow: 0 18px 40px rgba(2, 10, 24, 0.55);
	overscroll-behavior: contain;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-nav-choice__link,
body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs__langs .sch-lang-switcher a,
body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs__langs .sch-lang-switcher a:visited {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	box-sizing: border-box;
	padding: 6px 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none !important;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-nav-choice__link.is-current,
body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-nav-choice__link:hover,
body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs__langs .sch-lang-switcher a[aria-current="true"],
body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs__langs .sch-lang-switcher a:hover {
	background: rgba(61, 232, 216, 0.14);
	color: #ffffff;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-nav-choice__link.is-current::after,
body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs__lang-cur {
	margin-left: 8px;
	color: #3de8d8;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs__lang-cur {
	margin-left: auto;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-nav-choice__state {
	color: #3de8d8;
	opacity: 1;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs__langs .sch-lang-switcher {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs-currency p.gnd-prefs-currency__label,
body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs-currency p.gnd-prefs-currency__note {
	color: rgba(234, 244, 243, 0.82);
}

body.getndrive-visual-rebrand #mobile-drawer .gnd-prefs-group .gnd-prefs-currency p.gnd-prefs-currency__value {
	color: #ffffff;
}
