/* Review prompt (js/review-prompt.js): bottom-left card on desktop, slim bottom sheet on phones. Not a modal: no overlay. */
.rp-card {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 800;                 /* under the phone sticky bar (900) and the chat widget */
  box-sizing: border-box;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 16px 40px 16px 16px;
  background: #FFFFFF;
  color: #12233D;
  border: 1px solid #DCE1E8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 35, 61, 0.16);
  font-size: 14px;
  line-height: 1.4;
  animation: rp-in 0.2s ease-out;
}

.rp-card[hidden] { display: none; }

@keyframes rp-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

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

.rp-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.rp-text {
  margin: 0 0 12px;
  color: #4B5A70;
}

.rp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.rp-review {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #1E40AF;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}

.rp-review:hover { background: #1B3A9E; }

.rp-no {
  min-height: 40px;
  padding: 0 8px;
  border: none;
  background: none;
  color: #4B5A70;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.rp-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: #4B5A70;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.rp-review:focus-visible,
.rp-no:focus-visible,
.rp-close:focus-visible {
  outline: 2px solid #1E40AF;
  outline-offset: 2px;
}

/* Phones: a slim sheet across the bottom, lifted above the sticky listing bar (--rp-lift is set from the bar's height). */
@media (max-width: 768px) {
  .rp-card {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    bottom: calc(var(--rp-lift, env(safe-area-inset-bottom, 0px)) + 8px);
    padding: 12px 40px 12px 12px;
    border-radius: 12px;
  }

  .rp-text { margin-bottom: 8px; }
}

@media print {
  .rp-card { display: none !important; }
}
