/* =========================================================
   Review Manager — front-end
   Colours, font and radius come from Review General as CSS
   custom properties (see RVM_Assets::dynamic_css).
   .rvm-theme-light / .rvm-theme-dark carry the palette.
   ========================================================= */

.rvm-scope,
.rvm-scope *,
.rvm-scope *::before,
.rvm-scope *::after { box-sizing: border-box; }

.rvm-scope { font-family: var(--rvm-font, inherit); }

.rvm-block-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  color: var(--rvm-text);
}

/* =========================================================
   Template: Top-10 Rating
   ========================================================= */

.rvm-rating { display: flex; flex-direction: column; gap: 14px; }

.rvm-scope .casino-card {
  display: grid;
  grid-template-columns: auto 1fr 1.5fr auto;
  align-items: center;
  gap: 18px;
  position: relative;
  padding: 12px 14px;
  background: var(--rvm-card-bg);
  border: 1px solid var(--rvm-line);
  border-radius: var(--rvm-radius);
  box-shadow: 0 6px 22px rgba(20, 26, 46, .06);
}

.rvm-scope .casino-card.cc-top {
  border: 2px solid var(--rvm-highlight);
  padding-top: 28px;
}

.rvm-scope .cc-top-label {
  position: absolute;
  top: 0; left: 0; z-index: 4;
  padding: 5px 14px;
  background: var(--rvm-highlight);
  color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  border-radius: var(--rvm-radius) 0 var(--rvm-radius-sm) 0;
  white-space: nowrap;
}

.rvm-scope .cc-rank {
  position: absolute;
  top: 8px; left: 8px; z-index: 4;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rvm-card-bg);
  color: var(--rvm-text);
  font-size: 15px; font-weight: 800;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(20, 26, 46, .15);
}

/* Logo */

.rvm-scope .cc-logo-wrap { position: relative; }

.rvm-scope .cc-logo {
  width: 250px;
  min-height: 104px;
  display: flex; align-items: center; justify-content: center;
}

.rvm-scope .cc-logo a { display: inline-flex; line-height: 0; }

.rvm-scope .cc-logo-img {
  width: 250px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.rvm-scope .cc-logo-fallback {
  font-size: 22px; font-weight: 800;
  color: var(--rvm-text);
  text-align: center;
}

/* Rating */

.rvm-scope .cc-rating-label {
  display: block;
  margin-bottom: 6px;
  color: var(--rvm-muted);
  font-size: 15px;
}

.rvm-scope .cc-rating-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}

.rvm-scope .cc-rating-bar {
  width: 150px; height: 12px;
  background: var(--rvm-line);
  border-radius: 8px;
  overflow: hidden;
}

.rvm-scope .cc-rating-fill {
  height: 100%;
  background: var(--rvm-rating);
  border-radius: 8px;
}

.rvm-scope .cc-rating-score {
  font-size: 18px; font-weight: 800;
  color: var(--rvm-text);
}

/* Advantages */

.rvm-scope .cc-features { list-style: none; margin: 0; padding: 0; }

.rvm-scope .cc-features li {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
  color: var(--rvm-text);
  font-size: 13px; font-weight: 600;
}

.rvm-scope .cc-features li::marker { content: ''; }

.rvm-scope .cc-plus {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 12px;
  width: 12px; height: 12px;
  background: var(--rvm-rating);
  color: #fff;
  font-size: 10px; font-weight: 600; line-height: 1;
  border-radius: 50%;
}

/* Bonus */

.rvm-scope .cc-bonus {
  padding: 12px 22px;
  background: var(--rvm-inner-bg);
  border: 1px solid var(--rvm-line);
  border-radius: var(--rvm-radius-sm);
  text-align: center;
}

.rvm-scope .cc-bonus-label {
  display: block;
  margin-bottom: 6px;
  color: var(--rvm-muted);
  font-size: 13px;
}

.rvm-scope .cc-bonus-main {
  margin: 0 0 8px;
  color: var(--rvm-text);
  font-size: 18px; font-weight: 800; line-height: 1.25;
}

.rvm-scope .cc-promo-line {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px;
  width: 100%;
  margin: 0 auto 6px;
  color: var(--rvm-text);
  font-size: 15px; font-weight: 400;
}

.rvm-scope .cc-promo-code {
  color: var(--rvm-promo);
  font-size: 17px; font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Copy button — shared by every template */

.rvm-scope .cc-copy-btn,
.rvm-scope .cc-copy-btn:hover,
.rvm-scope .cc-copy-btn:focus,
.rvm-scope .cc-copy-btn:active,
.rvm-scope .cc-copy-btn:focus-visible {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.rvm-scope .cc-copy-btn {
  padding: 2px;
  color: var(--rvm-text) !important;
  line-height: 0;
  cursor: pointer;
  transition: color .15s;
}

.rvm-scope .cc-copy-btn:hover { color: var(--rvm-promo) !important; }
.rvm-scope .cc-copy-btn svg { width: 18px; height: 18px; }

.rvm-scope .cc-check { display: none; }
.rvm-scope .rvm-copy.copied .cc-icon { display: none; }
.rvm-scope .rvm-copy.copied .cc-check { display: inline; }
.rvm-scope .cc-copy-btn.copied { color: var(--rvm-promo) !important; }

/* T&Cs + tooltip */

.rvm-scope .cc-terms {
  margin: 4px 0 0;
  color: var(--rvm-muted);
  font-size: 11px; font-weight: 400;
}

.rvm-scope .cc-terms-wrap { position: relative; display: inline-block; }

.rvm-scope .cc-terms-link {
  color: var(--rvm-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: help;
}

.rvm-scope .cc-terms-link--plain { cursor: default; }

.rvm-scope .cc-terms-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: min(340px, 80vw);
  padding: 10px 12px;
  background: #141a2e;
  color: #fff;
  font-size: 12px; line-height: 1.45;
  text-align: left;
  border-radius: var(--rvm-radius-sm);
  box-shadow: 0 10px 30px rgba(20, 26, 46, .25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 30;
}

.rvm-scope .cc-terms-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #141a2e;
}

.rvm-scope .cc-terms-wrap:hover .cc-terms-tip,
.rvm-scope .cc-terms-wrap:focus-within .cc-terms-tip,
.rvm-scope .cc-terms-wrap.is-open .cc-terms-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Buttons */

.rvm-scope .cc-actions {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 180px;
}

.rvm-scope .cc-claim-btn,
.rvm-scope .cc-claim-btn:link,
.rvm-scope .cc-claim-btn:visited,
.rvm-scope .cc-claim-btn:hover,
.rvm-scope .cc-claim-btn:active,
.rvm-scope .cc-claim-btn:focus { color: var(--rvm-cta-text) !important; }

.rvm-scope .cc-claim-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  background: var(--rvm-cta);
  font-size: 16px; font-weight: 800;
  text-align: center; text-decoration: none;
  border-radius: var(--rvm-radius-sm);
  transition: filter .15s, transform .15s;
}

.rvm-scope .cc-claim-btn:hover { filter: brightness(.92); transform: translateY(-1px); }

.rvm-scope .cc-review-btn,
.rvm-scope .cc-review-btn:link,
.rvm-scope .cc-review-btn:visited,
.rvm-scope .cc-review-btn:active,
.rvm-scope .cc-review-btn:focus { color: var(--rvm-text) !important; }

.rvm-scope .cc-review-btn {
  padding: 11px 24px;
  border: 1px solid var(--rvm-line);
  border-radius: var(--rvm-radius-sm);
  font-size: 13px; font-weight: 800;
  text-align: center; text-decoration: none;
  transition: border-color .15s, color .15s;
}

.rvm-scope .cc-review-btn:hover {
  border-color: var(--rvm-highlight);
  color: var(--rvm-highlight) !important;
}

.rvm-standalone-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  background: var(--rvm-cta);
  color: var(--rvm-cta-text) !important;
  font-size: 16px; font-weight: 800;
  text-decoration: none;
  border-radius: var(--rvm-radius-sm);
  transition: filter .15s;
}

.rvm-standalone-btn:hover { filter: brightness(.92); }

@media (max-width: 1100px) {
  .rvm-scope .casino-card { grid-template-columns: auto 1fr; gap: 22px; }
  .rvm-scope .cc-bonus { grid-column: 1 / -1; }
  .rvm-scope .cc-actions { grid-column: 1 / -1; flex-direction: row; }
  .rvm-scope .cc-actions a { flex: 1; }
}

@media (max-width: 640px) {
  .rvm-scope .casino-card { grid-template-columns: 1fr; text-align: center; padding: 20px; }
  .rvm-scope .casino-card.cc-top { padding-top: 34px; }
  .rvm-scope .cc-logo-wrap { justify-self: center; }
  .rvm-scope .cc-logo { width: 100%; }
  .rvm-scope .cc-features li { justify-content: center; }
  .rvm-scope .cc-rating-row { justify-content: center; }
  .rvm-scope .cc-actions { flex-direction: column; }
}

/* =========================================================
   Template: Table for Review page
   ========================================================= */

.rvm-rpc {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px 28px;
  background: var(--rvm-card-bg);
  border: 1px solid var(--rvm-line);
  border-radius: var(--rvm-radius-sm);
  box-shadow: 0 2px 8px rgba(33, 36, 38, .1);
}

.rvm-rpc-left {
  flex: 0 0 180px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  text-align: center;
}

.rvm-rpc-logo {
  display: block;
  max-width: 100%;
  max-height: 70px;
  width: auto; height: auto;
  object-fit: contain;
}

.rvm-rpc-name {
  color: var(--rvm-text);
  font-size: 20px; font-weight: 800;
}

.rvm-rpc-rating {
  color: var(--rvm-text);
  font-size: 13px; font-weight: 700; line-height: 1.2;
}

.rvm-rpc-mid {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid var(--rvm-line);
  border-right: 1px solid var(--rvm-line);
}

.rvm-rpc-label {
  display: block;
  margin-bottom: 6px;
  color: var(--rvm-muted);
  font-size: 11px; font-weight: 700; line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rvm-rpc-bonus {
  display: block;
  color: var(--rvm-text);
  font-size: 28px; font-weight: 700; line-height: 1.15;
  letter-spacing: -.02em;
}

.rvm-rpc-bonus p { margin: 0; }

.rvm-rpc-terms {
  display: block;
  margin-top: 8px;
  color: var(--rvm-muted);
  font-size: 12px; line-height: 1.5;
}

.rvm-rpc-right {
  flex: 0 0 220px;
  display: flex; flex-direction: column;
  gap: 10px;
}

.rvm-scope .rvm-rpc-promo,
.rvm-scope .rvm-rpc-promo:hover,
.rvm-scope .rvm-rpc-promo:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  background: var(--rvm-promo-box-bg);
  border: 2px dashed var(--rvm-promo-box-border);
  border-radius: var(--rvm-radius-sm);
  box-shadow: none;
  cursor: pointer;
  text-align: left;
}

.rvm-scope .rvm-rpc-promo:hover { filter: brightness(.97); }

/* The promo box is a <button>, and themes love to restyle button text.
   Colour is forced here — `color` alone loses to `-webkit-text-fill-color`,
   which page builders set for gradient text. */
.rvm-scope .rvm-rpc-promo,
.rvm-scope .rvm-rpc-promo .rvm-rpc-code,
.rvm-scope .rvm-rpc-promo:hover .rvm-rpc-code,
.rvm-scope .rvm-rpc-promo:focus .rvm-rpc-code {
  color: var(--rvm-promo-box-text) !important;
  -webkit-text-fill-color: var(--rvm-promo-box-text);
  opacity: 1;
}

.rvm-scope .rvm-rpc-promo .rvm-rpc-code {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 20px; font-weight: 700; line-height: 1.05;
  letter-spacing: normal;
  text-transform: none;
  word-break: break-word;
}

.rvm-scope .rvm-rpc-icon {
  flex: 0 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--rvm-promo-box-icon) !important;
  -webkit-text-fill-color: currentColor;
  line-height: 0;
  opacity: 1;
  transition: color .15s;
}

.rvm-scope .rvm-rpc-icon svg { width: 22px; height: 22px; }
.rvm-scope .rvm-rpc-promo:hover .rvm-rpc-icon { color: var(--rvm-promo) !important; }
.rvm-scope .rvm-rpc-promo.copied .rvm-rpc-icon { color: var(--rvm-cta) !important; }

.rvm-rpc-cta,
.rvm-rpc-cta:link,
.rvm-rpc-cta:visited,
.rvm-rpc-cta:hover,
.rvm-rpc-cta:focus { color: var(--rvm-cta-text) !important; text-decoration: none; }

.rvm-rpc-cta {
  display: block;
  width: 100%;
  padding: 13px 18px;
  background: var(--rvm-cta);
  border: none;
  border-radius: var(--rvm-radius-sm);
  font-size: 15px; font-weight: 700; line-height: 1.35;
  text-align: center;
  transition: filter .2s ease;
}

.rvm-rpc-cta:hover { filter: brightness(.92); }

.rvm-rpc-visit {
  display: block;
  color: var(--rvm-muted);
  font-size: 11px; line-height: 1.45;
  text-align: center;
}

.rvm-rpc-visit a { color: inherit; text-decoration: underline; }

@media (max-width: 900px) {
  .rvm-rpc { gap: 18px; padding: 20px; }
  .rvm-rpc-left { flex-basis: 150px; }
  .rvm-rpc-mid { padding: 0 18px; }
  .rvm-rpc-bonus { font-size: 24px; }
  .rvm-rpc-right { flex-basis: 200px; }
}

@media (max-width: 767px) {
  .rvm-rpc { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 16px; }
  .rvm-rpc-left, .rvm-rpc-right { flex: 0 0 auto; width: 100%; }
  .rvm-rpc-logo { margin: 0 auto; max-width: 200px; }
  .rvm-rpc-mid {
    padding: 16px 0;
    border-left: 0; border-right: 0;
    border-top: 1px solid var(--rvm-line);
    border-bottom: 1px solid var(--rvm-line);
  }
  .rvm-rpc-bonus { font-size: 22px; }
  .rvm-rpc-terms { font-size: 11px; }
  .rvm-scope .rvm-rpc-promo .rvm-rpc-code { font-size: 18px; }
}

/* =========================================================
   Brand info table — [review_info]
   ========================================================= */

.rvm-info-table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--rvm-card-bg);
  color: var(--rvm-text);
  border: 1px solid var(--rvm-line);
  border-radius: var(--rvm-radius);
  overflow: hidden;
}

.rvm-info-table th,
.rvm-info-table td {
  padding: 12px 18px;
  font-size: 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rvm-line);
}

.rvm-info-table tr:last-child th,
.rvm-info-table tr:last-child td { border-bottom: 0; }

.rvm-info-table th {
  width: 38%;
  background: var(--rvm-inner-bg);
  color: var(--rvm-muted);
  font-weight: 700;
}

.rvm-info-table td { font-weight: 600; }

@media (max-width: 560px) {
  .rvm-info-table th, .rvm-info-table td { display: block; width: 100%; }
  .rvm-info-table th { border-bottom: 0; padding-bottom: 4px; }
}

/* =========================================================
   Pros / Cons — [review_pros_cons]
   ========================================================= */

.rvm-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 24px;
}

.rvm-proscons-col {
  padding: 18px 20px;
  background: var(--rvm-card-bg);
  border: 1px solid var(--rvm-line);
  border-radius: var(--rvm-radius);
}

.rvm-proscons-head {
  margin-bottom: 12px;
  color: var(--rvm-text);
  font-size: 17px; font-weight: 800;
}

.rvm-proscons ul { list-style: none; margin: 0; padding: 0; }

.rvm-proscons li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px;
  color: var(--rvm-text);
  font-size: 15px; font-weight: 600; line-height: 1.45;
}

.rvm-proscons li:last-child { margin-bottom: 0; }

.rvm-mark {
  flex: 0 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1;
}

.rvm-mark--pros { background: var(--rvm-cta); }
.rvm-mark--cons { background: #d9534f; }

@media (max-width: 640px) {
  .rvm-proscons { grid-template-columns: 1fr; }
}

/* =========================================================
   Editor-only diagnostics
   ========================================================= */

.rvm-admin-notice {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px dashed #d63638;
  border-radius: 8px;
  background: #fff5f5;
  color: #d63638;
  font-size: 14px;
}

/* =========================================================
   Templates: Apps and Reviews small
   ========================================================= */

.rvm-grid {
  display: grid;
  grid-template-columns: repeat(var(--rvm-cols, 4), minmax(0, 1fr));
  gap: 16px;
}

.rvm-gcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 16px 18px;
  background: var(--rvm-card-bg);
  border: 1px solid var(--rvm-line);
  border-radius: var(--rvm-radius-sm);
  box-shadow: 0 4px 16px rgba(20, 26, 46, .06);
  text-align: center;
}

.rvm-gcard-logo-link {
  display: inline-flex;
  line-height: 0;
  transition: transform .15s;
}

.rvm-gcard-logo-link:hover { transform: scale(1.04); }

.rvm-gcard-logo {
  width: 100%;
  max-width: 180px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.rvm-gcard-name {
  color: var(--rvm-text);
  font-size: 18px; font-weight: 800;
  line-height: 52px;
}

.rvm-gcard-divider {
  width: 100%;
  height: 1px;
  background: var(--rvm-line);
}

/* Star row: one glyph strip clipped to the score */

.rvm-gcard-rating {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px;
}

.rvm-stars {
  position: relative;
  display: inline-block;
  color: var(--rvm-line);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
}

.rvm-stars::before,
.rvm-stars-fill::before { content: '\2605\2605\2605\2605\2605'; }

.rvm-stars-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--rvm-stars, 0%);
  overflow: hidden;
  color: var(--rvm-promo);
  white-space: nowrap;
}

.rvm-gcard-score {
  color: var(--rvm-text);
  font-size: 13px; font-weight: 800;
}

.rvm-gcard-size {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  color: var(--rvm-muted);
  font-size: 13px; font-weight: 600;
}

.rvm-gcard-size svg { width: 14px; height: 14px; flex: 0 0 14px; }

.rvm-gcard-bonus {
  margin: 0;
  padding: 0 4px;
  color: var(--rvm-text);
  font-size: 15px; font-weight: 600; line-height: 1.45;
}

.rvm-gcard-bonus strong,
.rvm-gcard-bonus b { color: var(--rvm-cta); font-weight: 800; }

.rvm-gcard-btn,
.rvm-gcard-btn:link,
.rvm-gcard-btn:visited,
.rvm-gcard-btn:hover,
.rvm-gcard-btn:active { color: var(--rvm-cta-text) !important; text-decoration: none; }

.rvm-gcard-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 12px 16px;
  background: var(--rvm-cta);
  border-radius: var(--rvm-radius-sm);
  font-size: 14px; font-weight: 800;
  text-align: center;
  transition: filter .15s, transform .15s;
}

.rvm-gcard-btn:hover { filter: brightness(.92); transform: translateY(-2px); }

.rvm-gcard-review,
.rvm-gcard-review:link,
.rvm-gcard-review:visited { color: var(--rvm-muted) !important; }

.rvm-gcard-review {
  font-size: 12px; font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}

.rvm-gcard-review:hover { color: var(--rvm-text) !important; }

/* Tablets cap the grid at three columns. Literal integers only: a math
   function is not allowed as the repeat() count. */
@media (max-width: 900px) {
  .rvm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rvm-grid.rvm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .rvm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rvm-gcard { padding: 16px 12px 14px; gap: 9px; }
  .rvm-gcard-logo { height: 38px; }
  .rvm-gcard-name { font-size: 15px; line-height: 38px; }
  .rvm-stars { font-size: 14px; letter-spacing: 1px; }
  .rvm-gcard-score, .rvm-gcard-size { font-size: 11px; }
  .rvm-gcard-size svg { width: 12px; height: 12px; flex-basis: 12px; }
  .rvm-gcard-bonus { font-size: 13px; }
  .rvm-gcard-btn { font-size: 12px; padding: 10px; }
  .rvm-gcard-review { font-size: 11px; }
}
