/* Atsiliepimai iš svetainės: įvertinimo langas, priminimas, mygtukai užsakymuose (js/app.js) */

/* ---------- Langas ---------- */
.review-modal { width: min(460px, calc(100% - 24px)); border-radius: 20px; }
.review-modal .modal-close { top: 12px; right: 12px; border-radius: 999px; }
.rv-form, .rv-done { display: grid; gap: 14px; padding: 28px 24px 24px; }
.rv-form[hidden], .rv-done[hidden] { display: none; }
.rv-form .kicker { margin: 0; }
.rv-form h2, .rv-done h2 { margin: 0; font-size: clamp(24px, 6vw, 30px); font-weight: 800; line-height: 1.15; }
.rv-order { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.rv-stars { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.rv-stars button {
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
  background: none; border: 0; border-radius: 12px; color: #4a4a43; cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}
.rv-stars .icon { width: 44px; height: 44px; fill: currentColor; stroke: currentColor; }
.rv-stars button.is-on { color: var(--brand); }
.rv-stars button:hover { transform: scale(1.12); }
.rv-stars button:active { transform: scale(.94); }
.rv-stars button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rv-stars.pop button.is-on { animation: rv-pop .35s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--n, 0) * 40ms); }
@keyframes rv-pop { from { transform: scale(.6); } }
.rv-star-label { min-height: 20px; margin: -6px 0 0; text-align: center; font-weight: 700; color: var(--brand); font-size: 14px; }

.rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chips[hidden] { display: none; }
.rv-chip {
  min-height: 36px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; font-weight: 600;
}
.rv-chip:hover { border-color: var(--brand); }
.rv-chip[aria-pressed="true"] { background: rgba(244, 226, 59, .14); border-color: var(--brand); color: var(--brand); }
.review-modal .field textarea { min-height: 76px; }

.rv-done { text-align: center; justify-items: center; padding-top: 36px; }
.rv-done p { margin: 0; color: var(--muted); }
.rv-done .rv-done-stars { font-size: 30px; letter-spacing: 4px; color: var(--brand); }

/* ---------- Mygtukas „Įvertinti“ užsakymų sąraše ---------- */
.my-order-review {
  width: 100%; margin-top: 6px; min-height: 40px; padding: 8px 12px; cursor: pointer;
  background: rgba(244, 226, 59, .1); border: 1px dashed rgba(244, 226, 59, .55); border-radius: var(--radius);
  color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; text-align: left;
}
.my-order-review:hover { background: rgba(244, 226, 59, .18); }
.my-order-review.is-done { background: none; border-style: solid; border-color: var(--line); color: var(--muted); font-weight: 600; }

/* ---------- Priminimas ---------- */
.rv-nudge {
  position: fixed; left: 16px; bottom: 16px; z-index: 900; width: min(340px, calc(100% - 32px));
  display: grid; gap: 8px; padding: 16px 44px 14px 16px;
  background: var(--surface); border: 1px solid rgba(244, 226, 59, .45); border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  animation: rv-nudge-in .45s cubic-bezier(.2, 1.3, .4, 1) both;
}
.rv-nudge[hidden] { display: none; }
@keyframes rv-nudge-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.rv-nudge-title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.rv-nudge-title span { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.rv-nudge-stars { display: flex; gap: 2px; }
.rv-nudge-stars button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: none; border: 0; border-radius: 10px; color: #55554d;
}
.rv-nudge-stars .icon { width: 32px; height: 32px; fill: currentColor; stroke: currentColor; }
.rv-nudge-stars button.is-on { color: var(--brand); }
.rv-nudge-stars button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.rv-nudge-close {
  position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  background: none; border: 0; border-radius: 999px; color: var(--muted); cursor: pointer;
}
.rv-nudge-close:hover { color: var(--text); }
.rv-nudge-close .icon { width: 18px; height: 18px; }
@media (max-width: 560px) {
  /* telefone – virš pokalbio mygtuko */
  .rv-nudge { left: 12px; right: 12px; bottom: 88px; width: auto; }
}

/* ---------- Svetainės atsiliepimas juostoje ---------- */
.stars .icon.off { fill: none; opacity: .5; }
.rep-author .rep-site { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.rep-product { margin: 0; font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .rv-nudge, .rv-stars.pop button.is-on { animation: none; }
}
