/* TGM MOT Lookup. Override these custom properties from the theme if needed. */
.tgm-mot {
	--tgm-mot-accent: #0b5520;
	--tgm-mot-ink: #111111;
	--tgm-mot-muted: #555954;
	--tgm-mot-line: #dfe2dd;
	--tgm-mot-card: #ffffff;
	--tgm-mot-plate: #f7d117;
	--tgm-mot-band: #003399;
	--tgm-mot-due: #f4b400;
	--tgm-mot-expired: #b3261e;
	--tgm-mot-radius: 10px;
	--tgm-mot-heading-font: inherit;
	--tgm-mot-heading-transform: uppercase;
	color: var(--tgm-mot-ink);
	font-size: 16px;
	line-height: 1.5;
}
.tgm-mot *,
.tgm-mot *::before,
.tgm-mot *::after { box-sizing: border-box; }
.tgm-mot [hidden] { display: none !important; }
.tgm-mot__sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tgm-mot :focus-visible { outline: 3px solid var(--tgm-mot-due); outline-offset: 2px; }

/* Search */
.tgm-mot__search { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin: 0; }
.tgm-mot__plate {
	display: flex; flex: 1 1 300px; max-width: 460px; min-height: 76px;
	background: var(--tgm-mot-plate); border: 3px solid var(--tgm-mot-ink); border-radius: 8px; overflow: hidden;
}
.tgm-mot__plate-band {
	flex: none; width: 50px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
	background: var(--tgm-mot-band); color: #fff; font-weight: 700; font-size: 15px;
}
.tgm-mot .tgm-mot__plate-input {
	flex: 1; min-width: 0; width: 100%; margin: 0; padding: 0 16px; border: 0; border-radius: 0; box-shadow: none;
	background: transparent; color: var(--tgm-mot-ink); text-align: center; text-transform: uppercase;
	font: 800 clamp(26px, 6vw, 38px)/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: 3px;
}
.tgm-mot .tgm-mot__plate-input::placeholder { color: rgba(17, 17, 17, 0.45); }
.tgm-mot__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 28px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--tgm-mot-accent); color: #fff; text-decoration: none;
	font-family: var(--tgm-mot-heading-font); font-weight: 700; font-size: 20px; letter-spacing: 0.5px;
	text-transform: var(--tgm-mot-heading-transform);
}
.tgm-mot__btn:hover { filter: brightness(1.12); color: #fff; }
.tgm-mot__btn:disabled { opacity: 0.7; cursor: progress; }
.tgm-mot .tgm-mot__btn--search {
	min-height: 76px; flex: 0 1 auto; font-size: 22px;
	background: var(--tgm-mot-btn-bg, var(--tgm-mot-accent));
	color: var(--tgm-mot-btn-text, #fff);
	border: var(--tgm-mot-btn-border-w, 0px) solid var(--tgm-mot-btn-border-c, transparent);
	border-radius: var(--tgm-mot-btn-radius, 8px);
	padding: var(--tgm-mot-btn-pad-y, 0px) var(--tgm-mot-btn-pad-x, 34px);
}
.tgm-mot .tgm-mot__btn--search:hover,
.tgm-mot .tgm-mot__btn--search:focus { color: var(--tgm-mot-btn-text, #fff); background: var(--tgm-mot-btn-bg, var(--tgm-mot-accent)); }
.tgm-mot__msg { margin: 12px 0 0; color: var(--tgm-mot-expired); font-weight: 700; }

/* Results layout */
.tgm-mot__result { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 36px; }
.tgm-mot__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tgm-mot__book { flex: 1 1 340px; min-width: 0; }

/* Status banner */
.tgm-mot__status {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	padding: 24px 26px; border-radius: var(--tgm-mot-radius);
	background: #e8eae6; color: var(--tgm-mot-ink);
}
.tgm-mot__status--due { background: var(--tgm-mot-due); color: #111; }
.tgm-mot__status--expired { background: var(--tgm-mot-expired); color: #fff; }
.tgm-mot__status--valid { background: var(--tgm-mot-accent); color: #fff; }
.tgm-mot__badge { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.tgm-mot__headline {
	margin: 4px 0; font-family: var(--tgm-mot-heading-font); font-weight: 700; line-height: 1.05;
	font-size: clamp(28px, 4.5vw, 40px); text-transform: var(--tgm-mot-heading-transform); outline: none;
}
.tgm-mot__expiry { font-size: 17px; font-weight: 500; }
.tgm-mot__status-cta {
	padding: 14px 22px; border-radius: 6px; background: #111; color: #fff !important; text-decoration: none !important;
	font-family: var(--tgm-mot-heading-font); font-weight: 700; font-size: 18px; text-transform: var(--tgm-mot-heading-transform);
}
.tgm-mot__note {
	margin: 0; padding: 14px 16px; border-radius: 8px; background: #fff8e1; border: 1px solid #e9d38a; font-size: 15px;
}
.tgm-mot__note--danger { background: #fff; border-color: #e3b3af; color: #7a1a14; }

/* Cards */
.tgm-mot__card {
	display: flex; flex-direction: column; gap: 14px;
	padding: 22px 26px; background: var(--tgm-mot-card); border: 1px solid var(--tgm-mot-line); border-radius: var(--tgm-mot-radius);
}
.tgm-mot__vehicle { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.tgm-mot__vehicle-name {
	font-family: var(--tgm-mot-heading-font); font-weight: 700; font-size: 24px; line-height: 1.15;
	text-transform: var(--tgm-mot-heading-transform);
}
.tgm-mot__vehicle-meta, .tgm-mot__muted { color: var(--tgm-mot-muted); font-size: 15px; margin: 0; }
.tgm-mot__plate-small {
	display: inline-block; padding: 4px 12px; border: 2px solid #111; border-radius: 5px;
	background: var(--tgm-mot-plate); color: #111; font-weight: 800; font-size: 20px; letter-spacing: 2px; white-space: nowrap;
}
.tgm-mot__stats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0;
	padding-top: 16px; border-top: 1px solid var(--tgm-mot-line);
}
.tgm-mot__stats dt { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--tgm-mot-muted); }
.tgm-mot__stats dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.tgm-mot__pass { color: var(--tgm-mot-accent); font-weight: 700; }
.tgm-mot__fail { color: var(--tgm-mot-expired); font-weight: 700; }
.tgm-mot__card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.tgm-mot__h3 {
	margin: 0; font-family: var(--tgm-mot-heading-font); font-weight: 700; font-size: 22px;
	text-transform: var(--tgm-mot-heading-transform);
}
.tgm-mot__items { list-style: none; margin: 0; padding: 0; }
.tgm-mot__item {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
	padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--tgm-mot-line);
}
.tgm-mot__item:first-child { margin-top: 0; }
.tgm-mot__tag {
	flex: none; padding: 2px 8px; border-radius: 4px; background: #fff3cd; color: #6b4e00;
	font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.tgm-mot__item--serious .tgm-mot__tag { background: #fbe0de; color: #7a1a14; }
.tgm-mot__item-text { flex: 1 1 260px; }
.tgm-mot__item-add { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--tgm-mot-accent); cursor: pointer; }
.tgm-mot__item-add input { width: 20px; height: 20px; margin: 0; accent-color: var(--tgm-mot-accent); }
.tgm-mot__ok { margin: 0; font-weight: 600; color: var(--tgm-mot-accent); }
.tgm-mot__source { margin: 0; font-size: 13px; color: var(--tgm-mot-muted); }

/* Booking panel */
.tgm-mot__book {
	padding: 26px; border-radius: var(--tgm-mot-radius); border-top: 6px solid var(--tgm-mot-accent);
	background: #111; color: #fff;
}
.tgm-mot__book a { color: #fff; font-weight: 700; }
/* Theme heading and paragraph colours often win over plugin styles, so text in the dark panel is forced white. */
.tgm-mot .tgm-mot__book h2,
.tgm-mot .tgm-mot__book h3,
.tgm-mot .tgm-mot__book .tgm-mot__h2 { color: #fff !important; }
.tgm-mot .tgm-mot__book .tgm-mot__lede,
.tgm-mot .tgm-mot__book .tgm-mot__check,
.tgm-mot .tgm-mot__book .tgm-mot__field label { color: #fff !important; }
.tgm-mot .tgm-mot__book .tgm-mot__small { color: #c4c8c2 !important; }
.tgm-mot .tgm-mot__book .tgm-mot__boxed { color: #e4e6e2 !important; }
.tgm-mot .tgm-mot__book .tgm-mot__form-err { color: #ffb4ab !important; }
.tgm-mot .tgm-mot__ok { color: var(--tgm-mot-accent) !important; }
.tgm-mot__h2 {
	margin: 0 0 8px; color: #fff; font-family: var(--tgm-mot-heading-font); font-weight: 700; line-height: 1.05;
	font-size: clamp(26px, 3.5vw, 32px); text-transform: var(--tgm-mot-heading-transform); outline: none;
}
.tgm-mot__lede { margin: 0 0 16px; color: #d6d9d4; }
.tgm-mot__boxed { padding: 12px 14px; border-radius: 6px; background: #1d1f1c; color: #e4e6e2; }
.tgm-mot__for {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 18px;
	padding: 12px 14px; border-radius: 6px; background: #1d1f1c; color: #c4c8c2; font-size: 15px;
}
.tgm-mot__for .tgm-mot__plate-small { font-size: 16px; padding: 2px 10px; }
.tgm-mot__price { margin-left: auto; }
.tgm-mot__form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.tgm-mot__field { display: flex; flex-direction: column; gap: 6px; }
.tgm-mot__field label { font-size: 14px; font-weight: 700; color: #fff; }
.tgm-mot__optional { font-weight: 400; color: #c4c8c2; }
.tgm-mot .tgm-mot__field input,
.tgm-mot .tgm-mot__field select {
	width: 100%; min-height: 48px; margin: 0; padding: 10px 14px; border: 1px solid #555954; border-radius: 6px;
	background: #fff; color: #111; font-size: 16px; box-shadow: none;
}
.tgm-mot .tgm-mot__field [aria-invalid="true"] { border: 2px solid #ff8a80; }
.tgm-mot__err, .tgm-mot__form-err { font-size: 14px; font-weight: 700; color: #ffb4ab; }
.tgm-mot__err:empty, .tgm-mot__form-err:empty { display: none; }
.tgm-mot__form-err { margin: 0; }
.tgm-mot__check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #e4e6e2; cursor: pointer; }
.tgm-mot__check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--tgm-mot-accent); }
.tgm-mot__btn--book { width: 100%; min-height: 58px; border: 2px solid #fff; }
.tgm-mot__btn--ghost { background: transparent; border: 1px solid #fff; font-size: 16px; min-height: 48px; margin-top: 8px; }
.tgm-mot__link {
	margin: 14px 0 0; padding: 10px 0; min-height: 44px; background: none; border: 0; cursor: pointer;
	color: #fff; font-size: 15px; font-weight: 700; text-decoration: underline;
}
.tgm-mot__small { margin: 12px 0 0; font-size: 13px; color: #c4c8c2; }
.tgm-mot__tick { color: var(--tgm-mot-accent); margin-bottom: 8px; }
.tgm-mot__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
	.tgm-mot__btn--search { width: 100%; min-height: 60px; }
	.tgm-mot__plate { max-width: none; }
	.tgm-mot__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tgm-mot__status, .tgm-mot__card, .tgm-mot__book { padding: 20px; }
}
