/**
 * authorized.by — light design system for the fbytes_authorized_api shortcodes.
 * All rules are scoped under .authby so nothing leaks into the host theme.
 */

.authby {
  /* Palette */
  --aby-primary: #0053a5;
  --aby-navy: #0a204a;
  --aby-blue: #1698f6;
  --aby-green: #18ce7a;
  --aby-text: #767675;
  --aby-orange: #fca14f;

  /* Surfaces */
  --aby-bg: #ffffff;
  --aby-surface: #f6f8fb;
  --aby-border: #e4e8ee;
  --aby-border-strong: #d2d9e3;
  --aby-skeleton: #d3dae5; /* loading placeholder fill — darker than the surface so it's clearly visible */
  --aby-radius: 12px;
  --aby-radius-sm: 6px;

  --aby-font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  font-family: var(--aby-font);
  color: var(--aby-text);
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
}
.authby *, .authby *::before, .authby *::after { box-sizing: border-box; }

/* ---- Headings / text ---- */
.authby-heading {
  font-weight: bold;
}
.authby-eyebrow {
  font-size: 12px !important; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--aby-primary);
  margin-bottom: 4px;
}
/* Single small headline above an explorer result's filter bar. */
.authby-result__title { margin: 0 0 10px; }
.authby-muted { color: var(--aby-text); }

/* ---- CTA button ---- */
.authby-btn {
  font-family: var(--aby-font);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 12px;
  padding: 13px 31px;
  border: 2px solid var(--aby-orange);
  color: var(--aby-navy);
  background-color: var(--aby-orange);
  border-radius: 2px;
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.authby-btn:hover { filter: brightness(0.95); color: var(--aby-navy); }
.authby-btn--ghost {
  background-color: transparent;
  border-color: var(--aby-border-strong);
  color: var(--aby-navy);
}

/* ---- Brand card ---- */
.authby-brand-card {
  background: var(--aby-bg);
  border: 1px solid var(--aby-border);
  border-radius: var(--aby-radius);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: 0 1px 3px rgba(10,32,74,0.04);
}
.authby-brand-card__logo {
  width: 108px; height: 108px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.authby-brand-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.authby-brand-card__info { flex: 1; min-width: 0; }
.authby-brand-card__name {
  font-family: var(--aby-font); font-weight: 700; font-size: 22px;
  color: var(--aby-navy); letter-spacing: -0.02em;
}
.authby-brand-card__url {
  font-size: 13px; color: var(--aby-blue); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
}
.authby-brand-card__url:hover { text-decoration: underline; }
.authby-brand-card__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.authby-cat-pill {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: rgba(22,152,246,0.08); border: 1px solid rgba(22,152,246,0.22);
  color: var(--aby-primary);
}
.authby-brand-card__meta { text-align: right; flex-shrink: 0; }
.authby-brand-card__count {
  font-family: var(--aby-font); font-weight: 800; font-size: 34px;
  color: var(--aby-primary); line-height: 1;
}
.authby-brand-card__count-label { font-size: 11px; color: var(--aby-text); margin-top: 2px; }

/* ---- Retailers widget ---- */
.authby-retailers__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
.authby-retailers__logo {
  width: 66px; height: 66px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.authby-retailers__logo img { width: 100%; height: 100%; object-fit: contain; }

/* Fixed 4 → 2 → 1 columns (not width-based). Shared by every grid: retailer
   list, brand list, brand single page, and the featured brands grid. */
.authby-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .authby-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .authby-grid { grid-template-columns: 1fr; } }

.authby-retailer-card {
  position: relative;
  background: var(--aby-bg);
  border: 1px solid var(--aby-border);
  border-radius: var(--aby-radius);
  padding: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.authby-retailer-card:hover {
  border-color: var(--aby-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,32,74,0.08);
}
.authby-retailer-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 52px; }
.authby-retailer-card__logo {
  width: 100px; height: 100px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.authby-retailer-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.authby-retailer-card__logo--fallback {
  font-family: var(--aby-font); font-weight: 700; font-size: 15px;
  color: var(--aby-primary); text-transform: uppercase;
}
/* URL is the prominent line, name the secondary one. */
.authby-retailer-card__url { font-weight: 600; font-size: 20px; color: var(--aby-navy); line-height: 1.3; overflow-wrap: anywhere; }
.authby-retailer-card__name { font-size: 11px; color: var(--aby-text); margin-top: 2px; }
.authby-retailer-card__bc {
  position: absolute; top: 14px; right: 16px; text-align: right;
  font-family: var(--aby-font); font-weight: 700; font-size: 18px; color: var(--aby-navy);
  line-height: 1;
}
.authby-retailer-card__bc small { display: block; font-size: 9px; font-weight: 400; color: var(--aby-text); }

/* "Add retailers" CTA card that closes off the grid */
.authby-retailer-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; text-decoration: none;
  background: var(--aby-surface);
  border: 2px dashed var(--aby-border-strong);
  border-radius: var(--aby-radius);
  padding: 20px; min-height: 150px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.authby-retailer-cta:hover { border-color: var(--aby-primary); transform: translateY(-2px); }
/* "No results" message shown above the CTA when an in-grid search matches nothing. */
.authby-noresults-msg { grid-column: 1 / -1; text-align: center; color: var(--aby-text); font-size: 14px; padding: 20px 8px 6px; }
.authby-retailer-cta__icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,83,165,0.08); color: var(--aby-primary);
  font-family: var(--aby-font); font-weight: 700; font-size: 26px; line-height: 1;
}
.authby-retailer-cta__text {
  font-family: var(--aby-font); font-weight: 600; font-size: 14px;
  color: var(--aby-navy); max-width: 220px;
}
.authby-retailer-cta__btn { pointer-events: none; } /* the whole card is the link */

/* ---- Badges ---- */
.authby-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.authby-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  padding: 3px 9px; border-radius: 20px; text-transform: uppercase;
}
.authby-badge--premium { background: rgba(22,152,246,0.12); border: 1px solid rgba(22,152,246,0.35); color: var(--aby-blue); }
.authby-badge--start   { background: rgba(10,32,74,0.08); border: 1px solid rgba(10,32,74,0.22); color: var(--aby-navy); }
.authby-badge--free    { background: rgba(118,118,117,0.10); border: 1px solid rgba(118,118,117,0.25); color: var(--aby-text); }
.authby-badge--tuv     { background: rgba(0,83,165,0.10); border: 1px solid rgba(0,83,165,0.28); color: var(--aby-primary); }
.authby-badge--official { background: rgba(24,206,122,0.16); border: 1px solid var(--aby-green); color: #0c7a46; }
.authby-badge--d2c     { background: rgba(0,83,165,0.08); border: 1px solid rgba(0,83,165,0.25); color: var(--aby-primary); }

/* ---- Hover tooltip (pills + icons) — light bubble, JS-positioned to the
   left/right of the trigger and clamped inside the viewport (see authby-modal.js).
   `.authby-tip` just makes the icon wrapper hug its image. ---- */
.authby-tip { display: inline-flex; }
.authby-tooltip {
  position: fixed; z-index: 2147483000;
  max-width: min(240px, calc(100vw - 24px));
  padding: 9px 12px;
  background: #ffffff;
  color: #0a204a;
  border: 1px solid #d2d9e3;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(10,32,74,0.16);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 12px; font-weight: 400; line-height: 1.45; text-align: left;
  pointer-events: none;
  opacity: 0; transform: translateY(2px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.authby-tooltip.is-visible { opacity: 1; transform: none; }

/* ---- Footer / powered-by ---- */
.authby-powered {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--aby-border);
  font-size: 11px; color: var(--aby-text);
}
.authby-powered a { color: var(--aby-primary); text-decoration: none; font-weight: 600; }
.authby-powered a:hover { text-decoration: underline; }

/* ---- States ---- */
.authby-notice {
  padding: 14px 18px; border-radius: var(--aby-radius-sm);
  background: var(--aby-surface); border: 1px solid var(--aby-border);
  color: var(--aby-text); font-size: 14px;
}
.authby-empty { color: var(--aby-text); font-size: 14px; padding: 8px 0; }

/* ---- Loading spinner ---- */
.authby-loading {
  display: flex; align-items: center; gap: 10px;
  color: var(--aby-text); font-size: 14px; padding: 16px 0;
}
.authby-spinner {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--aby-border);
  border-top-color: var(--aby-primary);
  border-radius: 50%;
  animation: authby-spin 0.7s linear infinite;
}
@keyframes authby-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .authby-spinner { animation-duration: 2s; }
}

@media (max-width: 560px) {
  .authby-brand-card { flex-wrap: wrap; }
  .authby-brand-card__meta { text-align: left; }

  /* Narrow (explorer result) card: stack logo / info / count vertically, centered. */
  .authby-brand-card--narrow {
    flex-direction: column; align-items: center; text-align: center;
    gap: 12px; padding: 22px 20px;
  }
  .authby-brand-card--narrow .authby-brand-card__info { width: 100%; }
  .authby-brand-card--narrow .authby-brand-card__url,
  .authby-brand-card--narrow .authby-brand-card__cats { justify-content: center; }
  .authby-brand-card--narrow .authby-brand-card__meta { text-align: center; }
}

/* ---- Explorer: hero + search ---- */
.authby-hero { text-align: center; max-width: 720px; margin: 0 auto 28px; padding: 8px 0 4px; }
.authby-hero__title { font-size: 30px; margin: 0 0 8px; }
.authby-hero__title em { color: var(--aby-primary); font-style: normal; }
.authby-hero__sub { margin: 0 0 22px; }

.authby-search { position: relative; max-width: 580px; margin: 0 auto; text-align: left; }
.authby-search__field {
  display: flex; align-items: stretch; gap: 8px;
  background: var(--aby-bg); border: 1px solid var(--aby-border-strong);
  border-radius: var(--aby-radius); padding: 6px; box-shadow: 0 2px 10px rgba(10,32,74,0.05);
}
.authby-search__field:focus-within { border-color: var(--aby-blue); }
.authby-search__input {
  flex: 1; border: none; outline: none; background: transparent;
  color: var(--aby-navy);
  padding: 8px 12px; box-shadow: none; margin-top: 0 !important;
}
.authby-search__input::placeholder {
  color: var(--aby-text);
}
.authby-search__input:focus {
  border-color: transparent !important;
  border: none !important;
  outline: none !important;
}
.authby-search__btn { white-space: nowrap; align-self: stretch; padding: 0 30px; border-radius: 6px;}
.authby-search__spinner { display: inline-flex; align-items: center; padding: 0 6px; }
.authby-search__spinner[hidden] { display: none; }

.authby-autocomplete {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--aby-bg); border: 1px solid var(--aby-border);
  border-radius: var(--aby-radius); box-shadow: 0 12px 32px rgba(10,32,74,0.12);
  /* !important so a section-level "overflow: visible" can't stop the dropdown scrolling */
  overflow-x: hidden !important; overflow-y: auto !important; max-height: 360px !important;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.authby-autocomplete[hidden] { display: none; }
.authby-ac-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  cursor: pointer; border-bottom: 1px solid var(--aby-border);
}
.authby-ac-item:last-child { border-bottom: none; }
.authby-ac-item:hover, .authby-ac-item.is-active { background: var(--aby-surface); }
.authby-ac-logo {
  width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0;
  background: var(--aby-surface); border: 1px solid var(--aby-border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: 11px; font-weight: 700; color: var(--aby-primary); text-transform: uppercase;
}
.authby-ac-logo img { width: 100%; height: 100%; object-fit: contain; }
.authby-ac-info { flex: 1; min-width: 0; }
.authby-ac-name { font-size: 14px; font-weight: 600; color: var(--aby-navy); margin-right: 5px;}
.authby-ac-name mark { background: rgba(22,152,246,0.15); color: var(--aby-primary); border-radius: 2px; }
.authby-ac-meta { font-size: 11px; color: var(--aby-text); }
.authby-ac-count { font-size: 11px; color: var(--aby-text); flex-shrink: 0; }
.authby-ac-empty { padding: 12px 14px; font-size: 13px; color: var(--aby-text); }
/* Inline "list your brand" link within the "no brands found" message */
.authby-ac-cta { color: var(--aby-blue) !important; font-weight: 600; text-decoration: underline; }
.authby-ac-cta:hover { color: var(--aby-primary) !important; text-decoration: none; }

/* Results placeholder when a searched brand isn't in the network */
.authby-noresult { text-align: center; padding: 40px 20px; }
.authby-noresult__text {
  font-family: var(--aby-font); font-weight: 700; font-size: 18px;
  color: var(--aby-navy); margin: 0 0 6px;
}
.authby-noresult__sub { font-size: 14px; color: var(--aby-text); margin: 0 auto 18px; max-width: 420px; }

/* ---- Explorer: filter bar + results ---- */
.authby-explorer__results { margin-top: 8px; }
.authby-result { margin-top: 20px; }
.authby-filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.authby-filterbar__label { font-size: 12px; color: var(--aby-text); margin-right: 2px; }
.authby-filterbar__spacer { flex: 1; }
.authby-result-search {
  font-family: var(--aby-font); font-size: 13px; line-height: 1.2;
  padding: 7px 13px; width: 220px; max-width: 46vw;
  margin: 0 !important; vertical-align: middle; /* neutralize theme input margins so it centers with the count */
  color: var(--aby-navy); background: var(--aby-bg);
  border: 1px solid var(--aby-border); border-radius: var(--aby-radius);
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none; appearance: none;
}
.authby-result-search::placeholder { color: var(--aby-text); }
.authby-result-search:focus { border-color: var(--aby-blue); box-shadow: 0 0 0 3px rgba(22,152,246,0.12); }
.authby-result-count { font-size: 12px; color: var(--aby-text); line-height: 1; white-space: nowrap; }
/* Mobile: filters on the first row, search + count dropped onto their own row below. Placed
   AFTER the base rules above so these win (same specificity → later source order). The spacer
   becomes a full-width zero-height flex line-break; flex-shrink:0 stops it shrinking to fit. */
@media (max-width: 600px) {
  .authby-filterbar__spacer { flex: 0 0 100%; height: 0; margin: 0; }
  .authby-result-search { flex: 1 1 auto; width: auto; max-width: none; }
}
.authby-filter {
  font-family: var(--aby-font); font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px; cursor: pointer;
  background: var(--aby-surface); border: 1px solid var(--aby-border); color: var(--aby-text);
  transition: all 0.15s ease;
}
.authby-filter:hover { border-color: var(--aby-border-strong); }
.authby-filter.is-active { background: rgba(0,83,165,0.08); border-color: var(--aby-primary); color: var(--aby-primary); }
/* Match the uppercase "PREMIUM PARTNER" badge (TÜV-ShopIdent® keeps its trademark casing). */
.authby-filter[data-filter="sponsored"] { text-transform: uppercase; letter-spacing: 0.04em; }
.authby-retailer-card.is-hidden { display: none; }
.authby-retailer-card { cursor: pointer; }
.authby-retailer-card:focus-visible { outline: 2px solid var(--aby-blue); outline-offset: 2px; }

/* ---- Bidirectional search: dropdown groups + shop→brands result ---- */
.authby-ac-group {
  padding: 8px 14px 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--aby-text); background: var(--aby-surface);
}
.authby-ac-item--shop .authby-ac-logo { border-radius: var(--aby-radius-sm); }

.authby-shop-card__tuv { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--aby-primary); }
.authby-shop-card__tuv img { width: 22px; height: 22px; }
.authby-shop-card--clickable { cursor: pointer; transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.authby-shop-card--clickable:hover { border-color: var(--aby-border-strong); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,32,74,0.08); }
.authby-shop-card--clickable:focus-visible { outline: 2px solid var(--aby-blue); outline-offset: 2px; }

/* Brand cards in the shop result — visually mirror the retailer cards on brand pages. */
.authby-brandres-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--aby-bg); border: 1px solid var(--aby-border);
  border-radius: var(--aby-radius); padding: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.authby-brandres-card:hover {
  border-color: var(--aby-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,32,74,0.08);
}
.authby-brandres-card.is-hidden, .authby-brandres-card.is-collapsed { display: none; }
.authby-brandres-card.is-official { border-color: var(--aby-green); }
.authby-brandres-card__main { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.authby-brandres-card__logo {
  width: 100px; height: 100px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.authby-brandres-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.authby-brandres-card__text { min-width: 0; }
.authby-brandres-card__name { font-weight: 600; font-size: 20px; color: var(--aby-navy); line-height: 1.3; overflow-wrap: anywhere; }
.authby-brandres-card__host { display: block; font-size: 12px; color: var(--aby-blue); margin-top: 2px; overflow-wrap: anywhere; }
.authby-brandres-card__since { display: block; font-size: 11px; color: var(--aby-text); margin-top: 4px; }
/* Sit the certificate link under the text column (below the partner date), aligned
   past the logo — not at the card's bottom-left under the logo. 112px = logo 100 + gap 12. */
.authby-brandres-card__cert { align-self: flex-start; margin-left: 112px; }
.authby-retailer-card__cert { margin-top: 6px; }

/* Certificate link as a text link with an icon (not a button). */
.authby-certlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--aby-blue);
  text-decoration: none; line-height: 1;
}
.authby-certlink:hover { color: var(--aby-primary); text-decoration: underline; }
.authby-certlink__icon { flex-shrink: 0; }

/* ---- Retailer modal ---- */
body.authby-modal-open { overflow: hidden; }
.authby-modal-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(10,32,74,0.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 16px; overflow-y: auto;
}
.authby-modal-overlay[hidden] { display: none; }
.authby-modal {
  position: relative;
  width: 100%; max-width: 540px;
  background: var(--aby-bg); border-radius: var(--aby-radius);
  box-shadow: 0 24px 60px rgba(10,32,74,0.30);
  padding: 26px 28px; margin: 0 auto;
}
.authby-modal__close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--aby-surface); color: var(--aby-navy);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.authby-modal__close:hover { background: var(--aby-border); }

.authby-modal__header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-right: 28px; }
.authby-modal__logo {
  width: 130px; height: 130px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--aby-font); font-weight: 700; font-size: 20px; color: var(--aby-primary); text-transform: uppercase;
}
.authby-modal__logo img { width: 100%; height: 100%; object-fit: contain; }
/* URL is the prominent title, name the secondary line. */
.authby-modal__url { font-family: var(--aby-font); font-weight: 700; font-size: 20px; color: var(--aby-blue); text-decoration: none; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.authby-modal__url:hover { text-decoration: underline; }
.authby-modal__name { font-size: 13px; color: var(--aby-text); margin-top: 2px; }
.authby-modal__titles { flex: 1; min-width: 0; }
/* Reviews + badges stacked beneath the title/name. */
.authby-modal__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; }
.authby-modal__aside .authby-badges { margin-top: 0; }
.authby-modal__reviews { font-size: 14px; font-weight: 700; color: var(--aby-navy); }
/* Orange star, same as the retailer card (the ★ is the first character). */
.authby-modal__rating-text { display: inline-block; }
.authby-modal__rating-text::first-letter { color: var(--aby-orange); }
.authby-via-trustami { font-size: 11px; font-weight: 400; color: var(--aby-text); text-decoration: none; margin-left: 5px; white-space: nowrap; }
.authby-via-trustami:hover { text-decoration: underline; }
/* "Authorization status" active seal — dot styled by the theme's .dot rule. */
.certificate-active .dot { display: inline-block; margin-right: 10px; }
/* "Status live confirmed" value + LIVE badge. */
.authby-live { display: inline-flex; align-items: center; gap: 8px; }
.authby-live__badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: #0c7a46;
  background: rgba(24,206,122,0.16); border: 1px solid var(--aby-green);
  border-radius: 4px; padding: 1px 6px;
}
/* "Confirmed brands" count, linked to the shop's general certificate. */
.authby-cert-count { display: inline-flex; align-items: center; gap: 6px; color: var(--aby-blue); text-decoration: none; font-weight: 600; }
.authby-cert-count:hover { text-decoration: underline; }

.authby-modal__stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.authby-stat {
  flex: 1; min-width: 120px; text-decoration: none;
  background: var(--aby-surface); border: 1px solid var(--aby-border);
  border-radius: var(--aby-radius-sm); padding: 12px 14px; text-align: center;
}
a.authby-stat:hover { border-color: var(--aby-primary); }
.authby-stat__num { display: block; font-family: var(--aby-font); font-weight: 800; font-size: 20px; color: var(--aby-primary); }
.authby-stat__label { display: block; font-size: 11px; color: var(--aby-text); margin-top: 3px; }

.authby-modal__info { display: flex; flex-direction: column; gap: 0; margin: 8px 0; }
.authby-info-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--aby-border); font-size: 14px; }
.authby-info-row:last-child { border-bottom: none; }
.authby-info-row__label { flex-shrink: 0; width: 130px; color: var(--aby-text); font-size: 13px; }
/* Status & verification tab: fixed label column (sized to the longest label) so
   every value aligns and no label wraps. */
.authby-modal-panel[data-tab="details"] .authby-info-row__label { width: 215px; white-space: nowrap; padding-right: 12px; }
@media (max-width: 480px) {
  .authby-modal-panel[data-tab="details"] .authby-info-row__label { width: auto; white-space: normal; }
}
/* Popup product categories as pills (matching the brand card). */
.authby-modal__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.authby-info-row__value { color: var(--aby-navy); }

.authby-modal__about { margin: 14px 0; }
.authby-modal__about-label { font-size: 13px; color: var(--aby-text); margin-bottom: 4px; }
.authby-modal__about p { color: var(--aby-navy); font-size: 14px; }
.authby-modal__social { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 12px 0; }
/* Inside the info table, the icons align to the value column with no extra margin. */
.authby-info-row__value .authby-modal__social { margin: 0; }
.authby-modal__social a {
  display: inline-flex; font-size: 20px; line-height: 1;
  color: var(--aby-primary); text-decoration: none; transition: color 0.15s ease;
}
.authby-modal__social a:hover { color: var(--aby-blue); }

.authby-modal__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.authby-modal__cta .authby-btn { flex: 1; min-width: 140px; }

@media (max-width: 480px) {
  .authby-info-row { flex-direction: column; gap: 2px; }
  .authby-info-row__label { width: auto; }

  /* Retailer cards: scale the logo/URL down so they fit — kept left-aligned. */
  .authby-retailer-card { padding: 16px; }
  .authby-retailer-card__top { gap: 10px; padding-right: 44px; }
  .authby-retailer-card__logo { width: 72px; height: 72px; }
  .authby-retailer-card__url { font-size: 17px; }

  /* Retailer modal header: smaller logo/URL, left-aligned. */
  .authby-modal__header { gap: 12px; }
  .authby-modal__logo { width: 60px; height: 60px; font-size: 16px; }
  .authby-modal__url { font-size: 17px; }
}

/* ---- CTA banner ---- */
.authby-cta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 28px;
  background: linear-gradient(135deg, var(--aby-navy) 0%, var(--aby-primary) 100%);
  color: #fff; border-radius: var(--aby-radius);
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(10,32,74,0.18);
}
.authby-cta__stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.authby-cta__stat { display: flex; flex-direction: column; }
.authby-cta__num {
  font-family: var(--aby-font); font-weight: 800; font-size: 40px; line-height: 1; color: #fff;
}
.authby-cta__label { font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 6px; max-width: 160px; }
.authby-cta__divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.22); }
.authby-cta__action { flex: 1; min-width: 240px; }
.authby-cta__heading {
  font-weight: bold;
}
.authby-cta__sub { color: rgba(255,255,255,0.82); margin: 6px 0 16px; }
.authby-cta__action .authby-btn { margin: 0; }

@media (max-width: 640px) {
  .authby-cta { padding: 26px 24px; gap: 22px; }
  .authby-cta__num { font-size: 32px; }
}

/* ---- Routed brand page ---- */
.authby-page-wrap { margin: 48px auto; }
.authby-brand-page__retailers { margin-top: 30px; }
/* "Back to homepage" link at the top of the brand page. */
.authby-home-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; color: var(--aby-blue); text-decoration: none;
}
.authby-home-link:hover { text-decoration: underline; }
.authby-home-link__arrow { font-size: 15px; line-height: 1; }
.authby-brand-page__title { font-size: 22px; margin: 4px 0 20px; }
/* Breadcrumb on the brand page */
.authby-breadcrumb { margin-bottom: 14px; font-size: 13px; color: var(--aby-text); }
.authby-breadcrumb a { color: var(--aby-blue); text-decoration: none; }
.authby-breadcrumb a:hover { text-decoration: underline; }
.authby-breadcrumb__sep { margin: 0 6px; opacity: 0.55; }
.authby-breadcrumb__label { color: var(--aby-text); }
.authby-breadcrumb__current { color: var(--aby-navy); }
/* Quotable brand statement (SEO / LLM citation) */
.authby-brand-statement { max-width: 72ch; margin: 24px auto 4px; font-size: 14px; line-height: 1.6; color: var(--aby-text); text-align: center; }

.authby-modal-store { display: none !important; }

/* ---- Load more ---- */
.authby-retailer-card.is-collapsed { display: none; }
.authby-loadmore-wrap { text-align: center; margin-top: 18px; }
.authby-loadmore { cursor: pointer; }

/* ---- Search preview / skeleton ---- */
.authby-preview { margin-top: 4px; }
.authby-skeleton {
  position: relative; overflow: hidden;
  background: var(--aby-skeleton);
  border-radius: 6px;
}
/* Shimmer only while loading; idle preview stays static. */
.authby-preview.is-loading .authby-skeleton::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: authby-shimmer 1.4s ease-in-out infinite;
}
@keyframes authby-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .authby-preview.is-loading .authby-skeleton::after { animation: none; } }

.authby-sk-brand { height: 116px; border-radius: var(--aby-radius); margin-bottom: 18px; }
.authby-preview__filters { display: flex; gap: 8px; margin-bottom: 18px; }
.authby-sk-filter { width: 64px; height: 28px; border-radius: 20px; }

.authby-sk-card {
  background: var(--aby-bg);
  border: 1px solid var(--aby-border);
  border-radius: var(--aby-radius);
  padding: 18px;
}
.authby-sk-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.authby-sk-logo { width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; }
.authby-sk-card__lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.authby-sk-line { height: 11px; width: 80%; }
.authby-sk-line--sm { width: 50%; }
.authby-sk-card__badges { display: flex; gap: 6px; }
.authby-sk-pill { width: 56px; height: 18px; border-radius: 20px; }

/* ---- Tabs (list / universe) ---- */
.authby-tabs {
  display: inline-flex; gap: 2px; margin-bottom: 20px;
  background: var(--aby-surface); border: 1px solid var(--aby-border);
  border-radius: var(--aby-radius); padding: 4px;
}
.authby-tab {
  font-family: var(--aby-font); font-size: 13px; font-weight: 500;
  padding: 8px 20px; border: none; background: transparent; color: var(--aby-text);
  cursor: pointer; border-radius: 6px; transition: background 0.15s ease, color 0.15s ease;
}
.authby-tab.is-active { background: var(--aby-bg); color: var(--aby-primary); box-shadow: 0 1px 3px rgba(10,32,74,0.08); }
.authby-view[hidden] { display: none; }

/* ---- Universe view ---- */
.authby-universe {
  position: relative; width: 100%; height: 600px; overflow: hidden;
  border: 1px solid var(--aby-border); border-radius: var(--aby-radius);
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, var(--aby-surface) 100%);
}
.authby-universe__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.authby-universe__nodes { position: absolute; inset: 0; }
.authby-universe__line { stroke: var(--aby-border-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.authby-universe__line--premium { stroke: rgba(22,152,246,0.55); }
.authby-universe__line--start { stroke: rgba(10,32,74,0.35); }
.authby-universe__line--free { stroke: rgba(118,118,117,0.30); }

.authby-universe__center {
  position: absolute; transform: translate(-50%,-50%); z-index: 3;
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  background: #fff; border: 2px solid var(--aby-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,83,165,0.25);
  font-family: var(--aby-font); font-weight: 800; color: var(--aby-primary);
}
.authby-universe__center img { width: 78%; height: 78%; object-fit: contain; }

.authby-universe__node {
  position: absolute; transform: translate(-50%,-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
}
.authby-universe__circle {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 50%; background: #fff; border: 2px solid var(--aby-border-strong);
  font-family: var(--aby-font); font-weight: 700; font-size: 11px; color: var(--aby-navy);
  box-shadow: 0 2px 8px rgba(10,32,74,0.10); transition: transform 0.15s ease;
}
.authby-universe__circle img { width: 78%; height: 78%; object-fit: contain; }
.authby-universe__node:hover .authby-universe__circle,
.authby-universe__node:focus-visible .authby-universe__circle { transform: scale(1.15); }
.authby-universe__node--premium .authby-universe__circle { border-color: var(--aby-blue); }
.authby-universe__node--start .authby-universe__circle { border-color: var(--aby-navy); }
.authby-universe__label {
  margin-top: 5px; max-width: 92px; font-size: 10px; color: var(--aby-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
  background: rgba(255,255,255,0.85); border-radius: 4px; padding: 1px 5px;
  opacity: 0; transition: opacity 0.15s ease; pointer-events: none;
}
.authby-universe__node:hover .authby-universe__label,
.authby-universe__node:focus-visible .authby-universe__label { opacity: 1; }
.authby-universe__cap {
  position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--aby-text);
  background: rgba(255,255,255,0.85); padding: 2px 9px; border-radius: 10px;
}
@media (max-width: 600px) { .authby-universe { height: 460px; } }

/* ---- Batch: premium, rating, menus, modal tabs ---- */

/* Sponsored (premium partner) → blue border; official shop → green border.
   Official is listed last so it wins when a card is both. */
.authby-retailer-card.is-premium { border-color: rgba(22,152,246,0.45); box-shadow: 0 2px 12px rgba(22,152,246,0.10); }
.authby-retailer-card.is-official,
.authby-retailer-card.is-official:hover { border-color: var(--aby-green); }

/* Review score on the retailer card — sits above the URL in the text column */
.authby-retailer-card__rating {
  font-family: var(--aby-font); font-weight: 700; font-size: 13px; color: var(--aby-navy);
  line-height: 1.2; margin-bottom: 1px;
}
.authby-retailer-card__rating::first-letter { color: var(--aby-orange); }

/* TÜV-ShopIdent seal on the retailer card — top-right, where the rating used to be */
.authby-retailer-card__tuv { position: absolute; top: 14px; right: 14px; }
.authby-retailer-card__tuv .authby-tuv-icon { height: 34px; }
/* No trailing gap when the card has no bottom badge row */
.authby-retailer-card__top:last-child { margin-bottom: 0; }

/* Narrow brand card (explorer overview) */
.authby-brand-card--narrow { max-width: 580px; margin-left: auto; margin-right: auto; }

/* Dots (⋮) dropdown menu */
.authby-menu { position: relative; display: inline-flex; }
.authby-menu__toggle {
  width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--aby-text); font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.authby-menu__toggle:hover { background: var(--aby-surface); color: var(--aby-navy); }
.authby-menu__list {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 20; min-width: 200px;
  background: var(--aby-bg); border: 1px solid var(--aby-border); border-radius: var(--aby-radius-sm);
  box-shadow: 0 12px 32px rgba(10,32,74,0.16); padding: 6px; display: flex; flex-direction: column;
}
.authby-menu__list[hidden] { display: none; }
.authby-menu__item {
  padding: 9px 12px; border-radius: 5px; font-size: 13px; color: var(--aby-navy);
  text-decoration: none; white-space: nowrap;
}
.authby-menu__item:hover { background: var(--aby-surface); color: var(--aby-primary); }

/* Brand-card menu (top-right corner) */
.authby-brand-card { position: relative; }
.authby-brand-card .authby-menu { position: absolute; top: 10px; right: 12px; }

/* Modal menu (left of the close ×) */
.authby-modal .authby-menu { position: absolute; top: 13px; right: 52px; }
.authby-modal__header { padding-right: 88px; }

/* Modal tabs */
.authby-modal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--aby-border); margin: 18px 0 6px; }
.authby-modal-tab {
  padding: 9px 14px; border: none; background: transparent; cursor: pointer;
  font-family: var(--aby-font); font-size: 13px; font-weight: 500; color: var(--aby-text);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.authby-modal-tab.is-active { color: var(--aby-primary); border-bottom-color: var(--aby-primary); }
.authby-modal-panel { display: none; padding-top: 8px; }
.authby-modal-panel.is-active { display: block; }

/* Muted "not provided yet" prompt */
.authby-muted-note { color: var(--aby-text); font-style: italic; font-size: 13px; }
.authby-complete-link { font-style: normal; font-size: 12px; color: var(--aby-blue); text-decoration: none; white-space: nowrap; }
.authby-complete-link:hover { text-decoration: underline; }

.authby-info-row__value { flex: 1; }

.authby-about-text { font-size: 13px; line-height: 1.5; }
.authby-about-more { font-size: 13px; color: var(--aby-blue); text-decoration: none; white-space: nowrap; }
.authby-about-more:hover { text-decoration: underline; }
.authby-powered-by { font-size: 11px; color: var(--aby-text); text-decoration: none; white-space: nowrap; }
.authby-powered-by:hover { text-decoration: underline; }

/* ---- TÜV icon (replaces the TÜV badge) ---- */
.authby-tuv-icon { height: 30px; width: auto; display: inline-block; vertical-align: middle; }

/* ---- Skeleton fades in while loading ---- */
@keyframes authby-fadein { from { opacity: 0; } to { opacity: 1; } }
.authby-preview { animation: authby-fadein 0.35s ease; }

/* ---- Featured brands grid ---- */
.authby-brands__pool { display: none !important; }
.authby-brands__slot { transition: opacity 0.4s ease; }
.authby-brands__slot.is-swapping { opacity: 0; }

/* Featured brands grid inherits the shared .authby-grid 4 → 2 → 1 layout. */

.authby-brand-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; height: 100%;
  background: var(--aby-bg); border: 1px solid var(--aby-border);
  border-radius: var(--aby-radius); padding: 18px 14px; text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.authby-brand-tile:hover {
  border-color: var(--aby-border-strong); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,32,74,0.08);
}
.authby-brand-tile__logo {
  width: 120px; height: 120px; margin-bottom: 2px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--aby-font); font-weight: 700; color: var(--aby-primary); text-transform: uppercase;
}
.authby-brand-tile__logo img { width: 100%; height: 100%; object-fit: contain; }
.authby-brand-tile__name { font-family: var(--aby-font); font-weight: 700; font-size: 14px; color: var(--aby-navy); line-height: 1.25; }
.authby-brand-tile__count { font-size: 12px; color: var(--aby-text); }
.authby-brand-tile__verified {
  margin-top: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--aby-green);
}

/* ---- Embed generator ---- */
.authby-result__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.authby-result__bar .authby-tabs { margin-bottom: 0; }
.authby-embedgen__btn {
  font-family: var(--aby-font); font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: var(--aby-radius-sm);
  background: var(--aby-surface); border: 1px solid var(--aby-border); color: var(--aby-navy);
  display: inline-flex; align-items: center; gap: 6px;
}
.authby-embedgen__btn:hover { border-color: var(--aby-primary); color: var(--aby-primary); }
.authby-embedgen__overlay {
  position: fixed; inset: 0; z-index: 100001;
  background: rgba(10,32,74,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
}
.authby-embedgen__overlay[hidden] { display: none; }
.authby-embedgen__dialog {
  position: relative; width: 100%; max-width: 520px;
  background: var(--aby-bg); border-radius: var(--aby-radius);
  box-shadow: 0 24px 60px rgba(10,32,74,0.30);
  padding: 26px 28px; margin: 0 auto;
}
.authby-embedgen__close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; line-height: 1;
  border: 0; background: transparent; cursor: pointer;
  font-size: 26px; color: var(--aby-text); border-radius: 8px;
}
.authby-embedgen__close:hover { background: var(--aby-surface); color: var(--aby-navy); }
.authby-embedgen__title { font-size: 18px; color: var(--aby-navy); margin: 0 0 16px; padding-right: 28px; }
.authby-embedgen__field { margin-bottom: 12px; }
.authby-embedgen__label { display: block; font-size: 12px; font-weight: 600; color: var(--aby-navy); margin-bottom: 5px; }
.authby-embedgen__input {
  width: 100%; font-family: var(--aby-font); font-size: 14px; padding: 9px 12px; color: var(--aby-navy);
  border: 1px solid var(--aby-border-strong); border-radius: var(--aby-radius-sm); background: #fff;
}
.authby-embedgen__input:focus { outline: none; border-color: var(--aby-blue); }
.authby-embedgen__code-wrap { display: flex; gap: 8px; align-items: stretch; }
.authby-embedgen__code {
  flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px;
  padding: 10px 12px; border: 1px solid var(--aby-border-strong); border-radius: var(--aby-radius-sm);
  background: #fff; color: var(--aby-navy); resize: vertical; line-height: 1.5;
}
.authby-embedgen__copy { white-space: nowrap; align-self: flex-start; }
.authby-embedgen__note { font-size: 12px; color: var(--aby-text); margin: 10px 0 0; }

/* ---- Embed page ---- */
.authby-embed__headline { margin: 0 0 16px; }

/* ---- Embed: inline master-detail (opened retailer, no overlay) ---- */
.authby-embed__detail[hidden] { display: none; }
.authby-embed__detail {
  position: relative;
  background: var(--aby-bg);
  border: 1px solid var(--aby-border);
  border-radius: var(--aby-radius);
  padding: 22px 24px;
  margin-top: 14px;
}
.authby-embed__detail-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; line-height: 1;
  border: 0; background: transparent; cursor: pointer;
  font-size: 26px; color: var(--aby-text); border-radius: 8px;
}
.authby-embed__detail-close:hover { background: var(--aby-surface); color: var(--aby-navy); }
.authby-retailer-card.is-active {
  border-color: var(--aby-primary);
  box-shadow: 0 0 0 1px var(--aby-primary);
}
/* On mobile the detail is injected into the card grid, right after the card. */
.authby-grid > .authby-embed__detail { grid-column: 1 / -1; margin-top: 0; }

/* Desktop: list collapses to a single column on the left, detail fills the right. */
@media (min-width: 701px) {
  .authby-embed__split.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px; align-items: start;
  }
  /* Keep the list dense so two retailers still sit side by side in the left half. */
  .authby-embed__split.is-open .authby-embed__list .authby-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .authby-embed__split.is-open .authby-embed__detail { margin-top: 0; }
}

/* ---- Embed: social as text links ---- */
.authby-modal__social--text { gap: 14px; }
.authby-modal__social--text a { font-size: 13px; font-weight: 500; }

/* ---- Embed generator: theme toggle ---- */
.authby-embedgen__themes {
  display: inline-flex; gap: 4px; padding: 3px;
  background: var(--aby-bg); border: 1px solid var(--aby-border-strong); border-radius: var(--aby-radius-sm);
}
.authby-embedgen__theme {
  font-family: var(--aby-font); font-size: 12px; font-weight: 500; cursor: pointer;
  padding: 6px 16px; border: none; background: transparent; color: var(--aby-text); border-radius: 4px;
}
.authby-embedgen__theme.is-active { background: var(--aby-surface); color: var(--aby-primary); }

/* ---- Dark mode (embed only) ---- */
.authby--dark {
  --aby-bg: #121b2b;
  --aby-surface: #1b2740;
  --aby-border: #2b3a54;
  --aby-border-strong: #3b4d6d;
  --aby-skeleton: #37496a; /* lighter than the dark surface so the placeholder stays visible */
  --aby-text: #93a4bd;
  --aby-navy: #e8eff9;
  --aby-primary: #4ea1ff;
  --aby-blue: #4ea1ff;
  color: #fff;
}
/* Logos sit frameless on the light site; in dark mode they keep a light backing
   plate so dark/transparent logos stay legible. */
.authby--dark .authby-brand-card__logo,
.authby--dark .authby-retailers__logo,
.authby--dark .authby-retailer-card__logo,
.authby--dark .authby-ac-logo,
.authby--dark .authby-modal__logo,
.authby--dark .authby-brandres-card__logo,
.authby--dark .authby-brand-tile__logo {
  background: #fff;
  border-radius: 8px;
  border-color: var(--aby-border-strong);
}
