/* Partner-retired popup (RND-168). Shared across every theme: colors come
 * from the platform --likme-* tokens with safe fallbacks, geometry is reset
 * locally so theme-wide button/link rules can't bleed in (the month-calendar
 * lesson). Bottom sheet on small screens, centered dialog from 641px up.
 * Rows are wrap-safe: name, stars+rating (one unbreakable unit) and the
 * bonus line each wrap on their own — nothing may hide under the CTA. */

.pr-lock { overflow: hidden; }

.pr-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(9, 22, 16, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.pr-modal {
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--likme-card-bg, #ffffff);
  color: var(--likme-text, #1a1a2e);
  border-radius: 14px 14px 0 0;
  padding: 18px 18px 16px;
  box-shadow: 0 -12px 40px rgba(9, 22, 16, 0.35);
  font-family: inherit;
  animation: pr-sheet 0.28s ease-out 1;
}

@keyframes pr-sheet {
  from { transform: translateY(24px); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

@media (min-width: 641px) {
  .pr-overlay { align-items: center; padding: 24px; }
  .pr-modal {
    width: 480px;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 18px 60px rgba(9, 22, 16, 0.4);
    animation-name: pr-pop;
  }
  @keyframes pr-pop {
    from { transform: scale(0.96); opacity: 0.4; }
    to { transform: none; opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-modal { animation: none; }
}

.pr-modal * { box-sizing: border-box; }

.pr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.pr-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8321f;
  border: 2px solid #c8321f;
  border-radius: 4px;
  padding: 2px 8px;
  transform: rotate(-2deg);
  margin-bottom: 8px;
}

.pr-title {
  font-family: var(--pr-display, inherit);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--likme-text, #1a1a2e);
}

.pr-text { font-size: 13.5px; margin: 0 0 12px; color: var(--likme-text-muted, #64748b); }

.pr-x {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: var(--likme-surface, #eef1f5);
  color: var(--likme-text-muted, #64748b);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pr-x:hover { color: var(--likme-text, #1a1a2e); }
.pr-x:focus-visible,
.pr-visit:focus-visible,
.pr-ranking:focus-visible { outline: 2px solid var(--likme-link, #036ed1); outline-offset: 2px; }

.pr-list { display: flex; flex-direction: column; gap: 8px; }

.pr-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  border: 1.5px solid var(--likme-border, #e2e8f0);
  border-radius: 6px;
  padding: 9px 10px;
  background: var(--likme-card-bg, #ffffff);
}
.pr-row--top { border-color: var(--likme-border-hover, var(--likme-link, #036ed1)); }

.pr-rank {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex: 0 0 auto;
  background: var(--likme-surface, #eef1f5);
  color: var(--likme-text-muted, #64748b);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pr-row--top .pr-rank { background: #ffbf00; color: #1c2740; }

.pr-logo {
  width: 48px;
  height: 32px;
  border-radius: 4px;
  flex: 0 0 auto;
  background: var(--likme-surface, #eef1f5);
  border: 1px solid var(--likme-border, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  overflow: hidden;
}
.pr-logo img { max-width: 100%; max-height: 100%; display: block; }

.pr-brand { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }

.pr-name {
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.pr-rate { white-space: nowrap; display: inline-flex; gap: 4px; align-items: baseline; }
.pr-stars { color: #ffbf00; font-size: 10.5px; letter-spacing: 0.08em; }
.pr-rate b { font-size: 11px; font-weight: 800; color: var(--likme-text, #1a1a2e); }

.pr-bonus { font-size: 12px; color: var(--likme-text-muted, #64748b); }

.pr-visit,
a.pr-visit {
  flex: 0 0 auto;
  margin-left: auto;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--pr-cta-bg, var(--likme-accent-dark, var(--likme-link, #0b5c34)));
  color: var(--pr-cta-text, #ffffff);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.pr-visit:hover { filter: brightness(1.12); color: var(--pr-cta-text, #ffffff); }

.pr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--likme-border, #e2e8f0);
}

.pr-ranking,
a.pr-ranking {
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--likme-link, #036ed1);
}

.pr-resp {
  font-size: 10.5px;
  color: var(--likme-text-muted, #64748b);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pr-18 {
  border: 1.5px solid var(--likme-text-muted, #64748b);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 8.5px;
}

/* ── Per-theme identity (RND-168) ─────────────────────────────────────────
 * Generated from each live theme's own compiled tokens (display font from
 * its Google Fonts head link, CTA from its --likme-accent-dark/accent/link
 * chain; text color by luminance). Themes not listed inherit the runtime
 * token fallbacks above. Regenerate when a theme rebrands. */
.theme-argentina-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #1A6DB5; --pr-cta-text: #ffffff; }
.theme-armenia-board .pr-modal { --pr-display: 'Archivo', inherit; --pr-cta-bg: #B3000F; --pr-cta-text: #ffffff; }
.theme-bangladesh-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #00533D; --pr-cta-text: #ffffff; }
.theme-bulgaria-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #00694E; --pr-cta-text: #ffffff; }
.theme-cesko-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #103F72; --pr-cta-text: #ffffff; }
.theme-colombia-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #003893; --pr-cta-text: #ffffff; }
.theme-eesti-board .pr-modal { --pr-display: 'Schibsted Grotesk', inherit; --pr-cta-bg: #075BA8; --pr-cta-text: #ffffff; }
.theme-espana-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #9E1318; --pr-cta-text: #ffffff; }
.theme-india-board .pr-modal { --pr-display: 'Archivo', inherit; --pr-cta-bg: #0F6A06; --pr-cta-text: #ffffff; }
.theme-indonesia-board .pr-modal { --pr-display: 'Archivo', inherit; --pr-cta-bg: #BE000E; --pr-cta-text: #ffffff; }
.theme-italia-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #005793; --pr-cta-text: #ffffff; }
.theme-lazybos-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #005C3B; --pr-cta-text: #ffffff; }
.theme-lietuva-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #005C3B; --pr-cta-text: #ffffff; }
.theme-lusitania-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #046A38; --pr-cta-text: #ffffff; }
.theme-macedonia-board .pr-modal { --pr-display: 'Archivo', inherit; --pr-cta-bg: #A80000; --pr-cta-text: #ffffff; }
.theme-magyar-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #A5122A; --pr-cta-text: #ffffff; }
.theme-malaysia-board .pr-modal { --pr-display: 'Archivo', inherit; --pr-cta-bg: #12604B; --pr-cta-text: #ffffff; }
.theme-mexico-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #006847; --pr-cta-text: #ffffff; }
.theme-nederland-board .pr-modal { --pr-display: 'Archivo', inherit; --pr-cta-bg: #193A75; --pr-cta-text: #ffffff; }
.theme-nepal-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #B4102E; --pr-cta-text: #ffffff; }
.theme-night-board .pr-modal { --pr-display: 'Commissioner', inherit; --pr-cta-bg: #CE9700; --pr-cta-text: #1a2028; }
.theme-norge-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #A30B2A; --pr-cta-text: #ffffff; }
.theme-peru-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #D91023; --pr-cta-text: #ffffff; }
.theme-portugal-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #0B5C34; --pr-cta-text: #ffffff; }
.theme-romania-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #002B7F; --pr-cta-text: #ffffff; }
.theme-serbia-board .pr-modal { --pr-display: 'Archivo', inherit; --pr-cta-bg: #A52A30; --pr-cta-text: #ffffff; }
.theme-slovak-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #0A4691; --pr-cta-text: #ffffff; }
.theme-suomi-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #002F6C; --pr-cta-text: #ffffff; }
.theme-sverige-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #005B99; --pr-cta-text: #ffffff; }
.theme-swiss-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #B01F14; --pr-cta-text: #ffffff; }
.theme-zalozi-board .pr-modal { --pr-display: 'Sora', inherit; --pr-cta-bg: #00694E; --pr-cta-text: #ffffff; }
