/* Review Booster - theme independent styles (scoped with rb- prefix) */
.rb-scope, #rb-modal { --rb-color: #1f9d74; --rb-star: #f5a623; --rb-border: #e5e7eb; --rb-muted: #6b7280; --rb-text: #1f2933; --rb-bar: #17639f; }

/* ---------- Info sections ---------- */
.rb-section { margin: 14px 0; font-size: 13px; line-height: 1.55; color: var(--rb-text); box-sizing: border-box; }
.rb-section-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.rb-section-body > :last-child { margin-bottom: 0; }
.rb-section-body p { margin: 0 0 6px; }
.rb-section a { color: var(--rb-color); text-decoration: underline; }
.rb-ic { display: inline-flex; font-size: 16px; line-height: 1; }
/* Icons: built-in SVG (svg:name / {icon:name}), Font Awesome, pasted SVG, image */
.rb-svg { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; color: var(--rb-color); flex: none; overflow: visible; }
.rb-ic .rb-svg, .rb-ic .rb-ic-svg svg, .rb-ic .rb-ic-img { width: 18px; height: 18px; vertical-align: middle; }
.rb-it-ic .rb-svg, .rb-it-ic .rb-ic-svg svg, .rb-it-ic .rb-ic-img { width: 17px; height: 17px; vertical-align: -3px; }
.rb-ic-svg { display: inline-flex; color: var(--rb-color); }
.rb-ic-svg svg { width: 1.15em; height: 1.15em; }
.rb-ic-img { display: inline-block; width: 1.15em; height: 1.15em; object-fit: contain; vertical-align: -0.2em; }
.rb-fa { color: var(--rb-color); font-size: 1.05em; width: 1.2em; text-align: center; }
.rb-style-chips .rb-it-ic .rb-svg { width: 14px; height: 14px; vertical-align: -2px; }
.rb-style-slim .rb-ic .rb-svg { width: 16px; height: 16px; vertical-align: -3px; }
.rb-style-info { background: #f3f8fd; border: 1px solid #d6e6f5; border-left: 4px solid var(--rb-color); border-radius: 6px; padding: 12px 14px; }
.rb-style-success { background: #effaf5; border: 1px solid #c8eedd; border-left: 4px solid #16a34a; border-radius: 6px; padding: 12px 14px; }
.rb-style-warning { background: #fffaeb; border: 1px solid #fde68a; border-left: 4px solid #d97706; border-radius: 6px; padding: 12px 14px; }
.rb-style-plain { padding: 0; }
.rb-style-card { border: 1px solid var(--rb-border); border-radius: 8px; padding: 14px 16px; background: #fff; }
.rb-style-accordion .rb-acc { border: 1px solid var(--rb-border); border-radius: 6px; background: #fff; }
.rb-style-accordion summary { cursor: pointer; padding: 10px 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; list-style: none; }
.rb-style-accordion summary::-webkit-details-marker { display: none; }
.rb-style-accordion summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--rb-muted); }
.rb-style-accordion details[open] summary::after { content: "\2212"; }
.rb-style-accordion .rb-section-body { padding: 0 14px 12px; }

/* ---------- Stars ---------- */
.rb-stars { position: relative; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; white-space: nowrap; vertical-align: middle; font-family: Arial, sans-serif; }
.rb-stars-base { color: #d1d5db; }
.rb-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--rb-star); }

/* ---------- Reviews block ---------- */
.rb-reviews, .rb-imported { margin: 32px 0 24px; color: var(--rb-text); font-size: 14px; clear: both; }
.rb-h { font-size: 20px; font-weight: 700; margin: 0; color: #111827; line-height: 1.3; }
.rb-h-sm { font-size: 17px; margin-bottom: 12px; }
.rb-rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid var(--rb-color); margin-bottom: 18px; }
.rb-summary { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; padding: 16px; background: #f9fafb; border-radius: 8px; }
.rb-avg { text-align: center; min-width: 140px; }
.rb-avg-num { font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 6px; color: #111827; }
.rb-avg .rb-stars { font-size: 20px; }
.rb-avg-count { font-size: 12px; color: var(--rb-muted); margin-top: 6px; }
.rb-bars { flex: 1; min-width: 220px; max-width: 420px; }
.rb-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 3px 0; color: var(--rb-muted); }
.rb-bar-l { width: 26px; text-align: right; }
.rb-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.rb-bar > span { display: block; height: 100%; background: var(--rb-star); border-radius: 4px; }
.rb-bar-n { width: 28px; }
.rb-item { padding: 16px 0; border-bottom: 1px solid var(--rb-border); }
.rb-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 6px; }
.rb-author { font-weight: 700; }
.rb-date { color: var(--rb-muted); font-size: 12px; margin-left: auto; }
.rb-verified { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 1px 8px; }
.rb-text { line-height: 1.6; word-wrap: break-word; }
.rb-reply { margin-top: 10px; padding: 10px 12px; background: #f3f4f6; border-left: 3px solid var(--rb-color); border-radius: 4px; font-size: 13px; }
.rb-reply-h { font-weight: 700; font-size: 12px; margin-bottom: 4px; color: #374151; }
.rb-empty { padding: 18px; background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 8px; text-align: center; color: #4b5563; }
.rb-empty p { margin: 0; }
.rb-more-wrap { text-align: center; margin-top: 16px; }

/* ---------- Tabs + rating summary (Product Review | Customer Review) ---------- */
.rb-tabs { display: flex; align-items: flex-end; gap: 4px; flex-wrap: wrap; margin-bottom: -14px; }
.rb-has-tabs .rb-rv-head { border-bottom: 1px solid var(--rb-border); align-items: flex-end; padding-bottom: 12px; }
.rb-tab { position: relative; background: none; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 8px 14px 9px 16px; margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: #6b7280; cursor: pointer; font-family: inherit; }
.rb-tab:hover { color: #111827; }
.rb-tab.is-active { color: #111827; background: #fff; border-color: var(--rb-border); margin-bottom: -1px; padding-bottom: 10px; }
.rb-tab.is-active::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 11px; width: 4px; border-radius: 2px; background: var(--rb-color); }
.rb-tab:focus-visible { outline: 2px solid var(--rb-color); outline-offset: 2px; }
.rb-tab-n { font-size: 13px; font-weight: 600; color: var(--rb-muted); }
.rb-pane[hidden] { display: none !important; }
.rb-sum { display: flex; align-items: center; gap: 18px 34px; flex-wrap: wrap; background: none; padding: 4px 0 18px; margin-bottom: 0; border-bottom: 1px solid var(--rb-border); border-radius: 0; }
.rb-score { width: 96px; text-align: center; border-radius: 2px; overflow: hidden; flex: none; }
.rb-score-num { background: var(--rb-color); color: #fff; font-size: 30px; font-weight: 700; line-height: 1; padding: 18px 0; }
.rb-score-of { background: #111; color: #fff; font-size: 13px; padding: 4px 0; }
.rb-sum .rb-bars { flex: 0 1 200px; min-width: 180px; }
.rb-sum .rb-bar-row { margin: 4px 0; font-size: 11px; }
.rb-sum .rb-bar-l { width: 40px; text-align: left; color: #374151; white-space: nowrap; }
.rb-sum .rb-bar { height: 9px; border-radius: 0; background: #d1d5db; }
.rb-sum .rb-bar > span { background: var(--rb-bar); border-radius: 0; }
.rb-sum .rb-bar-n { width: auto; min-width: 36px; font-size: 10px; }
.rb-overall { text-align: center; min-width: 130px; }
.rb-overall-h { font-size: 22px; font-weight: 700; line-height: 1.1; color: #111827; margin-bottom: 4px; max-width: 140px; margin-left: auto; margin-right: auto; }
.rb-stars-lg .rb-stars { font-size: 27px; letter-spacing: 1px; }
.rb-pct { text-align: center; max-width: 170px; }
.rb-pct-num { display: block; font-size: 30px; font-weight: 700; color: #111827; line-height: 1.1; }
.rb-pct-t { display: block; font-size: 12px; line-height: 1.3; color: #374151; }
.rb-store-note { font-size: 12px; color: var(--rb-muted); padding: 8px 0 0; }
.rb-pane .rb-item { padding: 22px 0 20px; border-bottom: 1px solid var(--rb-border); }
.rb-item-stars .rb-stars { font-size: 21px; letter-spacing: 1px; }
.rb-item-meta { font-size: 13px; color: #4b5563; margin: 7px 0 10px; }
.rb-item-meta .rb-date { font-size: 13px; margin: 0; color: inherit; }
.rb-item-meta .rb-author { font-weight: 400; color: inherit; }
.rb-pane .rb-text { font-size: 15px; color: #111827; }
.rb-purchased { font-size: 12px; color: var(--rb-muted); margin-top: 8px; }
.rb-pane .rb-imp-note { margin-top: 12px; }

/* ---------- Compact sections: list / chips / slim ---------- */
.rb-items { list-style: none; margin: 0; padding: 0; }
.rb-it { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.rb-it-ic { flex: none; width: 18px; text-align: center; color: var(--rb-color); font-weight: 700; }
.rb-it-t a { color: inherit; }
.rb-style-list { border: 1px solid var(--rb-border); border-radius: 8px; padding: 12px 14px; background: #fff; }
.rb-style-list .rb-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 16px; }
.rb-style-list .rb-section-title { margin-bottom: 8px; }
.rb-style-chips .rb-items { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-style-chips .rb-it { align-items: center; gap: 5px; font-size: 12px; font-weight: 600; background: #f3f4f6; border: 1px solid var(--rb-border); border-radius: 999px; padding: 4px 11px 4px 8px; }
.rb-style-chips .rb-it-ic { width: auto; }
.rb-style-slim .rb-slim { display: block; font-size: 13px; line-height: 1.5; padding: 8px 12px; background: #f9fafb; border: 1px solid var(--rb-border); border-radius: 6px; }
.rb-style-slim .rb-ic { display: inline; margin-right: 6px; font-size: 14px; vertical-align: -1px; }
.rb-slim-t { margin-right: 6px; }
.rb-slim-t::after { content: " \00b7"; font-weight: 400; color: var(--rb-muted); }
.rb-slim-c, .rb-slim-c * { display: inline; }
.rb-slim-c p { margin: 0; }

/* ---------- Imported feedback ---------- */
.rb-imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rb-imp { border: 1px solid var(--rb-border); border-radius: 8px; padding: 14px; background: #fff; }
.rb-imp-text { margin: 6px 0 8px; line-height: 1.55; font-size: 13px; }
.rb-imp-meta { font-size: 12px; color: var(--rb-muted); }
.rb-imp-note { margin-top: 10px; font-size: 12px; color: var(--rb-muted); }

/* ---------- Buttons ---------- */
.rb-btn { display: inline-block; background: var(--rb-color); color: #fff !important; border: 1px solid var(--rb-color); border-radius: 6px; padding: 9px 18px; font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer; text-decoration: none !important; transition: filter .15s; }
.rb-btn:hover { filter: brightness(.93); }
.rb-btn:disabled { opacity: .6; cursor: wait; }
.rb-btn-ghost { background: #fff; color: #374151 !important; border-color: #d1d5db; }
.rb-rating-line { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 13px; }
.rb-rating-line a { color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Modal ---------- */
body.rb-open { overflow: hidden; }
.rb-modal[hidden] { display: none !important; }
.rb-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; font-size: 14px; color: var(--rb-text); }
.rb-modal-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .55); }
.rb-modal-box { position: relative; background: #fff; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 12px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); box-sizing: border-box; animation: rbIn .18s ease-out; }
@keyframes rbIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.rb-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; line-height: 1; color: #6b7280; cursor: pointer; padding: 4px 8px; }
.rb-modal-product { font-size: 13px; color: var(--rb-muted); margin: 4px 0 16px; padding-right: 20px; }
.rb-field { margin-bottom: 14px; }
.rb-label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.rb-req { color: #dc2626; }
.rb-input { display: block; width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 6px; padding: 9px 11px; font-size: 14px; font-family: inherit; color: inherit; background: #fff; }
.rb-input:focus { outline: none; border-color: var(--rb-color); box-shadow: 0 0 0 3px rgba(31,157,116,.15); }
textarea.rb-input { resize: vertical; min-height: 110px; }
.rb-help { display: block; font-size: 11px; color: var(--rb-muted); margin-top: 4px; }
.rb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.rb-rate-wrap { display: flex; align-items: center; gap: 12px; }
.rb-star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rb-star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rb-star-input label { font-size: 32px; line-height: 1; color: #d1d5db; cursor: pointer; transition: color .1s, transform .1s; margin: 0; font-family: Arial, sans-serif; }
.rb-star-input label:hover, .rb-star-input label:hover ~ label, .rb-star-input input:checked ~ label { color: var(--rb-star); }
.rb-star-input label:hover { transform: scale(1.12); }
.rb-star-input input:focus-visible + label { outline: 2px solid var(--rb-color); outline-offset: 2px; border-radius: 3px; }
.rb-rate-text { font-size: 13px; font-weight: 600; color: #92400e; }
.rb-msg { display: none; padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; }
.rb-msg.rb-err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.rb-msg.rb-ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.rb-actions { display: flex; justify-content: flex-end; gap: 8px; }
.rb-thanks { text-align: center; padding: 20px 4px 4px; }
.rb-thanks-ic { font-size: 44px; color: var(--rb-color); line-height: 1; margin-bottom: 8px; }

/* ---------- Order / unsubscribe pages ---------- */
.rb-order { max-width: 760px; margin: 10px auto 40px; color: var(--rb-text); font-size: 14px; }
.rb-order .rb-h { font-size: 26px; margin-bottom: 10px; }
.rb-order-intro { font-size: 15px; color: #374151; margin-bottom: 20px; }
.rb-order-item { display: flex; gap: 18px; border: 1px solid var(--rb-border); border-radius: 10px; padding: 18px; margin-bottom: 16px; background: #fff; }
.rb-order-img img { border-radius: 8px; display: block; max-width: 120px; height: auto; }
.rb-order-main { flex: 1; min-width: 0; }
.rb-order-name { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; color: #111827; }
.rb-done { color: #047857; font-weight: 600; padding: 8px 0; }
.rb-google-box { text-align: center; border: 1px solid var(--rb-border); background: #f9fafb; border-radius: 10px; padding: 22px; margin-top: 22px; }
.rb-test-banner { margin: 0 0 16px; padding: 10px 14px; border: 1px dashed #d97706; background: #fffaeb; color: #92400e; border-radius: 8px; font-size: 13px; }
.rb-google-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
@media (max-width: 600px) {
  .rb-order-item { flex-direction: column; }
  .rb-summary { gap: 16px; }
  .rb-date { margin-left: 0; width: 100%; }
  .rb-item-meta .rb-date { width: auto; }
  .rb-tabs { width: 100%; flex-wrap: nowrap; }
  .rb-tab { flex: 1 1 0; min-width: 0; font-size: 15px; padding: 8px 6px 9px 14px; text-align: left; }
  .rb-tab-n { display: block; font-size: 12px; }
  .rb-has-tabs .rb-rv-head .rb-btn { order: -1; margin-left: auto; }
  .rb-sum { justify-content: center; gap: 16px 24px; }
  .rb-style-list .rb-items { grid-template-columns: 1fr; }
  .rb-modal-box { padding: 18px; }
}
