/* GetnDrive Visual Rebrand 0.2.10.62 / 0.2.10.63 — compact shared vehicle card (catalog result cards, cars and motorbikes).
 *
 * Nik's live review (2026-10-10): on a 1470×752 desktop window the sticky Header and search sheet leave 571px of the
 * catalog visible, and a long-term motorbike card (5 tariff rows + minimum-term block) was 678px tall, so the request
 * button sat below the fold while the photo was in view.
 *
 * 0.2.10.63 (Nik, 2026-10-11): the 0.2.10.62 fixed 120px image row made the photos too small. The top price badge is
 * removed from every result card — its figures are the card's own tariff rows (a long-term card's entry per-day row and
 * month band, a daily chip's lowest row), and a per-day equivalent of a monthly tariff is not wanted on the card — and
 * its row goes to the photo: one 20:11 white image tray, the photo contain-fit and centred (nothing cropped or stretched).
 * The tariff table, the minimum-term / monthly block and the dated quote are unchanged.
 *
 * What this layer does (CSS only, printed after every other Rebrand stylesheet on rental catalog requests):
 *   - the price badge is not displayed (it stays in the markup for other plugins' contracts; hidden from every reader,
 *     because each figure it carried is in the tariff table or deliberately not shown);
 *   - the photo tray is one 20:11 row (image-less cards keep the same tray with their category label);
 *   - the tariff table and the lower stack (minimum term / monthly price, dated quote) use the card body's full width
 *     instead of an extra 18px inset on each side, so the partner caveat wraps on fewer lines;
 *   - table rows and the small vertical gaps are tighter; the minimum-term label and value share one line.
 * Not changed: font sizes of names, prices and the CTA, every tariff row, the minimum-term / partner caveat, conditions,
 * the CTA, markup, scripts, the single auto top margin of the lower stack, hover/focus outline, the category tiles.
 *
 * Scope: result cards only — every rule is under `.sch-demo-vehicles .sch-demo-vehicle-card` on a public rental shell
 * body, and media rules use the direct-child form `.sch-demo-vehicle-card > .sch-demo-vehicle-card__media`, so the
 * category overview tiles (which reuse the media class name inside a button) cannot match. Specificity is one class and
 * one element above the 0.2.9.24 result-card layer; contested properties keep its `!important`.
 */

/* 0.2.10.63: no price badge over the photo. */
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card > .sch-demo-vehicle-card__media > .sch-demo-vehicle-card__from {
	display: none !important;
}

/* Photo tray: one 20:11 row on white (the badge row and the 0.2.10.62 image row together, so the card is no taller);
   the image fills it, contain-fit, with a little breathing room. */
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card > .sch-demo-vehicle-card__media {
	aspect-ratio: 20 / 11 !important;
	grid-template-rows: minmax(0, 1fr) !important;
}

html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card > .sch-demo-vehicle-card__media > img {
	grid-row: 1 !important;
	padding: 8px 14px !important;
}

/* Image-less cards: the same tray, the category label centred in it. */
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card > .sch-demo-vehicle-card__media--placeholder > span:not(.sch-demo-vehicle-card__from) {
	grid-row: 1 !important;
	padding: 8px !important;
}

/* Body: name, category and partner lines closer together. */
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__body {
	padding-top: 8px !important;
}

html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__title {
	margin-bottom: 2px !important;
}

html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__meta,
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__partner {
	margin-bottom: 3px !important;
}

/* Tariffs: the body's full width, tighter rows (type sizes unchanged). */
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__rates {
	margin: 6px 0 0 !important;
}

html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__price-table th,
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__price-table td {
	padding-top: 3px !important;
	padding-bottom: 3px !important;
}

/* Lower stack: full width; its auto top margin (the runtime contract) is untouched. */
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__lower {
	margin-right: 0 !important;
	margin-left: 0 !important;
}

/* Minimum term / monthly price: label and value on one line, the caveat under them at full width. */
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__monthly {
	flex-flow: row wrap !important;
	align-items: baseline !important;
	column-gap: 8px !important;
	row-gap: 1px !important;
	margin-top: 4px !important;
	padding: 6px 10px 7px !important;
}

html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__monthly > * {
	flex: 1 0 100%;
	min-width: 0;
}

html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__monthly > .sch-demo-vehicle-card__monthly-label,
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__monthly > .sch-demo-vehicle-card__monthly-total {
	flex: 0 1 auto;
}

/* CTA: same size, a little less air around it. */
html body.getndrive-visual-rebrand.gnd-public-rental-shell .sch-demo-vehicles .sch-demo-vehicle-card .sch-demo-vehicle-card__cta {
	margin-top: 8px !important;
	margin-bottom: 10px !important;
}
