/*
 * RobloxPets — Post-purchase Trustpilot review toast.
 * Same navy card / Manrope system as magic-recovery, with a Trustpilot-green
 * accent. Anchored bottom-LEFT on desktop so it never collides with the
 * bottom-right recovery toast.
 */

.rp-review-prompt-root {
  position: fixed;
  left: 22px;
  bottom: 96px;
  z-index: 99989;
  width: min(400px, calc(100vw - 28px));
  pointer-events: none;
}

.rp-rp-card {
  pointer-events: auto;
  position: relative;
  display: block;
  padding: 16px 18px 15px;
  border: 1px solid rgba(0, 182, 122, .30);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 38, 80, .97), rgba(8, 18, 40, .98));
  color: #e6edf7;
  box-shadow: 0 28px 64px -18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  font-family: Manrope, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
  animation: rp-rp-in .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rp-rp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rp-rp-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, #00b67a, #4fd1a5);
}

.rp-rp-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}
.rp-rp-stars svg {
  width: 17px; height: 17px;
  fill: #00b67a;
  filter: drop-shadow(0 1px 3px rgba(0,182,122,.5));
}

.rp-rp-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding-right: 26px; /* clear the close button */
}
.rp-rp-copy strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.01em;
}
.rp-rp-copy span {
  color: #9aa9c2;
  font-size: 13px;
  line-height: 1.5;
}
.rp-rp-copy small {
  color: #7ee0b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.rp-rp-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rp-rp-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .18s ease;
}
.rp-rp-btn-primary {
  flex: 1 1 auto;
  background: linear-gradient(180deg, #14c98a, #00b67a);
  color: #05231a;
  box-shadow: 0 14px 30px -12px rgba(0,182,122,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.rp-rp-btn-primary:hover { filter: brightness(1.05); color: #05231a; }

.rp-rp-later {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: #9aa9c2;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.rp-rp-later:hover { color: #cfe0ff; background: rgba(255,255,255,.07); }

.rp-rp-hide {
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #9aa9c2;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.rp-rp-hide:hover { color: #fff; background: rgba(255,255,255,.08); }

@media (max-width: 680px) {
  .rp-review-prompt-root {
    left: 14px;
    right: 14px;
    /* Sit above the mobile chat/cart bar, and clear of the recovery toast. */
    bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
  .rp-rp-actions { flex-wrap: wrap; }
}
