/* Ensure [hidden] is always respected even if theme CSS overrides it */
[hidden]{display:none!important}
.tf-wrap{
  --tf-bg:#ffffff;
  --tf-text:#111827;
  --tf-muted:#6b7280;
  --tf-border:#e5e7eb;
  --tf-star:#fb8c1f;
  --tf-accent:#fb8c1f;
  --tf-shadow:0 1px 2px rgba(0,0,0,.04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--tf-text);
}

/* ---------- Business header ---------- */
.tf-profile{
  border:1px solid var(--tf-border);border-radius:12px;padding:16px 18px;
  background:var(--tf-bg);box-shadow:var(--tf-shadow);margin-bottom:16px;
  position:relative;
}
/* Google "G" badge — top-right corner of header card */
.tf-gbp-badge{
  position:absolute;top:12px;right:14px;
  width:30px;height:30px;border-radius:50%;
  background:#fff;border:1.5px solid #e5e7eb;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 1px 3px rgba(0,0,0,.1);flex-shrink:0;
}
.tf-profile-inner{display:flex;gap:14px;align-items:flex-start}
/* Storefront icon box */
.tf-gbp-logo{
  flex-shrink:0;width:52px;height:52px;border-radius:10px;
  background:#e8f0fe;display:flex;align-items:center;justify-content:center;
}
.tf-profile-body{flex:1;min-width:0;padding-right:36px}
.tf-profile-name{font-size:18px;font-weight:700;margin-bottom:4px}
.tf-profile-rating{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:4px}
.tf-stars{color:var(--tf-star);letter-spacing:.5px}
.tf-rating-num{font-weight:600}
.tf-rating-total{color:var(--tf-muted);font-size:13px}
.tf-profile-address{color:var(--tf-muted);font-size:13px;margin-bottom:10px}
/* Action buttons inside header */
.tf-profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.tf-action-btn{
  display:inline-block;font-size:12px;font-weight:600;padding:5px 12px;
  border-radius:6px;text-decoration:none;transition:opacity .15s;white-space:nowrap;
}
.tf-action-btn:hover{opacity:.85;text-decoration:none}
.tf-btn-maps{background:#f3f4f6;color:#374151;border:1px solid #d1d5db}
.tf-btn-review{background:#4285F4;color:#fff;border:1px solid #3367d6}
/* ---------- GRID layout ---------- */
.tf-layout-grid .tf-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:16px;
}
.tf-card{
  border:1px solid var(--tf-border);
  border-radius:12px;
  padding:14px;
  background:var(--tf-bg);
  box-shadow:var(--tf-shadow);
  position:relative;
}
.tf-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.08)}
/* Google "G" badge — top-right of each review card */
.tf-card-google-badge{
  position:absolute;top:10px;right:12px;
  width:22px;height:22px;border-radius:50%;
  background:#fff;border:1px solid #e5e7eb;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
}
.tf-card-head{display:flex;align-items:center;gap:10px;margin-bottom:8px;padding-right:28px}
.tf-card .tf-author{display:flex;flex-direction:column}
.tf-card .tf-author strong{font-size:14px}
.tf-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover}
.tf-rating{font-size:14px;color:var(--tf-star);margin:6px 0}
.tf-text{font-size:14px;line-height:1.5}
.tf-time{font-size:12px;color:var(--tf-muted);margin-top:8px}

/* ---------- LIST layout ---------- */
.tf-layout-list .tf-list{
  display:flex;
  flex-direction:column;
  gap:14px;
  list-style:none;
  padding:0;
  margin:0;
}
.tf-row{
  border:1px solid var(--tf-border);
  border-radius:12px;
  background:var(--tf-bg);
  box-shadow:var(--tf-shadow);
  padding:14px;
  position:relative;
}
.tf-row-head{display:flex;align-items:center;gap:12px;margin-bottom:6px;padding-right:28px}
.tf-row .tf-author{display:flex;flex-direction:column}
.tf-row .tf-rating{margin-left:auto}

/* ---------- Avatar placeholder ---------- */
.tf-avatar-placeholder{
  width:36px;height:36px;border-radius:50%;
  background:#e5e7eb;color:#6b7280;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:15px;flex-shrink:0;
}

/* ---------- Read More toggle ---------- */
.tf-read-more-btn,.tf-read-less-btn{
  background:none;border:none;padding:0;cursor:pointer;
  color:#4f46e5;font-size:13px;font-weight:600;text-decoration:underline;
  margin-left:4px;
}
.tf-read-more-btn:hover,.tf-read-less-btn:hover{color:#3730a3}

/* ---------- Hide Review button (admin only) ---------- */
.tf-hide-btn{
  display:block;width:fit-content;margin-left:auto;margin-top:10px;
  padding:3px 10px;font-size:11px;font-weight:600;
  background:#f3f4f6;border:1px solid #d1d5db;border-radius:6px;
  cursor:pointer;color:#6b7280;line-height:1.6;
}
.tf-hide-btn:hover{background:#fee2e2;border-color:#fca5a5;color:#dc2626}
.tf-card.tf-card-hiding,.tf-row.tf-row-hiding{
  transition:opacity .3s ease;opacity:0;
}

/* ---------- MULTI-LOCATION layout ---------- */

/* Company header */
.tf-multi-header{
  display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;
  background:var(--tf-bg);border:1px solid var(--tf-border);
  border-radius:12px;padding:20px 22px;margin-bottom:20px;
  box-shadow:var(--tf-shadow);
}
.tf-multi-brand{flex:1;min-width:220px}
.tf-multi-name{font-size:22px;font-weight:700;color:var(--tf-text);margin-bottom:6px}
.tf-multi-hq-addr{font-size:14px;color:var(--tf-muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tf-pin{font-size:15px}
.tf-hq-badge{
  background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:700;
  padding:2px 8px;border-radius:20px;letter-spacing:.03em
}
.tf-multi-agg{text-align:right;flex-shrink:0}
.tf-multi-stars{display:flex;align-items:center;gap:4px;justify-content:flex-end;margin-bottom:4px}
.tf-star-full{color:var(--tf-star);font-size:20px}
.tf-star-empty{color:#d1d5db;font-size:20px}
.tf-agg-num{font-size:22px;font-weight:700;color:var(--tf-text)}
.tf-agg-sub{font-size:13px;color:var(--tf-muted)}

/* Location list — used in both multi and single-branch templates */
.tf-locations-list{margin-top:28px;margin-bottom:24px}
.tf-locations-title{
  font-size:15px;font-weight:700;color:var(--tf-text);
  margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid var(--tf-border)
}
.tf-locations-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px
}
.tf-loc-card{
  border:1px solid var(--tf-border);border-radius:10px;
  background:var(--tf-bg);padding:14px 16px;box-shadow:var(--tf-shadow);
}
.tf-loc-card.tf-loc-hq{border-color:#93c5fd;background:#eff6ff}
.tf-loc-top{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}
.tf-loc-pin{font-size:18px;flex-shrink:0;margin-top:2px}
.tf-loc-info{flex:1;min-width:0}
.tf-loc-addr{font-size:13px;color:var(--tf-text);line-height:1.4;margin-top:4px}
.tf-loc-rating{display:flex;align-items:center;gap:3px;margin-top:5px}
.tf-loc-num{font-weight:700;font-size:13px;margin-left:3px}
.tf-loc-total{color:var(--tf-muted);font-size:12px}
.tf-loc-actions{display:flex;gap:8px;flex-wrap:wrap}
.tf-loc-btn{
  display:inline-block;font-size:12px;font-weight:600;padding:5px 12px;
  border-radius:6px;text-decoration:none;transition:opacity .15s;
}
.tf-loc-btn:hover{opacity:.85;text-decoration:none}
.tf-btn-view{background:#f3f4f6;color:#374151;border:1px solid #d1d5db}
.tf-btn-write{background:#4f46e5;color:#fff;border:1px solid #4338ca}

/* Action buttons inside multi-location header */
.tf-multi-actions{margin-top:10px}

/* Reviews section title */
.tf-multi-reviews-title{
  font-size:15px;font-weight:700;color:var(--tf-text);
  margin-bottom:14px;padding-bottom:8px;border-bottom:2px solid var(--tf-border)
}
.tf-wrap.tf-layout-multi .tf-multi-reviews .tf-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:16px
}
.tf-wrap.tf-layout-grid .tf-grid,
.tf-wrap.tf-layout-multi .tf-multi-reviews .tf-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:16px
}

/* ---------- Notices ---------- */
.tf-notice{
  padding:12px;border-radius:8px;background:#f9fafb;border:1px solid var(--tf-border);color:#111827
}

/* ---------- CAROUSEL layout ---------- */
.tf-layout-carousel .tf-carousel-outer{
  position:relative;
  padding:0 30px; /* reserve space so buttons never overlap cards */
}
.tf-layout-carousel .tf-carousel-wrapper{
  overflow:hidden;width:100%;
}
.tf-layout-carousel .tf-carousel-track{
  display:flex;gap:16px;transition:transform .4s cubic-bezier(.25,.8,.25,1);
}
/* Desktop: 3-up */
.tf-carousel-slide{
  flex:0 0 calc((100% - (var(--tf-v, 3) - 1) * 16px) / var(--tf-v, 3));
  border:1px solid var(--tf-border);border-radius:12px;
  padding:16px;background:var(--tf-bg);box-shadow:var(--tf-shadow);
  box-sizing:border-box;position:relative;
}
/* Navigation buttons — circle with smooth hover transition */
.tf-carousel-btn{
  position:absolute;top:50%;transform:translateY(-50%);z-index:10;
  width:40px;height:40px;border-radius:30px;
  background:#fff;border:1.5px solid #e5e7eb;padding:0;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  color:#6b7280;
  box-shadow:0 1px 4px rgba(0,0,0,.10);
  transition:background .22s,border-color .22s,color .22s,box-shadow .22s;
}
.tf-carousel-prev{left:0}
.tf-carousel-next{right:0}
.tf-carousel-btn:hover{
  background:var(--tf-accent);border-color:var(--tf-accent);color:#fff;
  box-shadow:0 4px 12px rgba(251,140,31,.35);
}
/* Dots / counter */
.tf-carousel-dots{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:14px;min-height:16px}
.tf-dot{
  width:8px;height:8px;border-radius:50%;
  background:#d1d5db;cursor:pointer;transition:background .2s,transform .2s;
}
.tf-dot:hover{background:#fdba74}
.tf-dot-active{background:var(--tf-accent);transform:scale(1.4)}
.tf-carousel-counter{font-size:12px;color:var(--tf-muted);font-weight:600}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px){
  .tf-profile-main{align-items:flex-start}
  .tf-row-head{flex-wrap:wrap}
  .tf-row .tf-rating{margin-left:0}
}

/* ---------- CAROUSEL INLINE (carousel-inline-option-main) ----------
   Company panel on the far left, review cards slide left/right beside it,
   and each card scrolls vertically so the full review can be read. */
.tf-layout-carousel-inline-option-main{
  --tf-inline-accent:#fb8c1f;
  --tf-inline-name:#1a4fc4;
  --tf-inline-card:#f3f3f3;
  display:flex;align-items:center;gap:24px;
}
.tf-layout-carousel-inline-option-main .tf-inline-main{flex:1;min-width:0}
.tf-inline-profile{flex:0 0 230px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.tf-inline-photo{width:58px;height:58px;border-radius:50%;object-fit:cover;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.tf-inline-photo-placeholder{
  display:flex;align-items:center;justify-content:center;
  background:#e8f0fe;color:#4285F4;font-size:24px;font-weight:700;
}
.tf-inline-name{font-size:20px;font-weight:700;line-height:1.2}
.tf-inline-rating{display:flex;align-items:center;gap:6px;color:var(--tf-inline-accent)}
.tf-inline-rating .tf-rating-num{font-size:18px;font-weight:700}
.tf-inline-rating .tf-stars{font-size:20px}
.tf-inline-count,.tf-inline-powered{color:var(--tf-muted);font-size:15px}
.tf-google-word span:nth-child(1),.tf-google-word span:nth-child(4){color:#4285F4}
.tf-google-word span:nth-child(2),.tf-google-word span:nth-child(6){color:#EA4335}
.tf-google-word span:nth-child(3){color:#FBBC05}
.tf-google-word span:nth-child(5){color:#34A853}
.tf-google-word{font-weight:700;font-size:17px}
.tf-inline-review-btn{
  display:inline-flex;align-items:center;gap:6px;margin-top:6px;
  padding:9px 16px;border-radius:999px;background:#1a5fe8;color:#fff;
  font-size:15px;font-weight:600;text-decoration:none;
  box-shadow:0 2px 6px rgba(26,95,232,.35);
}
.tf-inline-review-btn svg{background:#fff;border-radius:50%;padding:1px}
.tf-inline-review-btn:hover{color:#fff;opacity:.9}

/* Review cards: flat grey, fixed height, text scrolls inside */
.tf-layout-carousel-inline-option-main .tf-carousel-outer{position:relative;padding:0 48px}
/* Arrows: soft grey circle with a white halo, straddling the card edge, centred on the cards
   (the outer box also holds the dots row, ~30px, so offset for it). */
.tf-layout-carousel-inline-option-main .tf-carousel-btn{
  top:calc((100% - 30px) / 2);
  width:46px;height:46px;border-radius:50%;
  background:#f5f5f5;border:1px solid #d9d9d9;color:#555;
  box-shadow:0 0 0 7px #fff,0 2px 8px rgba(0,0,0,.15);
}
.tf-layout-carousel-inline-option-main .tf-carousel-btn svg{width:16px;height:16px;stroke-width:1.8}
.tf-layout-carousel-inline-option-main .tf-carousel-prev{left:13px}
.tf-layout-carousel-inline-option-main .tf-carousel-next{right:13px}
.tf-layout-carousel-inline-option-main .tf-carousel-btn:hover{
  background:#fff;border-color:var(--tf-accent);color:var(--tf-accent);
  box-shadow:0 0 0 7px #fff,0 3px 10px rgba(0,0,0,.2);
}
.tf-layout-carousel-inline-option-main .tf-carousel-wrapper{overflow:hidden}
.tf-layout-carousel-inline-option-main .tf-carousel-track{
  display:flex;gap:16px;will-change:transform;
  transition:transform .6s cubic-bezier(.4,0,.2,1);
}
@media (prefers-reduced-motion:reduce){
  .tf-layout-carousel-inline-option-main .tf-carousel-track{transition:none}
}
.tf-inline-card{
  display:flex;flex-direction:column;height:280px;
  background:var(--tf-inline-card);border:0;border-radius:0;box-shadow:none;
  padding:20px;
}
.tf-inline-card:hover{box-shadow:none}
.tf-inline-card .tf-author strong{color:var(--tf-inline-name);font-size:17px}
.tf-inline-card .tf-rating{color:var(--tf-inline-accent);font-size:20px;margin:4px 0 8px;flex-shrink:0}
.tf-inline-card .tf-card-head{flex-shrink:0}
.tf-inline-card .tf-avatar,.tf-inline-card .tf-avatar-placeholder{width:56px;height:56px}
.tf-inline-text{
  flex:1;min-height:0;overflow-y:auto;padding-right:12px;
  font-size:16px;line-height:1.6;
}
@supports not selector(::-webkit-scrollbar){
  .tf-inline-text{scrollbar-width:thin;scrollbar-color:#8a8a8a #dcdcdc}
}
.tf-inline-text::-webkit-scrollbar{width:8px}
.tf-inline-text::-webkit-scrollbar-track{background:#dcdcdc;border-radius:4px}
.tf-inline-text::-webkit-scrollbar-thumb{background:#8a8a8a;border-radius:4px}
.tf-inline-text::-webkit-scrollbar-thumb:hover{background:#6b6b6b}
.tf-layout-carousel-inline-option-main .tf-dot{background:#d1d5db}
.tf-layout-carousel-inline-option-main .tf-dot-active{background:var(--tf-inline-accent);transform:scale(1.4)}
.tf-layout-carousel-inline-option-main .tf-dot:hover{background:#fdba74}

/* Keep the company panel beside the reviews down to phone width; only stack on small phones. */
@media (max-width:1024px){
  .tf-layout-carousel-inline-option-main{gap:16px}
  .tf-inline-profile{flex:0 0 190px;min-width:0}
  .tf-inline-name{font-size:18px}
  .tf-inline-count,.tf-inline-powered{font-size:14px}
  .tf-layout-carousel-inline-option-main .tf-carousel-outer{padding:0 40px}
  .tf-layout-carousel-inline-option-main .tf-carousel-btn{width:38px;height:38px;box-shadow:0 0 0 5px #fff,0 2px 6px rgba(0,0,0,.15)}
  .tf-layout-carousel-inline-option-main .tf-carousel-prev{left:8px}
  .tf-layout-carousel-inline-option-main .tf-carousel-next{right:8px}
}
@media (max-width:640px){
  .tf-layout-carousel-inline-option-main{flex-direction:column;align-items:stretch}
  .tf-inline-profile{flex:none;width:100%}
  .tf-inline-card{height:auto;min-height:240px;padding:16px}
  .tf-inline-text{font-size:15px;max-height:180px}
  .tf-layout-carousel .tf-carousel-outer,
  .tf-layout-carousel-inline-option-main .tf-carousel-outer{padding:0 34px}
  .tf-layout-carousel .tf-carousel-btn,
  .tf-layout-carousel-inline-option-main .tf-carousel-btn{width:34px;height:34px;box-shadow:0 0 0 4px #fff,0 1px 4px rgba(0,0,0,.15)}
  .tf-layout-carousel .tf-carousel-prev,
  .tf-layout-carousel-inline-option-main .tf-carousel-prev{left:4px}
  .tf-layout-carousel .tf-carousel-next,
  .tf-layout-carousel-inline-option-main .tf-carousel-next{right:4px}
  .tf-layout-carousel .tf-carousel-slide{height:auto;min-height:240px}
  .tf-layout-grid .tf-grid,
  .tf-wrap.tf-layout-grid .tf-grid,
  .tf-wrap.tf-layout-multi .tf-multi-reviews .tf-grid,
  .tf-locations-grid{grid-template-columns:1fr}
  .tf-multi-agg{text-align:left}
  .tf-multi-stars{justify-content:flex-start}
}

/* ---------- CAROUSEL (full width): halo arrows, scrollable cards, business logo ---------- */
.tf-gbp-logo-img{background:none;overflow:hidden}
.tf-gbp-logo-img img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.tf-layout-carousel .tf-carousel-outer{padding:0 48px}
.tf-layout-carousel .tf-carousel-btn{
  top:calc((100% - 30px) / 2);
  width:46px;height:46px;border-radius:50%;
  background:#f5f5f5;border:1px solid #d9d9d9;color:#555;
  box-shadow:0 0 0 7px #fff,0 2px 8px rgba(0,0,0,.15);
}
.tf-layout-carousel .tf-carousel-btn svg{width:16px;height:16px;stroke-width:1.8}
.tf-layout-carousel .tf-carousel-prev{left:13px}
.tf-layout-carousel .tf-carousel-next{right:13px}
.tf-layout-carousel .tf-carousel-btn:hover{
  background:#fff;border-color:var(--tf-accent);color:var(--tf-accent);
  box-shadow:0 0 0 7px #fff,0 3px 10px rgba(0,0,0,.2);
}
.tf-layout-carousel .tf-carousel-track{
  will-change:transform;transition:transform .6s cubic-bezier(.4,0,.2,1);
}
@media (prefers-reduced-motion:reduce){
  .tf-layout-carousel .tf-carousel-track{transition:none}
}
.tf-layout-carousel .tf-carousel-slide{display:flex;flex-direction:column;height:300px}
.tf-layout-carousel .tf-carousel-slide .tf-card-head,
.tf-layout-carousel .tf-carousel-slide .tf-rating{flex-shrink:0}
.tf-layout-carousel .tf-inline-text{font-size:14px;line-height:1.5}

/* ---------- Drag to slide ---------- */
.tf-carousel-wrapper{cursor:grab;touch-action:pan-y}
.tf-carousel-wrapper img{-webkit-user-drag:none}
.tf-dragging .tf-carousel-wrapper{cursor:grabbing}
.tf-dragging,.tf-dragging *{user-select:none;-webkit-user-select:none}

/* ---------- GRID / LIST – SCROLL EXCERPT ---------- */
.tf-scroll-excerpt .tf-inline-text{font-size:14px;line-height:1.5;max-height:150px}
.tf-layout-list.tf-scroll-excerpt .tf-inline-text{max-height:120px}

/* ---------- Alignment hardening (v2.1.1) ----------
   Themes restyle strong/span/a/img (line-height, margins, bold, min-heights),
   which pulled the avatar, name, date and stars out of line. Pin them. */
.tf-wrap .tf-card-head,
.tf-wrap .tf-row-head{
  display:flex;align-items:center;gap:12px;
  margin:0 0 10px;padding:0 30px 0 0;height:auto;min-height:0;
}
.tf-wrap .tf-avatar,
.tf-wrap .tf-avatar-placeholder{
  flex:0 0 40px;width:40px;height:40px;margin:0;padding:0;
  border-radius:50%;object-fit:cover;box-sizing:border-box;
}
.tf-wrap .tf-author{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  flex:1 1 auto;min-width:0;gap:2px;margin:0;padding:0;
}
.tf-wrap .tf-author strong{
  display:block;margin:0;padding:0;font-size:15px;font-weight:600;
  line-height:1.3;overflow-wrap:anywhere;
}
.tf-wrap .tf-time{display:block;margin:0;padding:0;font-size:12px;line-height:1.3}
.tf-wrap .tf-rating{display:block;margin:0 0 8px;padding:0;font-size:15px;line-height:1;letter-spacing:1px;flex-shrink:0}
.tf-wrap .tf-row-head .tf-rating{margin:0 0 0 auto}
.tf-wrap .tf-text{margin:0;padding:0;line-height:1.55}
.tf-wrap .tf-text p{margin:0 0 .6em}
.tf-wrap .tf-profile-name{margin:0 0 4px;line-height:1.25}
.tf-wrap .tf-profile-actions{align-items:center}
.tf-wrap .tf-action-btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:auto;min-height:0;margin:0;padding:7px 12px;line-height:1.2;box-sizing:border-box;
}
/* Inline layout keeps its larger, branded card header */
.tf-wrap .tf-inline-card .tf-avatar,
.tf-wrap .tf-inline-card .tf-avatar-placeholder{flex-basis:56px;width:56px;height:56px}
.tf-wrap .tf-inline-card .tf-author strong{color:var(--tf-inline-name);font-size:17px}
.tf-wrap .tf-inline-card .tf-rating{color:var(--tf-inline-accent);font-size:20px}
.tf-wrap .tf-inline-card .tf-time{font-size:13px}

/* ---------- Business logo: show the whole logo, never cropped ---------- */
.tf-gbp-logo.tf-gbp-logo-img{width:64px;height:64px;background:#fff;border-radius:10px;overflow:hidden}
.tf-gbp-logo-img img{width:100%;height:100%;object-fit:contain;display:block;margin:0;padding:4px;box-sizing:border-box;border-radius:0}
.tf-inline-photo{object-fit:contain;background:#fff;padding:6px;box-sizing:border-box}

/* ---------- Small-phone overrides for the full-width carousel (must follow its base rules) ---------- */
@media (max-width:640px){
  .tf-layout-carousel .tf-carousel-outer{padding:0 34px}
  .tf-layout-carousel .tf-carousel-btn{width:34px;height:34px;box-shadow:0 0 0 4px #fff,0 1px 4px rgba(0,0,0,.15)}
  .tf-layout-carousel .tf-carousel-prev{left:4px}
  .tf-layout-carousel .tf-carousel-next{right:4px}
  .tf-layout-carousel .tf-carousel-slide{height:auto;min-height:240px}
  .tf-wrap .tf-row-head{flex-wrap:wrap}
}

/* ---------- Linked names (company + reviewer): same look, no hover change ---------- */
.tf-wrap a.tf-name-link,
.tf-wrap a.tf-name-link:visited,
.tf-wrap a.tf-name-link:hover,
.tf-wrap a.tf-name-link:focus,
.tf-wrap a.tf-name-link:active{color:inherit;text-decoration:none;font:inherit}

/* ---------- Phone polish: logo beside the details, full-width review card, arrows on the card edges ---------- */
@media (max-width:640px){
  .tf-layout-carousel-inline-option-main{gap:14px}
  .tf-layout-carousel-inline-option-main .tf-inline-profile{
    display:grid;grid-template-columns:58px 1fr;column-gap:14px;row-gap:4px;
    align-items:center;justify-items:start;width:100%;
  }
  .tf-layout-carousel-inline-option-main .tf-inline-profile > *{grid-column:2;margin:0}
  .tf-layout-carousel-inline-option-main .tf-inline-profile > .tf-inline-photo{grid-column:1;grid-row:1 / span 5;align-self:start}
  .tf-layout-carousel-inline-option-main .tf-inline-review-btn{margin-top:4px;padding:8px 14px;font-size:14px}
  .tf-layout-carousel-inline-option-main .tf-carousel-outer,
  .tf-layout-carousel .tf-carousel-outer{padding:0 18px}
  .tf-layout-carousel-inline-option-main .tf-carousel-prev,
  .tf-layout-carousel .tf-carousel-prev{left:0}
  .tf-layout-carousel-inline-option-main .tf-carousel-next,
  .tf-layout-carousel .tf-carousel-next{right:0}
  .tf-layout-carousel-inline-option-main .tf-carousel-btn,
  .tf-layout-carousel .tf-carousel-btn{width:32px;height:32px}
  .tf-inline-card{padding:16px 22px;min-height:230px}
  .tf-inline-card .tf-avatar,.tf-inline-card .tf-avatar-placeholder,
  .tf-wrap .tf-inline-card .tf-avatar,.tf-wrap .tf-inline-card .tf-avatar-placeholder{flex-basis:48px;width:48px;height:48px}
  .tf-inline-text{font-size:15px;max-height:150px}
}

/* ---------- Theme hardening (v2.1.1) ----------
   Page-builder/block themes restyle div, strong, span, a, svg and img (huge line-heights, margins,
   block-level buttons). Pin every text element in the cards and the company panel so the layout
   looks the same on any theme. */
.tf-wrap .tf-author strong,
.tf-wrap .tf-author .tf-time{
  display:block!important;margin:0!important;padding:0!important;
  line-height:1.3!important;min-height:0!important;height:auto!important;
}
.tf-wrap .tf-author{gap:2px!important;justify-content:center!important}
.tf-wrap .tf-card-head{align-items:center!important}
.tf-wrap .tf-rating,.tf-wrap .tf-stars{line-height:1!important}
.tf-wrap .tf-inline-text{margin:0!important;padding-top:0!important}

.tf-wrap.tf-layout-carousel-inline-option-main .tf-inline-profile{gap:6px!important}
.tf-wrap.tf-layout-carousel-inline-option-main .tf-inline-profile > *{margin-top:0!important;margin-bottom:0!important}
.tf-wrap.tf-layout-carousel-inline-option-main .tf-inline-name,
.tf-wrap.tf-layout-carousel-inline-option-main .tf-inline-count,
.tf-wrap.tf-layout-carousel-inline-option-main .tf-inline-powered{line-height:1.3!important;padding:0!important}
.tf-wrap.tf-layout-carousel-inline-option-main .tf-inline-rating{line-height:1!important;gap:6px!important}
.tf-wrap.tf-layout-carousel-inline-option-main .tf-inline-rating .tf-stars{letter-spacing:0!important}
.tf-wrap.tf-layout-carousel-inline-option-main a.tf-inline-review-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  height:auto!important;min-height:0!important;margin:6px 0 0!important;padding:9px 16px!important;
  line-height:1.2!important;white-space:nowrap;text-decoration:none!important;
  color:#fff!important;border:0!important;box-sizing:border-box;
}
.tf-wrap.tf-layout-carousel-inline-option-main a.tf-inline-review-btn svg{
  display:block!important;flex:0 0 18px;width:18px!important;height:18px!important;
  margin:0!important;position:static!important;vertical-align:middle;
}
.tf-wrap .tf-card-google-badge svg{display:block!important;margin:0!important}
.tf-wrap .tf-card-head img.tf-avatar{display:block;max-width:none}

/* ---------- Card header: avatar | name + time, vertically centred, no stretched gap ---------- */
.tf-wrap .tf-card-head,
.tf-wrap .tf-row-head{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  gap:12px!important;height:auto!important;min-height:0!important;
}
.tf-wrap .tf-card-head .tf-author,
.tf-wrap .tf-row-head .tf-author{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  align-self:center!important;align-items:flex-start!important;
  flex:1 1 auto!important;height:auto!important;min-height:0!important;gap:2px!important;margin:0!important;
}
.tf-wrap .tf-card-head .tf-avatar,
.tf-wrap .tf-card-head .tf-avatar-placeholder{
  flex:0 0 48px!important;width:48px!important;height:48px!important;min-width:48px!important;
  margin:0!important;align-self:center!important;
}
.tf-wrap .tf-inline-card .tf-card-head .tf-avatar,
.tf-wrap .tf-inline-card .tf-card-head .tf-avatar-placeholder{
  flex-basis:52px!important;width:52px!important;height:52px!important;min-width:52px!important;
}
.tf-wrap .tf-inline-card .tf-card-head{margin-bottom:6px!important}
.tf-wrap .tf-inline-card .tf-rating{margin:0 0 8px!important}

/* ---------- Company panel: roomier, button on one line ---------- */
.tf-layout-carousel-inline-option-main .tf-inline-profile{flex-basis:250px}
@media (max-width:1024px){.tf-layout-carousel-inline-option-main .tf-inline-profile{flex-basis:210px}}
@media (max-width:640px){.tf-layout-carousel-inline-option-main .tf-inline-profile{flex-basis:auto}}
.tf-wrap.tf-layout-carousel-inline-option-main a.tf-inline-review-btn{
  flex-wrap:nowrap!important;width:auto!important;max-width:100%;
}
.tf-wrap.tf-layout-carousel-inline-option-main .tf-inline-btn-text{
  display:inline-block!important;margin:0!important;padding:0!important;line-height:1.2!important;white-space:nowrap!important;
}

/* wpautop can still leave empty paragraphs from other output filters — never let them take space */
.tf-wrap p:empty,.tf-wrap br:only-child{display:none!important;margin:0!important;padding:0!important}
.tf-wrap .tf-author > p,.tf-wrap .tf-card-head > p{display:none!important}
