/* TGP home hero search (keyed visitors only, class-home-search.php). Builds on rims.css + tyres.css (picker, fields, dropdown). */
.tgp-r.tgp-h{ max-width: 1170px; margin: 0 auto 100px; text-align: left; }
.tgp-h__top{ display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
html body .tgp-r h2.tgp-h__title{ flex: 1 1 auto; min-width: 0; margin: 0; font: 800 27px/1.2 var(--M); letter-spacing: 0; text-transform: none; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.tgp-r .tgp-h__title span{ color: var(--y); }
.tgp-r .tgp-h__contacts{ display: flex; gap: 10px; flex: none; }
html body .tgp-r a.tgp-h__btn{ display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 22px 6px 16px; border-radius: 25px; line-height: 1.15; white-space: nowrap; text-decoration: none; transition: background-color .15s, border-color .15s; }
.tgp-r .tgp-h__svg{ display: block; flex: none; }
.tgp-r .tgp-h__bt{ display: flex; flex-direction: column; gap: 1px; }
.tgp-r .tgp-h__bt b{ font: 700 13px var(--M); letter-spacing: .5px; text-transform: uppercase; }
.tgp-r .tgp-h__bt small{ font: 600 12.5px var(--O); }
html body .tgp-r a.tgp-h__call{ background: var(--y); color: var(--dk); }
html body .tgp-r a.tgp-h__call:hover, html body .tgp-r a.tgp-h__call:focus{ background: #ffc633; color: var(--dk); }
html body .tgp-r a.tgp-h__wa{ background: rgba(24, 24, 24, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
html body .tgp-r a.tgp-h__call b, html body .tgp-r a.tgp-h__call small{ color: var(--dk); }
html body .tgp-r a.tgp-h__wa b{ color: #fff; }
html body .tgp-r a.tgp-h__wa small{ color: #d9d9d9; }
html body .tgp-r a.tgp-h__wa:hover, html body .tgp-r a.tgp-h__wa:focus{ background: #000; color: #fff; border-color: #fff; }

/* card */
.tgp-r .tgp-h__card{ margin-top: 0; padding: 10px; min-height: 178px; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.tgp-r .tgp-h__card.is-loading{ padding: 18px; }
.tgp-r .tgp-h__head{ display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 4px 6px 12px; }
.tgp-r .tgp-h__kind{ display: flex; gap: 4px; padding: 4px; background: var(--soft); border: 1px solid var(--ln); border-radius: 28px; }
html body .tgp-r button.tgp-h__kbtn{ display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 26px; border: 0 !important; border-radius: 23px; background-color: transparent !important; color: var(--dk) !important; font: 800 15px var(--M); letter-spacing: .4px; text-transform: uppercase; }
html body .tgp-r button.tgp-h__kbtn:hover, html body .tgp-r button.tgp-h__kbtn:focus{ background-color: #ececec !important; color: var(--dk) !important; }
html body .tgp-r button.tgp-h__kbtn.is-on, html body .tgp-r button.tgp-h__kbtn.is-on:hover, html body .tgp-r button.tgp-h__kbtn.is-on:focus{ background-color: var(--dk) !important; color: #fff !important; }
.tgp-r .tgp-h__kico{ display: block; flex: none; }
.tgp-r .tgp-h__kbtn.is-on .tgp-h__kico{ color: var(--y); }
.tgp-r .tgp-h__tabs{ padding: 0; }
.tgp-r .tgp-r__tab.is-on .tgp-h__wico{ filter: brightness(0) invert(1); }
.tgp-r .tgp-h__form--tyres-car{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto 240px; }
.tgp-r .tgp-h__form--rims-car{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 240px; }
.tgp-r .tgp-h__form--rims-size{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 240px; }
.tgp-r .tgp-h__foot{ min-height: 37px; }
.tgp-r .tgp-h__foot .tgp-t__cnote{ margin-right: auto; }
.tgp-r .tgp-h__foot .tgp-h__fitnote{ flex-basis: 100%; margin-top: -6px; }
.tgp-r .tgp-h__err{ padding: 20px; font-size: 14px; color: var(--mu); }
body .tgp-r .tgp-h__err a{ text-decoration: underline; color: var(--dk); }

/* hero row of the theme: a bit less empty space above, room below for the "Broneeri" card that overlaps the hero */
body.tgp-home-search #tgp-hero.vc_row{ padding-top: 120px !important; }

@media (max-width: 1199px){
	.tgp-r.tgp-h{ margin-bottom: 90px; }
	.tgp-h__top{ flex-wrap: wrap; }
	html body .tgp-r h2.tgp-h__title{ font-size: 24px; }
	/* one row less than the catalogue: season next to the button */
	.tgp-r .tgp-h__form--tyres-size > .tgp-t__season{ grid-column: 1 / 3; }
	body .tgp-r .tgp-t__fields.tgp-h__form--tyres-size .tgp-r__go{ grid-column: 3; }
	.tgp-r .tgp-h__form--tyres-car{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body .tgp-r .tgp-t__fields.tgp-h__form--tyres-car .tgp-r__go{ grid-column: auto; }
	.tgp-r .tgp-h__form--rims-car, .tgp-r .tgp-h__form--rims-size{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px; }
	body .tgp-r .tgp-t__fields.tgp-h__form--rims-car .tgp-r__go, body .tgp-r .tgp-t__fields.tgp-h__form--rims-size .tgp-r__go{ grid-column: auto; }
}
@media (max-width: 767px){
	body.tgp-home-search #tgp-hero.vc_row{ padding-top: 24px !important; padding-bottom: 110px !important; }
	.tgp-r.tgp-h{ margin: 0 auto 10px; padding: 0; }
	.tgp-h__top{ flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
	html body .tgp-r h2.tgp-h__title{ order: 2; font-size: 20px; line-height: 1.25; }
	.tgp-r .tgp-h__contacts{ order: 1; }
	.tgp-r .tgp-h__contacts{ min-width: 0; }
	html body .tgp-r a.tgp-h__btn{ flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 6px 10px; justify-content: center; gap: 7px; } /* auto: long RU «Помощь на дороге» takes the space WhatsApp doesn't need */
	.tgp-r .tgp-h__bt b{ font-size: 12.5px; letter-spacing: .3px; }
	.tgp-r .tgp-h__bt small{ font-size: 12px; }
	.tgp-r .tgp-h__card{ padding: 10px; gap: 0; border-radius: 14px; }
	.tgp-r .tgp-h__head{ padding: 0 0 10px; gap: 10px; }
	.tgp-r .tgp-h__kind{ width: 100%; }
	html body .tgp-r button.tgp-h__kbtn{ flex: 1 1 0; height: 46px; padding: 0 10px; font-size: 14px; }
	.tgp-r .tgp-h__tabs{ width: 100%; display: flex; overflow-x: auto; scrollbar-width: none; }
	.tgp-r .tgp-h__tabs::-webkit-scrollbar{ display: none; }
	.tgp-r .tgp-h__tabs{ gap: 4px; }
	body .tgp-r .tgp-h__tabs .tgp-r__tab{ flex: 1 0 auto; min-height: 38px; padding: 7px 9px; letter-spacing: .2px; }
	.tgp-r .tgp-h__form--tyres-size, .tgp-r .tgp-h__form--tyres-car, .tgp-r .tgp-h__form--rims-car, .tgp-r .tgp-h__form--rims-size{ grid-template-columns: minmax(0, 1fr); }
	.tgp-r .tgp-h__form > .tgp-t__season, body .tgp-r .tgp-t__fields.tgp-h__form .tgp-r__go{ grid-column: 1 / -1 !important; }
	.tgp-r .tgp-h__foot{ min-height: 0; }
}
/* Bottom sheet of R.dropdown (≤767): the cookie "Küpsiste seaded" button floated over the last options. */
html.tgp-r-lock #cc-reopen{ display: none !important; }

/* 2026-11-24: phones — no "Kõik" pill (3 seasons fit one line; tapping the active pill resets) */
@media (max-width: 767px){ .tgp-r .tgp-h__sall{ display: none; } }
@media (max-width: 380px){
	.tgp-r .tgp-h__contacts{ gap: 8px; }
	html body .tgp-r a.tgp-h__btn{ padding: 6px 8px; }
	.tgp-r .tgp-h__bt b{ font-size: 11.5px; letter-spacing: 0; }
	.tgp-r .tgp-h__bt small{ font-size: 11.5px; }
}
