/* ReviewBird Tools — Google Bewertungslink Generator
   Anti-Gravity design language: floating cards, layered shadows,
   gradient orbs, ReviewBird purple-to-turquoise palette.          */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ── Brand tokens ─────────────────────────────────────────────── */
/* Defined on the outer scope so vars cascade to tool + FAQ/help   */
#rb-review-link-generator,
.rb-tool-wrapper {
  --rb-deep-purple:    #3B0078;
  --rb-bright-purple:  #6115BF;
  --rb-turquoise:      #09B8BD;
  --rb-lime:           #7EDA3B;
  --rb-bg:             #F6F7F9;
  --rb-card-bg:        #ffffff;
  --rb-text:           #1A1A2E;
  --rb-text-muted:     #6B7280;
  --rb-border:         #E5E7EB;
  --rb-gradient:       linear-gradient(91deg, var(--rb-deep-purple), var(--rb-turquoise));
  --rb-shadow-sm:      0 2px 8px rgba(59,0,120,.08), 0 1px 3px rgba(0,0,0,.06);
  --rb-shadow-md:      0 8px 24px rgba(59,0,120,.12), 0 2px 8px rgba(0,0,0,.08);
  --rb-shadow-lg:      0 20px 48px rgba(59,0,120,.18), 0 8px 16px rgba(0,0,0,.10);
  --rb-radius-sm:      12px;
  --rb-radius-md:      18px;
  --rb-radius-lg:      24px;
  --rb-radius-xl:      32px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--rb-text);
}

/* ── Layout wrapper ───────────────────────────────────────────── */
.rb-tool-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--rb-bg);
  border-radius: var(--rb-radius-xl);
  padding: 28px 18px 40px;
  margin: 32px 0;
}

@media (min-width: 641px) {
  .rb-tool-wrapper { padding: 48px 40px 64px; }
}

/* ── Theme isolation reset ────────────────────────────────────── */
/* :where() gives zero added specificity, so every plugin component class     */
/* (specificity ≥ 0-1-0) naturally overrides this reset. At the same time     */
/* the reset beats Hello Elementor / similar themes' bare element rules       */
/* (0-0-1) because the plugin stylesheet loads last (source-order wins ties). */
:where(#rb-review-link-generator) *,
:where(#rb-review-link-generator) *::before,
:where(#rb-review-link-generator) *::after { box-sizing: border-box; }

:where(#rb-review-link-generator) h1, :where(#rb-review-link-generator) h2,
:where(#rb-review-link-generator) h3, :where(#rb-review-link-generator) h4,
:where(#rb-review-link-generator) h5, :where(#rb-review-link-generator) h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  color: var(--rb-text);
  background: none;
  border: none;
  letter-spacing: normal;
  text-transform: none;
}

:where(#rb-review-link-generator) p {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:where(#rb-review-link-generator) ul,
:where(#rb-review-link-generator) ol { list-style: none; margin: 0; padding: 0; }

:where(#rb-review-link-generator) li { margin: 0; padding: 0; background: transparent; border: 0; }
:where(#rb-review-link-generator) li::before,
:where(#rb-review-link-generator) li::after { content: none; }

:where(#rb-review-link-generator) a,
:where(#rb-review-link-generator) a:hover,
:where(#rb-review-link-generator) a:focus,
:where(#rb-review-link-generator) a:visited,
:where(#rb-review-link-generator) a:active { color: inherit; text-decoration: none; background: transparent; }

:where(#rb-review-link-generator) svg { display: block; overflow: visible; }

/* ── Gradient orbs ────────────────────────────────────────────── */
.rb-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .35;
  filter: blur(72px);
  z-index: 0;
}
.rb-orb-1 {
  width: 500px; height: 500px;
  top: -180px; left: -140px;
  background: radial-gradient(circle, var(--rb-bright-purple) 0%, transparent 70%);
}
.rb-orb-2 {
  width: 400px; height: 400px;
  bottom: -160px; right: -100px;
  background: radial-gradient(circle, var(--rb-turquoise) 0%, transparent 70%);
}

/* ── Cards ────────────────────────────────────────────────────── */
.rb-card {
  position: relative;
  z-index: 1;
  background: var(--rb-card-bg);
  border-radius: var(--rb-radius-md);
  box-shadow: var(--rb-shadow-md);
  padding: 20px 18px;
  margin-bottom: 20px;
}

@media (min-width: 641px) {
  .rb-card { padding: 28px 32px; }
}

/* ── Utility ──────────────────────────────────────────────────── */
.rb-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Subheadline ──────────────────────────────────────────────── */
.rb-subheadline {
  font-size: 16px;
  line-height: 1.6;
  color: var(--rb-text-muted);
  margin: 0 0 20px;
  max-width: 680px;
}

/* ── Trust bar ────────────────────────────────────────────────── */
.rb-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rb-text-muted);
}

/* ── Search input ─────────────────────────────────────────────── */
.rb-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--rb-border);
  border-radius: var(--rb-radius-lg);
  padding: 14px 18px;
  background: #ffffff;
  transition: border-color .2s, box-shadow .2s;
}
.rb-input-row:focus-within {
  border-color: var(--rb-turquoise);
  box-shadow: 0 0 0 4px rgba(9,184,189,.14);
  background: #fff;
}

.rb-input-icon { color: var(--rb-text-muted); flex-shrink: 0; }

.rb-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--rb-text);
  outline: none;
}
.rb-search-input::placeholder { color: var(--rb-text-muted); font-weight: 400; }

/* Spinner */
.rb-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid var(--rb-border);
  border-top-color: var(--rb-bright-purple);
  border-radius: 50%;
  animation: rb-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes rb-spin { to { transform: rotate(360deg); } }

/* ── Autocomplete dropdown ────────────────────────────────────── */
.rb-suggestions-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  background: var(--rb-card-bg);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  box-shadow: var(--rb-shadow-lg);
  position: relative;
  z-index: 100;
}

.rb-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.rb-suggestion-item:hover {
  background: linear-gradient(90deg, rgba(97,21,191,.05), rgba(9,184,189,.04));
}
.rb-suggestion-item.rb-suggestion-active {
  background: linear-gradient(90deg, rgba(97,21,191,.08), rgba(9,184,189,.04));
  /*border-left-color: var(--rb-bright-purple);*/
  padding-left: 11px;
}
.rb-suggestion-item.rb-suggestion-active .rb-suggestion-name {
  color: var(--rb-bright-purple);
}
.rb-suggestion-pin {
  color: var(--rb-text-muted);
  flex-shrink: 0;
  transition: color .15s;
}
.rb-suggestion-item.rb-suggestion-active .rb-suggestion-pin { color: var(--rb-bright-purple); }
.rb-suggestion-item-main { flex: 1; min-width: 0; }
.rb-suggestion-name { font-size: 14px; font-weight: 600; color: var(--rb-text); }
.rb-suggestion-name strong { color: var(--rb-bright-purple); }
.rb-suggestion-address { font-size: 12px; color: var(--rb-text-muted); margin-top: 2px; }
.rb-suggestion-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-lime);
  white-space: nowrap;
  flex-shrink: 0;
}
.rb-suggestion-rating .rb-star { color: var(--rb-lime); }
.rb-review-count { font-weight: 400; color: var(--rb-text-muted); opacity: .85; }

.rb-powered-by {
  margin: 6px 0 0;
  text-align: right;
}
.rb-powered-by-label {
  font-size: 11px;
  color: var(--rb-text-muted);
}
.rb-google-wordmark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.rb-helper-text {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--rb-text-muted);
}

/* ── Section label ────────────────────────────────────────────── */
.rb-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rb-text-muted);
  margin-bottom: 14px;
}

/* ── Business card ────────────────────────────────────────────── */
.rb-business-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(59,0,120,.04) 0%, rgba(9,184,189,.04) 100%);
  border: 1.5px solid rgba(97,21,191,.1);
}
.rb-business-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--rb-deep-purple), var(--rb-bright-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.rb-business-avatar.rb-avatar--has-favicon {
  background: #fff;
}
.rb-avatar-favicon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.rb-business-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rb-text);
}
.rb-business-address {
  font-size: 13px;
  color: var(--rb-text-muted);
  margin-top: 3px;
}
.rb-business-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  margin-top: 5px;
  color: var(--rb-text-muted);
  font-weight: 500;
}
.rb-rating-star  { color: var(--rb-lime); }
.rb-rating-value { color: var(--rb-lime); font-weight: 600; }
.rb-rating-count { color: var(--rb-text-muted); font-weight: 400; }

/* ── Link card ────────────────────────────────────────────────── */
.rb-link-card {
  background: linear-gradient(135deg, var(--rb-deep-purple) 0%, var(--rb-bright-purple) 100%);
}
.rb-link-card .rb-section-label {
  color: rgba(255,255,255,.65);
}
.rb-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.rb-link-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 11px 16px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
}
.rb-link-input::selection { background: rgba(255,255,255,.25); }
.rb-link-input:focus { border-color: rgba(255,255,255,.5); }

/* ── Buttons ──────────────────────────────────────────────────── */
.rb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  min-height: 44px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, opacity .12s;
  text-decoration: none;
  white-space: nowrap;
}
@media (hover: hover) {
  .rb-btn:hover { transform: translateY(-1px); }
}
.rb-btn:active { transform: translateY(0); }

.rb-btn-primary {
  background: var(--rb-gradient);
  color: #1A1A2E;
  box-shadow: 0 4px 14px rgba(97,21,191,.35);
}
.rb-btn-primary:hover {
  box-shadow: 0 8px 24px rgba(97,21,191,.45);
}

.rb-btn-copy {
  background: var(--rb-lime);
  color: #fff;
  box-shadow: 0 3px 10px rgba(9,184,189,.3);
  padding: 10px 18px;
  flex-shrink: 0;
}

.rb-btn-outline {
  background: #fff;
  color: var(--rb-bright-purple);
  border: 2px solid var(--rb-bright-purple);
  padding: 9px 18px;
}
.rb-btn-outline:hover { background: rgba(97,21,191,.05); }

.rb-btn-link {
  background: #ffffff;
  color: var(--rb-deep-purple);
  font-size: 13px;
  padding: 9px 16px;
  border: 1.5px solid var(--rb-deep-purple);
}
.rb-btn-link:hover {
  background: rgba(9,184,189,.06);
  border-color: var(--rb-bright-purple);
  color: var(--rb-bright-purple);
}

.rb-btn-secondary {
  background: #ffffff;
  color: var(--rb-turquoise);
  font-size: 13px;
  padding: 9px 16px;
  border: 1.5px solid var(--rb-turquoise);
}
.rb-btn-secondary:hover {
  background: rgba(9,184,189,.06);
  border-color: var(--rb-turquoise);
  color: var(--rb-turquoise);
}

.rb-btn-ternary {
  background: #ffffff;
  color: var(--rb-text-muted);
  font-size: 13px;
  padding: 9px 16px;
  border: 1.5px solid var(--rb-text-muted);
}
.rb-btn-ternary:hover {
  background: rgba(9,184,189,.06);
  border-color: var(--rb-text-muted);
  color: var(--rb-text-muted);
}

/* ── Secondary actions row ────────────────────────────────────── */
.rb-secondary-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* ── QR card ──────────────────────────────────────────────────── */
.rb-qr-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
@media (min-width: 641px) {
  .rb-qr-body { flex-direction: row; }
}

.rb-qr-preview-col { flex-shrink: 0; }
.rb-qr-canvas-wrap {
  width: 160px; height: 160px;
  border-radius: var(--rb-radius-sm);
  overflow: hidden;
  box-shadow: var(--rb-shadow-sm);
  background: #fff;
}
.rb-qr-canvas-wrap canvas {
  width: 100%; height: 100%;
  display: block;
  image-rendering: pixelated;
}

.rb-qr-controls-col { flex: 1; min-width: 0; }

.rb-control-group { margin-bottom: 18px; }
.rb-control-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--rb-text-muted);
  margin-bottom: 8px;
}

/* Size pills */
.rb-size-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 20px;
  border: 1.5px solid var(--rb-border);
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-text-muted);
  cursor: pointer;
  transition: all .15s;
}
.rb-pill:hover { border-color: var(--rb-bright-purple); color: var(--rb-bright-purple); }
.rb-pill-active {
  background: var(--rb-bright-purple);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(97,21,191,.25);
}

/* File input / drop zone */
.rb-file-drop {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px dashed var(--rb-turquoise);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color .2s;
  width: 100%;
  max-width: 280px;
}
.rb-file-drop:hover { border-color: var(--rb-bright-purple); }
@media (min-width: 641px) {
  .rb-file-drop { max-width: 400px; }
}
.rb-file-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--rb-text-muted);
  cursor: pointer;
  flex: 1;
}
.rb-file-label:hover { color: var(--rb-bright-purple); }

.rb-remove-logo {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  padding: 8px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rb-hint {
  font-size: 11px;
  color: var(--rb-text-muted);
  margin: 6px 0 0;
}

/* Download buttons */
.rb-download-row { display: flex; flex-wrap: wrap; gap: 5px; }
.rb-btn-dl { min-width: 60px; justify-content: center; }
.rb-btn-dl-png {
  background: var(--rb-lime);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(34,197,94,.3);
}
.rb-btn-dl-png:hover { box-shadow: 0 4px 14px rgba(34,197,94,.45); }
.rb-btn-dl-svg {
  background: #fff;
  color: var(--rb-bright-purple);
  border: 2px solid var(--rb-bright-purple);
}
.rb-btn-dl-svg:hover { background: rgba(97,21,191,.05); }
.rb-btn-dl-pdf {
  background: #fff;
  color: var(--rb-turquoise);
  border: 2px solid var(--rb-turquoise);
}
.rb-btn-dl-pdf:hover { border-color: var(--rb-text-muted); color: var(--rb-text); }

.rb-qr-use-cases {
  font-size: 12px;
  color: var(--rb-text-muted);
  font-style: italic;
  margin: 0;
}

/* ── Upsell card ──────────────────────────────────────────────── */
.rb-upsell-card {
  background: var(--rb-deep-purple);
  background: linear-gradient(90deg, var(--rb-bright-purple) 60%, var(--rb-turquoise) 90%);
  color: #ffffff;
  overflow: hidden;
}
.rb-upsell-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.rb-upsell-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.rb-upsell-text { flex: 1; min-width: 240px; }
.rb-upsell-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(26,26,46,.12);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--rb-lime);
  margin-bottom: 10px;
}
.rb-upsell-headline {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.rb-upsell-subline {
  font-size: 13px;
  line-height: 1.5;
}
.rb-upsell-trust {
  margin-top: 10px;
  font-size: 12px;
}
.rb-btn-upsell {
  background: #ffffff;
  color: var(--rb-deep-purple);
  padding: 13px 26px;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.rb-btn-upsell:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

/* ── Modal ────────────────────────────────────────────────────── */
.rb-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rb-modal[hidden] { display: none; }

.rb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,.55);
  backdrop-filter: blur(4px);
}
.rb-modal-content {
  position: relative;
  background: #fff;
  border-radius: var(--rb-radius-lg);
  box-shadow: var(--rb-shadow-lg);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
}
.rb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--rb-border);
}
.rb-modal-title { font-size: 16px; font-weight: 700; margin: 0; }
.rb-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rb-text-muted);
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rb-modal-close:hover { color: var(--rb-text); background: var(--rb-bg); }

.rb-modal-body { padding: 20px 24px; }
.rb-email-field {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--rb-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--rb-text);
  margin-bottom: 14px;
  transition: border-color .2s;
  resize: vertical;
  outline: none;
}
.rb-email-field:focus { border-color: var(--rb-bright-purple); }
.rb-email-body { min-height: 160px; }

.rb-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--rb-border);
}

/* ── Toast ────────────────────────────────────────────────────── */
.rb-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--rb-text);
  color: #fff;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
  white-space: nowrap;
}
.rb-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Help content ─────────────────────────────────────────────── */
.rb-help-content {
  margin-top: 56px;
  font-family: 'Poppins', -apple-system, sans-serif;
  color: var(--rb-text, #1A1A2E);
}
.rb-section {
  margin-bottom: 48px;
}
.rb-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--rb-deep-purple, #3B0078);
  margin: 0 0 16px;
}
.rb-section h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.rb-section p  { line-height: 1.7; color: #374151; margin: 0 0 14px; }

.rb-code-block {
  background: #1A1A2E;
  color: #7EDA3B;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 16px;
}
.rb-code-block var { font-style: normal; color: #09B8BD; }

.rb-tip {
  background: rgba(97,21,191,.05);
  border-left: 4px solid var(--rb-bright-purple, #6115BF);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
}

.rb-steps { display: flex; flex-direction: column; gap: 18px; }
.rb-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.rb-step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--rb-text-muted);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(97,21,191,.3);
}
.rb-step-content { flex: 1; }
.rb-step-content h3 { margin-top: 0; }

.rb-practice-list {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rb-practice-list li {
  padding: 14px 18px;
  background: var(--rb-bg, #F6F7F9);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

/* ── Inline upsell section ────────────────────────────────────── */
.rb-upsell-inline-card {
  background: linear-gradient(135deg, rgba(59,0,120,.05) 0%, rgba(9,184,189,.05) 100%);
  border: 1.5px solid rgba(97,21,191,.15);
  border-radius: var(--rb-radius-md, 18px);
  padding: 24px 28px;
  margin-top: 18px;
}
.rb-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.rb-feature-list li {
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}
.rb-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rb-turquoise, #09B8BD);
  font-weight: 700;
}

/* ── FAQ accordion ────────────────────────────────────────────── */
.rb-faq-list { display: flex; flex-direction: column; gap: 8px; }
.rb-faq-item {
  background: #fff;
  border: 1.5px solid var(--rb-border, #E5E7EB);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.rb-faq-item:has(.rb-faq-question[aria-expanded="true"]) {
  border-color: var(--rb-bright-purple, #6115BF);
  box-shadow: 0 4px 16px rgba(97,21,191,.1);
}

.rb-faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--rb-text, #1A1A2E);
  text-align: left;
  white-space: normal;
  cursor: pointer;
  transition: color .15s;
}
.rb-faq-question:hover { color: var(--rb-bright-purple, #6115BF); }
.rb-faq-question[aria-expanded="true"] { color: var(--rb-bright-purple, #6115BF); }

.rb-faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--rb-bright-purple, #6115BF);
  flex-shrink: 0;
  line-height: 1;
}

.rb-faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}
.rb-faq-answer[hidden] { display: none; }
.rb-faq-answer p { margin: 0; }

/* ── Print styles ─────────────────────────────────────────────── */
@media print {
  .rb-upsell-card,
  .rb-secondary-actions,
  .rb-trust-bar,
  .rb-helper-text,
  .rb-help-content { display: none !important; }

  .rb-orb { display: none !important; }

  .rb-tool-wrapper {
    background: #fff !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .rb-card { box-shadow: none !important; border: 1px solid #ccc !important; }

  .rb-qr-canvas-wrap {
    width: 200px !important;
    height: 200px !important;
  }

  .rb-link-input {
    background: var(--rb-bg) !important;
    border: 1px solid #ccc !important;
    color: var(--rb-deep-purple) !important;
    font-size: 11px !important;
    white-space: normal !important;
    word-break: break-all !important;
  }
  .rb-link-card { background: #fff !important; }
  .rb-link-card .rb-section-label { color: var(--rb-bright-purple) !important; }
}

/* ── Step badge ───────────────────────────────────────────────── */
.rb-step-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--rb-text-muted);
  background: #EBEBF0;
  border-radius: 20px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.rb-step-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}
.rb-step-badge-done {
  color: #16A34A;
  background: rgba(34, 197, 94, 0.12);
}
.rb-step-badge-done svg {
  background: #22C55E;
  border-radius: 50%;
  padding: 2px;
  color: #fff;
  width: 16px; height: 16px;
  flex-shrink: 0;
}

/* ── Card heading (inside cards) ──────────────────────────────── */
.rb-card-heading {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rb-deep-purple);
  margin: 0 0 10px;
}
@media (min-width: 641px) {
  .rb-card-heading { font-size: 28px; }
}

/* ── Field label ──────────────────────────────────────────────── */
.rb-field-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--rb-text);
  margin: 0 0 8px;
}

/* ── Clear button ─────────────────────────────────────────────── */
.rb-clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rb-text-muted);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
  line-height: 1;
}
.rb-clear-btn:hover {
  background: rgba(0,0,0,.08);
  color: var(--rb-text);
}

/* ── Result panel positioning ─────────────────────────────────── */
.rb-result-panel {
  position: relative;
  z-index: 1;
}
.rb-result-subheadline {
  position: relative;
  z-index: 1;
}

/* ── QR header ────────────────────────────────────────────────── */
.rb-qr-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  margin-bottom: 16px;
}
.rb-qr-header .rb-section-label { margin-bottom: 0; }
.rb-qr-auto-note {
  font-size: 12px;
  color: var(--rb-text-muted);
  font-style: italic;
}

/* ── Upload badge ─────────────────────────────────────────────── */
.rb-upload-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--rb-bright-purple);
  color: #fff;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Tool footer ──────────────────────────────────────────────── */
.rb-tool-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  font-size: 11px;
  color: var(--rb-text-muted);
  opacity: .75;
}

/* ── Theme-safe high-specificity overrides ────────────────────── */
/* ID selector (#rb-review-link-generator) gives (1,0,0) base —   */
/* beats all theme class/attribute rules regardless of load order. */
/* Combined selectors: (1,1,0) for base, (1,1,1) for :hover.      */

/* .elementor-kit-N h3 has (0,1,1) — these (1,1,1) rules beat it */
#rb-review-link-generator .rb-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--rb-deep-purple, #3B0078);
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
}
#rb-review-link-generator .rb-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  color: var(--rb-text);
}
/* Step number + heading baseline alignment */
#rb-review-link-generator .rb-step-content h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

#rb-review-link-generator .rb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  min-height: 44px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  border: none;
  transition: transform .12s, box-shadow .12s, opacity .12s;
  -webkit-user-select: none;
  user-select: none;
  width: auto;
}
#rb-review-link-generator .rb-btn-copy    { background: var(--rb-lime);          color: #fff;                    border: none; }
#rb-review-link-generator .rb-btn-primary { background: var(--rb-gradient);      color: #fff;                 border: none; }
#rb-review-link-generator .rb-btn-outline { background: #fff;                    color: var(--rb-bright-purple); border: 2px solid var(--rb-bright-purple); }
#rb-review-link-generator .rb-btn-link    { background: #fff;                    color: var(--rb-deep-purple);   border: 1.5px solid var(--rb-deep-purple); }
#rb-review-link-generator .rb-btn-secondary { background: #fff;                  color: var(--rb-turquoise);     border: 1.5px solid var(--rb-turquoise); }
#rb-review-link-generator .rb-btn-ternary { background: #fff;                    color: var(--rb-text-muted);    border: 1.5px solid var(--rb-text-muted); }
#rb-review-link-generator .rb-btn-upsell  { background: #fff;                    color: var(--rb-deep-purple);   border: none; }
#rb-review-link-generator .rb-btn-dl-png  { background: var(--rb-lime);          color: #fff;                    border: none; }
#rb-review-link-generator .rb-btn-dl-svg  { background: #fff;                    color: var(--rb-bright-purple); border: 2px solid var(--rb-bright-purple); }
#rb-review-link-generator .rb-btn-dl-pdf  { background: #fff;                    color: var(--rb-turquoise);     border: 2px solid var(--rb-turquoise); }
#rb-review-link-generator .rb-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 20px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--rb-text-muted);
  border: 1.5px solid var(--rb-border);
  width: auto;
  transition: all .15s;
}
#rb-review-link-generator .rb-pill-active { background: var(--rb-bright-purple); color: #fff; border-color: transparent; }
#rb-review-link-generator .rb-clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rb-text-muted);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: none;
  font-size: inherit;
  width: auto;
  transition: background .15s, color .15s;
}
#rb-review-link-generator .rb-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rb-text-muted);
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  font-size: inherit;
  width: auto;
}
#rb-review-link-generator .rb-faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  white-space: normal;
  background: none;
  border: none;
  color: var(--rb-text);
  cursor: pointer;
  box-shadow: none;
  border-radius: 0;
  transition: color .15s;
}
#rb-review-link-generator .rb-remove-logo {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  padding: 8px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  font-size: inherit;
  width: auto;
}
#rb-review-link-generator .rb-upload-badge {
  background: var(--rb-bright-purple);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hover overrides — (1,1,1) beats [type=button]:hover (0,2,0) and button:hover (0,1,1) */
#rb-review-link-generator .rb-btn-copy:hover     { background: var(--rb-lime);          color: #fff;                    border: none; }
#rb-review-link-generator .rb-btn-primary:hover  { background: var(--rb-gradient);      color: #fff;                 border: none; }
#rb-review-link-generator .rb-btn-outline:hover  { background: var(--rb-bright-purple); color: #fff;                    border-color: var(--rb-bright-purple); }
#rb-review-link-generator .rb-btn-link:hover     { background: var(--rb-deep-purple);   color: #fff;                    border-color: var(--rb-deep-purple); }
#rb-review-link-generator .rb-btn-secondary:hover { background: var(--rb-turquoise);    color: #fff;                    border-color: var(--rb-turquoise); }
#rb-review-link-generator .rb-btn-ternary:hover  { background: var(--rb-text-muted);    color: #fff;                    border-color: var(--rb-text-muted); }
#rb-review-link-generator .rb-btn-upsell:hover   { background: #f5f5f8;                 color: var(--rb-deep-purple);   border: none; }
#rb-review-link-generator .rb-btn-dl-png:hover   { background: var(--rb-lime);          color: #fff;                    border: none; }
#rb-review-link-generator .rb-btn-dl-svg:hover   { background: var(--rb-bright-purple); color: #fff;                    border-color: var(--rb-bright-purple); }
#rb-review-link-generator .rb-btn-dl-pdf:hover   { background: var(--rb-turquoise);     color: #fff;                    border-color: var(--rb-turquoise); }
#rb-review-link-generator .rb-pill:hover         { background: #f5f5f8; color: var(--rb-bright-purple); border-color: var(--rb-bright-purple); }
#rb-review-link-generator .rb-clear-btn:hover    { background: rgba(0,0,0,.08); color: var(--rb-text); border: none; box-shadow: none; }
#rb-review-link-generator .rb-modal-close:hover  { background: var(--rb-bg);   color: var(--rb-text); border: none; box-shadow: none; }
#rb-review-link-generator .rb-faq-question:hover,
#rb-review-link-generator .rb-faq-question[aria-expanded="true"] { background: none; color: var(--rb-bright-purple); border: none; box-shadow: none; }
#rb-review-link-generator .rb-remove-logo:hover  { background: none; color: #EF4444;               border: none; box-shadow: none; }

/* Link overrides — beat a:hover { color:#336 } (0,1,1) from Hello Elementor */
#rb-review-link-generator a { color: inherit; text-decoration: none; background: transparent; }
#rb-review-link-generator a:hover,
#rb-review-link-generator a:focus,
#rb-review-link-generator a:visited,
#rb-review-link-generator a:active { color: #ffff; text-decoration: none; background: transparent; }

/* Input overrides — (1,1,1) beats input[type=text] { border:1px solid #666; width:100% } (0,1,1) */
#rb-review-link-generator input.rb-search-input {
  border: none;
  width: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  outline: none;
  transition: none;
}
#rb-review-link-generator input.rb-search-input:focus { border: none; outline: none; box-shadow: none; }

#rb-review-link-generator input.rb-link-input { width: auto; border-radius: 10px; transition: none; }
#rb-review-link-generator input.rb-link-input:focus { outline: none; }

#rb-review-link-generator input.rb-email-field {
  border: 2px solid var(--rb-border);
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  transition: none;
}
#rb-review-link-generator textarea.rb-email-field {
  border: 2px solid var(--rb-border);
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
  transition: none;
  resize: vertical;
}
#rb-review-link-generator input.rb-email-field:focus,
#rb-review-link-generator textarea.rb-email-field:focus { border-color: var(--rb-bright-purple); outline: none; box-shadow: none; }

/* ── Focus-visible rings (keyboard navigation) ────────────────── */
/* All interactive elements get a visible purple ring on keyboard focus.
   Elements with custom focus indicators opt out below. */
#rb-review-link-generator *:focus-visible {
  outline: 3px solid var(--rb-bright-purple);
  outline-offset: 2px;
}
/* Search input: focus shown via .rb-input-row:focus-within border+shadow */
#rb-review-link-generator input.rb-search-input:focus-visible { outline: none; }
/* Link input: focus shown via border-color change */
#rb-review-link-generator input.rb-link-input:focus-visible { outline: none; }
/* Email fields: focus shown via border-color: var(--rb-bright-purple) */
#rb-review-link-generator input.rb-email-field:focus-visible,
#rb-review-link-generator textarea.rb-email-field:focus-visible { outline: none; }
/* Modal backdrop is programmatically focusable but not keyboard-navigated */
#rb-review-link-generator .rb-modal-backdrop:focus-visible { outline: none; }

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rb-btn,
  .rb-pill,
  .rb-faq-item,
  .rb-suggestion-item,
  .rb-input-row,
  .rb-file-drop,
  .rb-modal-backdrop {
    transition: none;
  }
  .rb-btn:hover,
  .rb-btn:active { transform: none; }
  .rb-spinner { animation: none; }
}

/* ── Download buttons: single row on mobile ───────────────────── */
@media (max-width: 640px) {
  #rb-review-link-generator .rb-btn-dl {
    font-size: 12px;
    padding: 10px 8px;
  }
}