/*
 * Regional Routing 0.3.63 — the shared country first screen (Nik's approved first-screen phase, 2026-11-04).
 *
 * One geometry for every country page (reference: the Georgia hub):
 *   - stage: calc(100% - 32px) wide (at most 1672 px), 12 px under the header band, 18 px corners, one height rule;
 *     a navy wash on the left keeps the white copy legible on every picture;
 *   - copy at the upper left: the H1 (moderate weight, two controlled lines from 768 px) and the lead; the
 *     destination chips (links) at the foot of the picture, 36 px above the search; carousel controls stay in the
 *     top-right corner;
 *   - the compact search panel overlaps the picture's lower edge by 44 px and is pinned under the header from 1025 px.
 * Sections: 1. tokens, 2. stage, 3. copy and chips, 4. compact search (Georgia, Turkey), 5. pinned search,
 * 6. Thailand adapter (Dynamic Hero stage + Home Platform search), 7. mode status page, 8. phones and tablets.
 */

/* 1. Tokens ---------------------------------------------------------------------------------------------------- */

.gnd-cfs-host {
	--gnd-cfs-gutter: 16px;
	--gnd-cfs-max: 1672px;
	--gnd-cfs-height: clamp(400px, 33vw, 540px);
	--gnd-cfs-radius: 18px;
	--gnd-cfs-pad-x: clamp(20px, 4vw, 56px);
	--gnd-cfs-pad-top: clamp(32px, 4vw, 64px);
	--gnd-cfs-overlap: 44px;
	--gnd-cfs-search-w: min(1200px, calc(100% - 80px));
	--gnd-cfs-h1: clamp(2rem, 4.2vw, 3.5rem);
	--gnd-cfs-h1-weight: 600;
	--gnd-cfs-lead: clamp(1rem, 1.5vw, 1.1875rem);
	--gnd-cfs-lead-w: 50ch;
	--gnd-cfs-navy: #0b1f3a;
	--gnd-cfs-ink: #10243f;
	--gnd-cfs-muted: #5a6b80;
	--gnd-cfs-line: #d7e0ea;
	--gnd-cfs-teal: #0f6f68;
	--gnd-cfs-wash:
		linear-gradient(90deg, rgba(11, 31, 58, 0.74) 0%, rgba(11, 31, 58, 0.44) 46%, rgba(11, 31, 58, 0.06) 76%),
		linear-gradient(180deg, rgba(11, 31, 58, 0.18) 0%, rgba(11, 31, 58, 0) 34%, rgba(11, 31, 58, 0.42) 100%);
}

.gnd-cfs-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* 2. Stage ----------------------------------------------------------------------------------------------------- */

.gnd-cfs-host .gnd-cfs {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: calc(100% - 2 * var(--gnd-cfs-gutter));
	max-width: var(--gnd-cfs-max);
	min-height: var(--gnd-cfs-height);
	margin: 12px auto 0;
	overflow: hidden;
	border-radius: var(--gnd-cfs-radius);
	background: var(--gnd-cfs-navy);
	color: #ffffff;
}

.gnd-cfs-host .gnd-cfs::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--gnd-cfs-wash);
	pointer-events: none;
}

.gnd-cfs-host .gnd-cfs__media,
.gnd-cfs-host .gnd-cfs__media .gnd-preparing__scene,
.gnd-cfs-host .gnd-cfs__media .gnd-preparing__scene-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.gnd-cfs-host .gnd-cfs__media {
	z-index: 0;
}

.gnd-cfs-host .gnd-cfs__media .gnd-preparing__scene {
	display: block;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.gnd-cfs-host .gnd-cfs__media .gnd-preparing__scene.is-active {
	opacity: 1;
}

.gnd-cfs-host .gnd-cfs__media .gnd-preparing__scene-img {
	object-fit: cover;
	object-position: center;
}

.gnd-cfs-host .gnd-cfs__controls {
	position: absolute;
	z-index: 3;
	top: clamp(12px, 1.8vw, 22px);
	right: clamp(12px, 1.8vw, 22px);
}

/* 3. Copy and chips -------------------------------------------------------------------------------------------- */

.gnd-cfs-host .gnd-cfs__body {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	padding: var(--gnd-cfs-pad-top) var(--gnd-cfs-pad-x) calc(var(--gnd-cfs-overlap) + 36px);
}

.gnd-cfs-host .gnd-cfs__title,
.gnd-cfs-host .gnd-cfs__body .gnd-country-root__title {
	max-width: 20ch;
	margin: 0 0 12px;
	color: #ffffff;
	font-size: var(--gnd-cfs-h1);
	font-weight: var(--gnd-cfs-h1-weight);
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 18px rgba(11, 31, 58, 0.45);
}

.gnd-cfs-host .gnd-cfs__lead,
.gnd-cfs-host .gnd-cfs__body .gnd-country-root__lead {
	max-width: var(--gnd-cfs-lead-w);
	margin: 0;
	color: rgba(255, 255, 255, 0.94);
	font-size: var(--gnd-cfs-lead);
	line-height: 1.5;
	text-shadow: 0 1px 10px rgba(11, 31, 58, 0.5);
}

/* The chips sit at the foot of the copy area, 36 px above the search panel, whatever the lead's length (the same
   place as the Thailand chips). */
.gnd-cfs-host .gnd-cfs__chips {
	margin-top: auto;
	padding-top: clamp(16px, 2vw, 22px);
}

.gnd-cfs-host .gnd-cfs__chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gnd-cfs-host .gnd-cfs__chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	box-sizing: border-box;
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--gnd-cfs-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.gnd-cfs-host .gnd-cfs__chip:hover {
	background: #ffffff;
	color: var(--gnd-cfs-teal);
}

.gnd-cfs-host .gnd-cfs__chip--more {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(11, 31, 58, 0.36);
	color: #ffffff;
}

.gnd-cfs-host .gnd-cfs__chip--more:hover {
	background: rgba(11, 31, 58, 0.56);
	color: #ffffff;
}

.gnd-cfs-host .gnd-cfs__chip:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 2px;
}

/* The country phrase never breaks ("в Грузии", "in Georgia"), so phones wrap before it, never inside it. */
.gnd-cfs-host .gnd-cfs__title .gnd-cfs__line + .gnd-cfs__line {
	white-space: nowrap;
}

@media (min-width: 768px) {
	/* The controlled two-line heading: "Аренда транспорта" / "в Грузии". */
	.gnd-cfs-host .gnd-cfs__title .gnd-cfs__line {
		display: block;
	}
}

/* 4. Compact search (Georgia, Turkey) -------------------------------------------------------------------------- */

.gnd-cfs-host .gnd-cfs-search {
	position: relative;
	z-index: 3;
	box-sizing: border-box;
	width: var(--gnd-cfs-search-w);
	margin: calc(-1 * var(--gnd-cfs-overlap)) auto 0;
}

.gnd-cfs-host .gnd-cfs-panel {
	box-sizing: border-box;
	padding: 12px;
	border: 1px solid rgba(215, 224, 234, 0.9);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(11, 31, 58, 0.16);
	color: var(--gnd-cfs-ink);
}

.gnd-cfs-host .gnd-cfs-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	align-items: end;
	margin: 0;
}

.gnd-cfs-host .gnd-cfs-form__modes {
	grid-column: 1 / -1;
	display: inline-flex;
	justify-self: start;
	gap: 0;
	min-width: 0;
	margin: 0;
	padding: 3px;
	border: 1px solid var(--gnd-cfs-line);
	border-radius: 12px;
	background: #f2f6f9;
}

.gnd-cfs-host .gnd-cfs-form__mode {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.gnd-cfs-host .gnd-cfs-form__mode input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.gnd-cfs-host .gnd-cfs-form__mode span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	min-height: 40px;
	box-sizing: border-box;
	padding: 6px 14px;
	border-radius: 9px;
	color: var(--gnd-cfs-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
}

.gnd-cfs-host .gnd-cfs-form__mode input:checked + span {
	background: var(--gnd-cfs-teal);
	color: #ffffff;
}

.gnd-cfs-host .gnd-cfs-form__mode input:focus-visible + span {
	outline: 3px solid var(--gnd-cfs-teal);
	outline-offset: 2px;
}

.gnd-cfs-host .gnd-cfs-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.gnd-cfs-host .gnd-cfs-form__field--place {
	grid-column: 1 / -1;
}

.gnd-cfs-host .gnd-cfs-form__label {
	overflow: hidden;
	color: var(--gnd-cfs-muted);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.gnd-cfs-host .gnd-cfs-form__input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--gnd-cfs-line);
	border-radius: 10px;
	background: #ffffff;
	color: var(--gnd-cfs-ink);
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1.2;
}

.gnd-cfs-host .gnd-cfs-form__input:focus-visible {
	border-color: var(--gnd-cfs-teal);
	outline: 2px solid rgba(15, 111, 104, 0.35);
	outline-offset: 0;
}

.gnd-cfs-host .gnd-cfs-form__submit {
	grid-column: 1 / -1;
	height: 44px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: var(--gnd-cfs-teal);
	color: #ffffff;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.gnd-cfs-host .gnd-cfs-form__submit:hover {
	background: #0b5a54;
}

.gnd-cfs-host .gnd-cfs-form__submit:focus-visible {
	outline: 3px solid var(--gnd-cfs-ink);
	outline-offset: 2px;
}

.gnd-cfs-host .gnd-cfs-panel__note,
.gnd-cfs-host .gnd-cfs-panel__error {
	margin: 10px 2px 0;
	font-size: 0.875rem;
	line-height: 1.45;
}

.gnd-cfs-host .gnd-cfs-panel__note {
	color: var(--gnd-cfs-muted);
}

.gnd-cfs-host .gnd-cfs-panel__error {
	color: #a4262c;
	font-weight: 600;
}

@media (min-width: 768px) {
	.gnd-cfs-host .gnd-cfs-form {
		grid-template-columns: minmax(0, 1fr) minmax(96px, 0.55fr) minmax(0, 1fr) minmax(96px, 0.55fr);
	}

	.gnd-cfs-host .gnd-cfs-form__modes,
	.gnd-cfs-host .gnd-cfs-form__field--place,
	.gnd-cfs-host .gnd-cfs-form__submit {
		grid-column: auto;
	}

	.gnd-cfs-host .gnd-cfs-form__modes {
		grid-column: 1 / 3;
	}

	.gnd-cfs-host .gnd-cfs-form__field--place {
		grid-column: 3 / -1;
	}

	.gnd-cfs-host .gnd-cfs-form__submit {
		grid-column: 1 / -1;
	}
}

/* 1025–1279 px: two rows — mode, place and button, then the dates and times under the place (the same band in which
   the Thailand rail gives its place field a row of its own), so the destination prompt is never cut. */
@media (min-width: 1025px) and (max-width: 1279px) {
	.gnd-cfs-host .gnd-cfs-form {
		grid-template-columns: auto minmax(0, 1fr) minmax(96px, 0.6fr) minmax(0, 1fr) minmax(96px, 0.6fr) auto;
	}

	.gnd-cfs-host .gnd-cfs-form__modes {
		grid-column: 1;
		grid-row: 1;
		align-self: end;
	}

	.gnd-cfs-host .gnd-cfs-form__field--place {
		grid-column: 2 / 6;
		grid-row: 1;
	}

	.gnd-cfs-host .gnd-cfs-form__submit {
		grid-column: 6;
		grid-row: 1;
	}

	.gnd-cfs-host .gnd-cfs-form__field--date,
	.gnd-cfs-host .gnd-cfs-form__field--time {
		grid-row: 2;
	}

	.gnd-cfs-host .gnd-cfs-form > :nth-child(3) {
		grid-column: 2;
	}

	.gnd-cfs-host .gnd-cfs-form > :nth-child(4) {
		grid-column: 3;
	}

	.gnd-cfs-host .gnd-cfs-form > :nth-child(5) {
		grid-column: 4;
	}

	.gnd-cfs-host .gnd-cfs-form > :nth-child(6) {
		grid-column: 5;
	}
}

/* From 1280 px: one row. */
@media (min-width: 1280px) {
	.gnd-cfs-host .gnd-cfs-form {
		grid-template-columns: auto minmax(210px, 1.5fr) minmax(0, 1fr) minmax(88px, 0.55fr) minmax(0, 1fr) minmax(88px, 0.55fr) auto;
	}

	.gnd-cfs-host .gnd-cfs-form__modes,
	.gnd-cfs-host .gnd-cfs-form__field--place,
	.gnd-cfs-host .gnd-cfs-form__submit {
		grid-column: auto;
	}

	.gnd-cfs-host .gnd-cfs-form__modes {
		align-self: end;
	}
}

/* 4b. Fixed-transport and destination-only forms (0.3.66, the category pages) ---------------------------------
   `--fixed`: no Car / Moto choice, so the place field leads (children: place, date, time, date, time, submit).
   `--place`: destination only (children: place, submit). */

@media (min-width: 768px) {
	.gnd-cfs-host .gnd-cfs-form--fixed .gnd-cfs-form__field--place {
		grid-column: 1 / -1;
	}

	.gnd-cfs-host .gnd-cfs-form--place {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.gnd-cfs-host .gnd-cfs-form--place .gnd-cfs-form__field--place,
	.gnd-cfs-host .gnd-cfs-form--place .gnd-cfs-form__submit {
		grid-column: auto;
	}
}

@media (min-width: 1025px) and (max-width: 1279px) {
	.gnd-cfs-host .gnd-cfs-form--fixed {
		grid-template-columns: minmax(0, 1fr) minmax(96px, 0.6fr) minmax(0, 1fr) minmax(96px, 0.6fr) auto;
	}

	.gnd-cfs-host .gnd-cfs-form--fixed .gnd-cfs-form__field--place {
		grid-column: 1 / 5;
		grid-row: 1;
	}

	.gnd-cfs-host .gnd-cfs-form--fixed .gnd-cfs-form__submit {
		grid-column: 5;
		grid-row: 1;
	}

	.gnd-cfs-host .gnd-cfs-form--fixed > :nth-child(2) {
		grid-column: 1;
	}

	.gnd-cfs-host .gnd-cfs-form--fixed > :nth-child(3) {
		grid-column: 2;
	}

	.gnd-cfs-host .gnd-cfs-form--fixed > :nth-child(4) {
		grid-column: 3;
	}

	.gnd-cfs-host .gnd-cfs-form--fixed > :nth-child(5) {
		grid-column: 4;
	}

	.gnd-cfs-host .gnd-cfs-form--place {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.gnd-cfs-host .gnd-cfs-form--place .gnd-cfs-form__field--place {
		grid-column: 1;
	}

	.gnd-cfs-host .gnd-cfs-form--place .gnd-cfs-form__submit {
		grid-column: 2;
	}
}

@media (min-width: 1280px) {
	.gnd-cfs-host .gnd-cfs-form--fixed {
		grid-template-columns: minmax(240px, 1.6fr) minmax(0, 1fr) minmax(88px, 0.55fr) minmax(0, 1fr) minmax(88px, 0.55fr) auto;
	}

	.gnd-cfs-host .gnd-cfs-form--fixed .gnd-cfs-form__field--place {
		grid-column: auto;
	}

	.gnd-cfs-host .gnd-cfs-form--place {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

/* 5. Pinned search (desktop) ----------------------------------------------------------------------------------- */

@media (min-width: 1025px) {
	.gnd-cfs-host .gnd-cfs-search {
		position: sticky;
		top: var(--gnd-pin-top, calc(90px + var(--wp-admin--admin-bar--height, 0px)));
		z-index: 40;
	}

	.gnd-cfs-host .gnd-cfs-search.is-pinned {
		min-height: var(--gnd-pin-h, 0);
		pointer-events: none;
	}

	.gnd-cfs-host .gnd-cfs-search.is-pinned .gnd-cfs-panel {
		padding: 8px 12px 10px;
		border-radius: 0 0 16px 16px;
		box-shadow: 0 12px 28px rgba(11, 31, 58, 0.16);
		pointer-events: auto;
	}

	.gnd-cfs-host .gnd-cfs-search.is-pinned .gnd-cfs-panel__note {
		display: none;
	}

	.gnd-cfs-host .gnd-country-root__section {
		scroll-margin-top: calc(var(--gnd-pin-top, 90px) + 110px);
	}
}

/* 6. Thailand adapter (every width) ----------------------------------------------------------------------------
   The Thailand page keeps Dynamic Hero's stage, controls and chips and Home Platform's search inside Routing's Hero
   host. Only geometry changes here: the stage takes the shared box (width, top margin, height, corners, wash); row 1
   of the hero grid ends at the overlap line above the picture's lower edge (the copy at its top, the chips at its
   foot) and row 2 is the search rail, which therefore overlaps the edge as on Georgia and Turkey; the rail is as wide
   as theirs and shows its own field labels with room for the place prompt. Dynamic Hero and Visual Rebrand state this
   geometry with `!important` on long selectors, so the adapter repeats `!important` on a longer selector that also
   carries the body class (a rule of equal weight from the later-loaded Dynamic Hero stylesheet would win).
   Phones (below 768 px): Visual Rebrand's search-first phone layer (`data-gnd-mobile-search-first`) hides the stage
   and the chips and paints a light, photo-free band; on the Thailand country page only, the adapter shows the stage,
   the chips and the white copy again, so the phone first screen has the same picture-first geometry as Georgia and
   Turkey. The layer's form, scripts and copy stay as they are; its quick-direction block (the same destinations as the
   chips) is not shown here. The homepage is untouched. Markup, controllers and the pinned rail are untouched. */

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .gnd-country-hero-host.sch-platform-home--redesign {
	container-type: inline-size;
	padding: 0 !important;
	background: transparent !important;
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .gnd-country-hero-host.sch-platform-home--redesign > .wp-block-group__inner-container {
	box-sizing: border-box;
	width: calc(100% - 2 * var(--gnd-cfs-gutter)) !important;
	max-width: var(--gnd-cfs-max) !important;
	margin: 12px auto 0 !important;
	padding: 0 !important;
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active {
	width: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #ffffff !important;
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-hero-stage {
	display: block !important;
	inset: 0 0 auto 0 !important;
	height: var(--gnd-cfs-height) !important;
	overflow: hidden !important;
	border-radius: var(--gnd-cfs-radius) !important;
}

/* The wash covers the picture only (not the band under it) and is the shared one. */
body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active::before {
	content: "" !important;
	display: block !important;
	inset: 0 0 auto 0 !important;
	height: var(--gnd-cfs-height) !important;
	border-radius: var(--gnd-cfs-radius) !important;
	background: var(--gnd-cfs-wash) !important;
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-hero-scenes__scrim {
	background: none !important;
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active > .wp-block-group__inner-container {
	box-sizing: border-box;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	grid-template-rows: minmax(calc(var(--gnd-cfs-height) - var(--gnd-cfs-overlap) - var(--gnd-cfs-pad-top)), auto) auto !important;
	row-gap: 0 !important;
	align-items: start !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: var(--gnd-cfs-pad-top) var(--gnd-cfs-pad-x) 0 !important;
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-platform-hero__copy {
	grid-column: 1 !important;
	grid-row: 1 !important;
	align-self: start !important;
	justify-self: start !important;
	justify-content: flex-start !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	color: #ffffff !important;
	text-align: left !important;
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active h1.gnd-cfs__title {
	max-width: 20ch !important;
	margin: 0 0 12px !important;
	color: #ffffff !important;
	font-size: var(--gnd-cfs-h1) !important;
	font-weight: var(--gnd-cfs-h1-weight) !important;
	line-height: 1.08 !important;
	letter-spacing: -0.01em !important;
	text-align: left !important;
	text-shadow: 0 2px 18px rgba(11, 31, 58, 0.45);
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-platform-hero__copy p.gnd-cfs__lead {
	display: block !important;
	max-width: var(--gnd-cfs-lead-w) !important;
	margin: 0 !important;
	color: rgba(255, 255, 255, 0.94) !important;
	font-size: var(--gnd-cfs-lead) !important;
	line-height: 1.5 !important;
	text-align: left !important;
	text-shadow: 0 1px 10px rgba(11, 31, 58, 0.5);
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-hero-chips {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	grid-column: 1 / -1 !important;
	grid-row: 1 !important;
	align-self: end !important;
	overflow: visible !important;
	margin: clamp(16px, 2vw, 22px) 0 36px !important;
	padding: 0 !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
}

/* As wide as the Georgia / Turkey panel: the page width (the full-width host, as a size container) less 80 px, at
   most 1200 px (phones: less 24 px), centred on the stage. The grid item is Visual Rebrand's shell once its script has
   wrapped the rail, the rail itself before that. */
body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-search-shell,
body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active > .wp-block-group__inner-container > .sch-platform-hero__search {
	grid-column: 1 / -1 !important;
	grid-row: 2 !important;
	align-self: start !important;
	justify-self: center !important;
	position: relative !important;
	width: min(1200px, calc(100cqw - 80px)) !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-search-shell > .sch-platform-hero__search {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-platform-hero__search .sch-home-search:not(.is-stuck) {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* The rail's own field labels ("Точка получения", "Дата получения", "Тип авто" …) stay visible above each control
   while the rail is in the hero (Visual Rebrand hides them on wide screens; the pinned rail keeps hiding them). */
body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-home-search:not(.is-stuck) .sch-home-search__grid > label > span {
	position: static !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: auto !important;
	clip-path: none !important;
	color: var(--gnd-cfs-muted) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	text-overflow: ellipsis !important;
}

@media (min-width: 768px) {
	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-cfs__title .gnd-cfs__line {
		display: block;
	}
}

/* Tablets: the place field on its own row, then the date / time pairs (Visual Rebrand's two-column rail otherwise
   pairs the place with the pick-up date and the pick-up time with the return date). */
@media (min-width: 768px) and (max-width: 1024px) {
	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-home-search:not(.is-stuck) .sch-home-search__grid > .sch-home-search__location {
		grid-column: 1 / -1 !important;
	}
}

/* Desktop rail: a narrower Car / Moto switch and button leave the place field room for its whole prompt
   ("Страна, город, район или место получения"). From 1280 px one row; 1025–1279 px the place field takes the first
   row of the field grid. */
@media (min-width: 1025px) {
	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-platform-hero__search .sch-home-search:not(.is-stuck) {
		grid-template-columns: 132px minmax(0, 1fr) 104px !important;
	}

	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-home-search:not(.is-stuck) .sch-home-search__kinds .sch-home-search__kind {
		min-width: 0 !important;
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-home-search:not(.is-stuck) .sch-home-search__submit {
		min-width: 0 !important;
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-home-search:not(.is-stuck) .sch-home-search__grid {
		column-gap: 6px !important;
	}
}

@media (min-width: 1025px) and (max-width: 1279px) {
	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-home-search:not(.is-stuck) .sch-home-search__grid {
		grid-template-columns: minmax(0, 1fr) minmax(96px, 0.8fr) minmax(0, 1fr) minmax(96px, 0.8fr) minmax(88px, 0.8fr) !important;
	}

	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-home-search:not(.is-stuck) .sch-home-search__grid > .sch-home-search__location {
		grid-column: 1 / -1 !important;
	}
}

@media (min-width: 1280px) {
	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-home-search:not(.is-stuck) .sch-home-search__grid {
		grid-template-columns: minmax(312px, 2.6fr) minmax(110px, 1fr) minmax(120px, 1fr) minmax(110px, 1fr) minmax(120px, 1fr) minmax(80px, 0.7fr) !important;
	}
}

@media (max-width: 767px) {
	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-search-shell,
	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active > .wp-block-group__inner-container > .sch-platform-hero__search {
		width: calc(100cqw - 24px) !important;
	}

	/* The search-first layer's quick directions repeat the chips above; the assurance line stays with that layer's
	   own (homepage) screen. */
	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-msf-after.gnd-msf-after[data-gnd-msf-after] {
		display: none !important;
	}

	/* Controls in the top-right corner, one row (caption line dropped), as on Georgia and Turkey. */
	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-hero-bar {
		top: 12px !important;
		right: 12px !important;
		bottom: auto !important;
		left: auto !important;
		align-items: center !important;
	}

	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-hero-caption {
		display: none !important;
	}

	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .gnd-hero-chip {
		min-height: 36px !important;
		padding: 6px 13px !important;
		font-size: 0.875rem !important;
	}

	/* The place prompt fits the phone field whole (the typed value keeps the 16 px size). */
	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-home-search .sch-location-search__input::placeholder {
		font-size: 13px;
	}

	body.getndrive-visual-rebrand .gnd-cfs-host--thailand .sch-platform-home--redesign .sch-platform-hero--redesign.gnd-dynamic-hero-active .sch-home-search .sch-location-search__input {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}

/* 7. Mode status page ------------------------------------------------------------------------------------------ */

.gnd-mode-status .gnd-mode-status__card {
	box-sizing: border-box;
	max-width: 760px;
	margin: clamp(24px, 5vw, 56px) 0;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid #d7e0ea;
	border-radius: 18px;
	background: #ffffff;
}

.gnd-mode-status .gnd-mode-status__title {
	margin: 0 0 12px;
	font-size: clamp(1.875rem, 3.4vw, 2.75rem);
	font-weight: 600;
	line-height: 1.1;
}

.gnd-mode-status .gnd-mode-status__status {
	margin: 0 0 10px;
	color: #10243f;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	font-weight: 600;
	line-height: 1.45;
}

.gnd-mode-status .gnd-mode-status__body {
	max-width: 60ch;
	margin: 0;
	color: #3b4c61;
	line-height: 1.6;
}

.gnd-mode-status .gnd-mode-status__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.gnd-mode-status .gnd-mode-status__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 10px 18px;
	border: 1px solid #0f6f68;
	border-radius: 10px;
	color: #0f6f68;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.gnd-mode-status .gnd-mode-status__link--primary {
	background: #0f6f68;
	color: #ffffff;
}

.gnd-mode-status .gnd-mode-status__link:focus-visible {
	outline: 3px solid #10243f;
	outline-offset: 2px;
}

/* 7b. Region information on a status page (0.3.66) */

.gnd-mode-status .gnd-mode-status__region {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	margin: 22px 0 0;
	padding: 16px;
	border: 1px solid #d7e0ea;
	border-radius: 14px;
	background: #f6f9fb;
}

.gnd-mode-status .gnd-mode-status__region-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.gnd-mode-status .gnd-mode-status__region-title {
	margin: 0 0 6px;
	color: #10243f;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
}

.gnd-mode-status .gnd-mode-status__region-text {
	margin: 0;
	color: #3b4c61;
	line-height: 1.55;
}

@media (max-width: 599px) {
	.gnd-mode-status .gnd-mode-status__region {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 8. Phones and tablets ---------------------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.gnd-cfs-host {
		--gnd-cfs-gutter: 12px;
		--gnd-cfs-height: clamp(420px, 118vw, 520px);
		--gnd-cfs-pad-x: 16px;
		--gnd-cfs-pad-top: 64px;
		--gnd-cfs-overlap: 32px;
		--gnd-cfs-search-w: calc(100% - 24px);
		--gnd-cfs-h1: 1.875rem;
	}

	.gnd-cfs-host .gnd-cfs__chip {
		min-height: 36px;
		padding: 6px 13px;
		font-size: 0.875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gnd-cfs-host .gnd-cfs__media .gnd-preparing__scene,
	.gnd-cfs-host .gnd-cfs__chip {
		transition: none;
	}
}
