/* Reviews v2 (/atsiliepimai + /atsiliepimai/{hash} form) - page additions on top of css/v3/home.css. Created 2026-09-23. */
.rv, .rf { padding-bottom: 48px; }

/* breadcrumbs */
.rv-crumbs { padding-top: 12px; font-size: 13px; }
.v2 .rv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.rv-crumbs ol::-webkit-scrollbar { display: none; }
.rv-crumbs li { display: inline-flex; align-items: center; color: var(--muted); }
.rv-crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 8px; border-right: 1.5px solid #b3bcc3; border-top: 1.5px solid #b3bcc3; transform: rotate(45deg); flex: none; }
.rv-crumbs a, .rv-crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
.rv-crumbs a { color: var(--ink-soft); font-weight: 600; }
.rv-crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* head */
.rv-head { padding: 4px 0 20px; max-width: 70ch; }
.rv-head h1 { font-size: clamp(26px, 6vw, 38px); font-weight: 800; }
.rv-intro { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.rv-note { display: inline-block; margin: 12px 0 0; padding: 6px 12px; border-radius: var(--pill); background: var(--sky); color: var(--ink-soft); font-size: 13px; font-weight: 700; }

/* list (masonry-like columns keep short and long reviews tidy) */
.v2 ul.rv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rv-card {
    display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
}
.rv-card:focus { outline: none; }
.rv-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.rv-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-words { font-weight: 800; font-size: 14px; color: var(--ink); }
.rv-text { margin: 0; }
.rv-text p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.rv-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.rv-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; color: var(--ink); }
.rv-tone-sky { background: var(--sky); }
.rv-tone-butter { background: var(--butter); }
.rv-tone-mint { background: var(--mint); }
.rv-tone-blush { background: var(--blush); }
.rv-tone-lilac { background: var(--lilac); }
.rv-tone-peach { background: var(--peach); }
.rv-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rv-name { font-weight: 800; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.rv-date { font-size: 13px; color: var(--muted); }
.rv-product {
    display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px; margin: 2px -4px -4px;
    border-radius: var(--r-sm); background: var(--bg); color: var(--ink-soft) !important; font-size: 13px; font-weight: 700; line-height: 1.3;
}
.rv-product:hover { background: var(--sky); text-decoration: none !important; color: var(--ink) !important; }
.rv-product img { flex: none; width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; }
.rv-product > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rv-new { animation: rv-in .35s ease both; }
@keyframes rv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rv-more { display: flex; justify-content: center; margin-top: 24px; }
.rv-empty { padding: 24px; border-radius: var(--r); background: var(--butter); }

/* ---------- review form ---------- */
.rf-wrap { max-width: 860px; }
.rf-head { text-align: center; padding: 28px 0 20px; }
.rf-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--butter); color: var(--accent); margin-bottom: 10px; }
.rf-head h1 { font-size: clamp(26px, 6vw, 36px); font-weight: 800; }
.rf-head p { margin: 10px auto 0; max-width: 62ch; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.rf-head b { color: var(--ink); }
.v2 ul.rf-list { display: flex; flex-direction: column; gap: 12px; }
.rf-item { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.rf-prod { display: flex; gap: 14px; align-items: flex-start; }
.rf-prod img { flex: none; width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.rf-prod-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rf-prod-title { display: flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--ink) !important; line-height: 1.3; overflow-wrap: anywhere; }
.v2 ul.rf-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ink-soft); }
.rf-price { font-weight: 800; color: var(--ink); }
.rf-open { margin-top: 14px; width: 100%; }
.rf-done { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--mint); color: #176b3a; font-weight: 700; }
.rf-form { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 14px; }
.rf-rate { margin: 0; padding: 0; border: 0; min-width: 0; }
.rf-rate legend, .rf-field label { padding: 0; margin-bottom: 6px; font-weight: 800; font-size: 15px; color: var(--ink); }
.rf-req { color: var(--danger); }
.rf-stars { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.rf-stars label { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; color: #8c959d; cursor: pointer; transition: color .1s ease, transform .1s ease; }
.rf-stars label:hover { transform: scale(1.08); }
.rf-stars label.is-on { color: var(--accent); }
.rf-stars:has(input[value="1"]:checked) label:nth-of-type(-n+1),
.rf-stars:has(input[value="2"]:checked) label:nth-of-type(-n+2),
.rf-stars:has(input[value="3"]:checked) label:nth-of-type(-n+3),
.rf-stars:has(input[value="4"]:checked) label:nth-of-type(-n+4),
.rf-stars:has(input[value="5"]:checked) label:nth-of-type(-n+5) { color: var(--accent); }
.rf-stars input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 1px; }
.rf-rate-out { margin-left: 8px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.rf-row { display: grid; gap: 14px; }
.rf-field { display: flex; flex-direction: column; }
.rf-field input, .rf-field textarea {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #8c959d; border-radius: var(--r-sm);
    background: #fff; font: 600 16px var(--font); color: var(--ink);
}
.rf-field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.rf-field input:focus, .rf-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 174, 239, .2); }
.rf-field [aria-invalid="true"] { border-color: var(--danger); }
.rf-msg { margin: 0; color: var(--danger); font-weight: 700; }
.rf-msg:empty { display: none; }
.rf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rf-actions .btn { flex: 1 1 160px; }
.rf-legend { margin: 0; font-size: 13px; color: var(--muted); }
.rf-thanks { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--mint); color: var(--ink); }
.rf-thanks:focus { outline: none; }
.rf-thanks p { margin: 0; }
.rf-shop { display: flex; justify-content: center; margin-top: 28px; }

@media (min-width: 640px) {
    .v2 ul.rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .rf-row { grid-template-columns: 1fr 1fr; }
    .rf-open { width: auto; }
    .rf-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
    .v2 ul.rv-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .rv-card { padding: 20px; }
    .rf-item { padding: 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .rv-new { animation: none; }
    .rf-stars label { transition: none; }
    .rf-stars label:hover { transform: none; }
}
