/* =====================================================================
   UK Mini Trucks: round Google reviews badge (ukmt-stock 0.4.6.9.1)
   Option B (Monty, 23 Oct 2026): light blue, navy text and navy stars, no orange.
   Placement: top right corner of the main truck photo (Monty, 24 Oct 2026).
   Truck pages only (enqueued by UKMT_Listing_V2::assets). Scope: .ukmt-tb* only.
   ===================================================================== */
@import url("https://fonts-api.wp.com/css2?family=Roboto+Slab:wght@800&display=swap");

.ukmt-tb{
  --tb-navy:#11293B;--tb-navy-2:#1C3A52;--tb-accent:#2A6FA3;--tb-accent-ink:#1E5580;
  --tb-blue:#A9CCE8;--tb-blue-2:#D6E8F6;--tb-tint:#EAF3FA;--tb-gold:#B08A3E;
  --tb-slab:"Roboto Slab",Rockwell,"Rockwell Extra Bold","Zilla Slab",Georgia,serif;
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  gap:.9rem 1rem;margin:0;padding:0;list-style:none;font-size:1rem;
  position:relative;z-index:3;box-sizing:border-box
}
.ukmt-tb *,.ukmt-tb *::before,.ukmt-tb *::after{box-sizing:border-box}
.ukmt-tb__item{margin:0;padding:0;list-style:none;max-width:100%;flex:0 1 auto}
.ukmt-tb__item::before{content:none}

/* The circle. Colours come from per-badge variables set by the variant. */
.ukmt-tb__b{
  --b-bg:#fff;--b-ring:var(--tb-blue);--b-ring-w:.5em;--b-halo:#fff;--b-ink:var(--tb-navy);
  --b-sub:var(--tb-accent-ink);--b-star:var(--tb-gold);--b-stitch:var(--tb-accent);
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:10em;max-width:100%;aspect-ratio:1/1;border-radius:50%;
  padding:1em;text-align:center;text-decoration:none;line-height:1.08;
  container-type:inline-size;
  font-family:Poppins,"Open Sans",system-ui,sans-serif;color:var(--b-ink);
  background:var(--b-bg);border:var(--b-ring-w) solid var(--b-ring);
  box-shadow:0 0 0 .2em var(--b-halo),0 .45em 1.1em rgba(17,41,59,.22);
  transition:transform .2s ease
}
.ukmt-tb__b::before{ /* dashed stitch ring, sticker feel */
  content:"";position:absolute;inset:.4em;border-radius:50%;
  border:2px dashed var(--b-stitch);opacity:.35;pointer-events:none
}
.ukmt-tb__item--rev .ukmt-tb__b{transform:rotate(-4deg)}
a.ukmt-tb__b:hover,a.ukmt-tb__b:focus-visible{transform:rotate(0) scale(1.04)}
a.ukmt-tb__b:focus-visible{outline:3px solid var(--tb-accent);outline-offset:.35em}
@media (prefers-reduced-motion:reduce){.ukmt-tb__b{transition:none}}

/* B: both light blue with navy text and navy stars (all blue) */
.ukmt-tb--vb .ukmt-tb__b{--b-bg:var(--tb-blue-2);--b-ring:#fff;--b-ring-w:.3em;--b-halo:var(--tb-blue);--b-ink:var(--tb-navy);--b-sub:var(--tb-accent-ink);--b-star:var(--tb-navy);--b-stitch:var(--tb-accent)}

/* Text (fallback em = cqi x 0.07, the badge content box is about 7em wide) */
.ukmt-tb__small,.ukmt-tb__mid,.ukmt-tb__foot,.ukmt-tb__big{display:block;max-width:100%}
.ukmt-tb__small{font-size:.74em;font-size:10.5cqi;font-weight:500;letter-spacing:.04em;color:var(--b-sub)}
.ukmt-tb__big{font-family:var(--tb-slab);font-weight:800;font-size:2.17em;font-size:31cqi;line-height:.95;letter-spacing:-.01em;color:var(--b-ink)}
.ukmt-tb__big--xl{font-size:2.45em;font-size:35cqi;line-height:.9}
.ukmt-tb__mid{font-size:0.81em;font-size:11.5cqi;font-weight:500;margin-top:.1em}
.ukmt-tb__slab{font-family:var(--tb-slab);font-weight:800;letter-spacing:0}
.ukmt-tb__stars{display:block;width:72%;height:auto;margin:.3em auto .25em;fill:var(--b-star)}
.ukmt-tb__foot{font-size:0.66em;font-size:9.4cqi;font-weight:500;line-height:1.2;color:var(--b-ink)}
.ukmt-tb__foot b{font-weight:700}
.ukmt-tb__foot--place{font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:0.48em;font-size:6.8cqi;margin-top:.15em}
.ukmt-tb__rule{display:block;width:26%;height:2px;margin:.25em auto .25em;background:currentColor;opacity:.45;border-radius:2px}
.ukmt-tb__sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Compact size (gallery corner, stock header) ----------
   Drops the "Rated" eyebrow, rule and sub-lines visually (they stay for
   screen readers) and enlarges what's left, so it's readable at about 7em. */
.ukmt-tb--compact{font-size:.95rem;gap:.5rem}
.ukmt-tb--compact .ukmt-tb__b{width:7.25em;padding:.7em;border-width:calc(var(--b-ring-w) * .7)}
.ukmt-tb--compact .ukmt-tb__b::before{inset:.28em}
.ukmt-tb--compact .ukmt-tb__item--rev .ukmt-tb__small,
.ukmt-tb--compact .ukmt-tb__rule{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ukmt-tb--compact .ukmt-tb__big{font-size:2.6em;font-size:36cqi}
.ukmt-tb--compact .ukmt-tb__big--xl{font-size:3em;font-size:42cqi}
.ukmt-tb--compact .ukmt-tb__mid{font-size:1em;font-size:14cqi}
.ukmt-tb--compact .ukmt-tb__foot{font-size:.9em;font-size:12.5cqi}
.ukmt-tb--compact .ukmt-tb__stars{width:84%;margin:.25em auto .2em}

/* ---------- Placement: truck page, top right corner of the main photo (0.4.6.9.1) ----------
   Inside .l-gal, after the status badge (which stays top left). Smaller circle (Monty, 24 Oct 2026: "maybe a bit
   too big"): about two thirds of the first version, 4.2rem or 17.5vw on phones (about 67px, 72px across as tilted
   at 390px) and 5.15rem or 7vw from 56em (about 82px, 88px across at 1280px), tucked closer into the corner.
   On the photo it shows "5.0", "Google", five stars and "from 25 / reviews" (two lines); "Rated" and the "on"
   of "on Google" stay for screen readers only. Text scales with the circle (cqi) but never below 9px.
   The status badge is kept clear of it: its max width leaves room for the circle, so a long status
   ("In the UK, being prepared") wraps instead of running underneath. Large text: see the @container rules below.
   Counter (bottom right), dots and arrows are unchanged. */
.l-gal{--tb-w:min(4.2rem,17.5vw);--tb-in:.6rem;container:ukmt-gal/inline-size}
.ukmt-tb--galtop{position:absolute;top:var(--tb-in);right:var(--tb-in);z-index:3;display:block;margin:0;pointer-events:none}
.ukmt-tb--galtop .ukmt-tb__item{display:block}
.ukmt-tb--galtop .ukmt-tb__b{width:var(--tb-w);padding:0;border-width:2px;line-height:1;pointer-events:auto;
  box-shadow:0 0 0 2px var(--b-halo),0 .3em .8em rgba(17,41,59,.22)}
.ukmt-tb--galtop .ukmt-tb__b::before{inset:3px;border-width:1px}
.ukmt-tb--galtop .ukmt-tb__on{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ukmt-tb--galtop .ukmt-tb__big{font-size:max(17px,28.5cqi);line-height:.9;margin:0}
.ukmt-tb--galtop .ukmt-tb__mid{font-size:max(9px,13.6cqi);font-weight:600;letter-spacing:.02em;margin:0;color:var(--b-sub)}
.ukmt-tb--galtop .ukmt-tb__stars{width:62%;margin:2.5cqi auto 2cqi}
.ukmt-tb--galtop .ukmt-tb__foot{font-size:max(9px,13.6cqi);line-height:1.02}
.ukmt-tb--galtop .ukmt-tb__rv{display:block}
.l-gal:has(.ukmt-tb--galtop) .ukmt-badge--photo{max-width:calc(100% - var(--tb-w) - 1.75rem)}
@media (min-width:56em){.l-gal{--tb-w:min(5.15rem,7vw);--tb-in:.7rem}}
/* Large text (200%) on the photo: a long status such as "In the UK, being prepared" cannot share the top of the photo
   with the circle, and the circle's text cannot grow while it sits on the photo. So when the photo is narrow for the
   text size (container em follows the visitor's text size), the circle drops just below the photo on the right,
   a little larger (34% of the gallery, never over 112px, so about 118px across as tilted), and the status keeps the
   full width. Rules inside @container reach descendants only, so the space is made under the track, not on .l-gal
   itself. Phones: under 15em of photo. Desktop: under 22em of photo. */
@container ukmt-gal (max-width:15em){
.l-gal:has(.ukmt-tb--galtop) .l-gal__track{margin-bottom:calc(min(112px,34cqi) + .5rem)}
.ukmt-tb--galtop{top:auto;bottom:0;right:0}
.ukmt-tb--galtop .ukmt-tb__b{width:min(112px,34cqi)}
.l-gal:has(.ukmt-tb--galtop) .l-gal__count{bottom:calc(min(112px,34cqi) + 1.25rem)}
.l-gal:has(.ukmt-tb--galtop) .l-gal__nav{top:calc(50% - (min(112px,34cqi) + .5rem) / 2)}
.l-gal:has(.ukmt-tb--galtop) .ukmt-badge--photo{max-width:calc(100% - 1.5rem)}
}
@media (min-width:56em){@container ukmt-gal (max-width:22em){
.l-gal:has(.ukmt-tb--galtop) .l-gal__track{margin-bottom:calc(min(112px,34cqi) + .5rem)}
.ukmt-tb--galtop{top:auto;bottom:0;right:0}
.ukmt-tb--galtop .ukmt-tb__b{width:min(112px,34cqi)}
.l-gal:has(.ukmt-tb--galtop) .l-gal__count{bottom:calc(min(112px,34cqi) + 1.25rem)}
.l-gal:has(.ukmt-tb--galtop) .l-gal__nav{top:calc(50% - (min(112px,34cqi) + .5rem) / 2)}
.l-gal:has(.ukmt-tb--galtop) .ukmt-badge--photo{max-width:calc(100% - 1.5rem)}
}}
