/* Fotoğraflı yorumlar — görünüm temadan (--ext-*) */
.ext-rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ext-rv-stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; color: #d4d4d8; vertical-align: middle; }
.ext-rv-stars__on { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); overflow: hidden; white-space: nowrap; color: #f59e0b; }

.ext-rv-sum { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; font-size: 14px; color: var(--ext-muted, #6b7280); text-decoration: none; border-radius: 6px; }
.ext-rv-sum strong { color: var(--ext-text, #111); }
@media (hover: hover) { .ext-rv-sum:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; } }
.ext-rv-sum:focus-visible { outline: 2px solid var(--ext-primary, #111); outline-offset: 3px; }

.ext-rv { padding: 40px 0; color: var(--ext-text, #111); scroll-margin-top: 80px; }
.ext-rv__wrap { width: 100%; max-width: var(--ext-container, 1200px); margin: 0 auto; padding-inline: var(--ext-pad, 16px); }
/* başlık hizası temadan (Odak ortalar); yorum yokken tek satır: not + düğme, geniş ekranda boş kenar çubuğu kalmaz */
.ext-rv__title { text-align: var(--ext-section-align, left); }
.ext-rv--empty .ext-rv__grid { grid-template-columns: 1fr; }
.ext-rv--empty .ext-rv__score { position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; max-width: 720px; justify-self: var(--ext-section-justify, start); width: 100%; }
.ext-rv--empty .ext-rv__empty { margin: 0; }
.ext-rv--empty .ext-rv__write { width: auto; padding-inline: 24px; }
.ext-rv--empty .ext-rv__hint { flex-basis: 100%; }
.ext-rv--empty .ext-rv__main:empty, .ext-rv--empty .ext-rv__main:not(:has(*:not(:empty))) { display: none; }
.ext-rv .ext-rv__title { margin: 0 0 20px; font: var(--ext-title-weight, 700) clamp(22px, 4vw, 30px)/1.2 var(--ext-font-head, inherit); }
.ext-rv__grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .ext-rv__grid { grid-template-columns: 300px 1fr; gap: 40px; align-items: start; } .ext-rv__score { position: sticky; top: 90px; } }
.ext-rv__score { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--ext-line, #e5e7eb); border-radius: var(--ext-radius, 14px); background: var(--ext-surface, #fff); }
.ext-rv__score .ext-rv-stars { font-size: 20px; }
.ext-rv__avg { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.ext-rv__avg strong { font: 800 44px/1 var(--ext-font-head, inherit); }
.ext-rv__avg span, .ext-rv__count, .ext-rv__hint { color: var(--ext-muted, #6b7280); font-size: 14px; margin: 0; }
.ext-rv__hint { font-size: 12.5px; }
.ext-rv__empty { margin: 0 0 6px; color: var(--ext-muted, #6b7280); }
.ext-rv__dist { display: grid; gap: 6px; margin: 6px 0 8px; padding: 0; list-style: none; font-size: 13px; }
.ext-rv__dist li { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 8px; }
.ext-rv__bar { height: 8px; border-radius: 99px; background: var(--ext-soft, #f1f5f9); overflow: hidden; }
.ext-rv__bar span { display: block; height: 100%; border-radius: inherit; background: #f59e0b; }
.ext-rv__n { text-align: right; color: var(--ext-muted, #6b7280); }
.ext-rv__write { width: 100%; }

.ext-rv__chips { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.ext-rv-chip { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ext-line, #e5e7eb); background: var(--ext-surface, #fff); color: inherit; font: 600 14px/1 var(--ext-font-body, inherit); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.ext-rv-chip.is-active { border-color: var(--ext-primary, #111); background: var(--ext-primary, #111); color: var(--ext-on-primary, #fff); }
@media (hover: hover) { .ext-rv-chip:hover:not(.is-active) { border-color: var(--ext-muted, #9ca3af); } }
.ext-rv-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ext-primary, #111) 25%, transparent); }
.ext-rv-chip:active { transform: scale(.97); }

.ext-rv__list { display: grid; gap: 12px; }
.ext-rv__list.is-busy { opacity: .5; transition: opacity .2s ease; }
.ext-rv-item { padding: 16px; border: 1px solid var(--ext-line, #e5e7eb); border-radius: var(--ext-radius, 14px); background: var(--ext-surface, #fff); animation: ext-rv-in .3s ease both; }
@keyframes ext-rv-in { from { opacity: 0; transform: translateY(6px); } }
.ext-rv-item__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.ext-rv-item__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ext-soft, #f1f5f9); font-weight: 700; color: var(--ext-primary, #111); }
.ext-rv-item__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.ext-rv-item__badge { font-size: 12px; font-weight: 600; color: #15803d; }
.ext-rv-item__date { font-size: 12.5px; color: var(--ext-muted, #6b7280); white-space: nowrap; }
.ext-rv-item__rating { margin: 10px 0 6px; }
.ext-rv-item__body { margin: 0; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.ext-rv-item__photos { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ext-rv-thumb { width: 88px; height: 88px; padding: 0; border: 0; border-radius: var(--ext-radius-sm, 10px); overflow: hidden; cursor: zoom-in; background: var(--ext-soft, #f1f5f9); transition: transform .15s ease, box-shadow .15s ease; }
.ext-rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) { .ext-rv-thumb:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, .15); } }
.ext-rv-thumb:focus-visible { outline: 3px solid var(--ext-primary, #111); outline-offset: 2px; }
.ext-rv-item__reply { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--ext-primary, #111); border-radius: 0 var(--ext-radius-sm, 10px) var(--ext-radius-sm, 10px) 0; background: var(--ext-soft, #f6f7f9); font-size: 14px; }
.ext-rv-item__reply p { margin: 4px 0 0; white-space: pre-line; }
.ext-rv__more { width: 100%; margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ext-rv-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ext-rv-spin .7s linear infinite; }
.is-loading > .ext-rv-spin { display: inline-block; }
@keyframes ext-rv-spin { to { transform: rotate(360deg); } }

/* form */
.ext-rv-form { display: grid; gap: 14px; }
.ext-rv-form__product { margin: 0; font-size: 14px; color: var(--ext-muted, #6b7280); }
.ext-rv-rate { margin: 0; padding: 0; border: 0; }
.ext-rv-rate legend, .ext-rv-form__field > label, .ext-rv-form__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; padding: 0; }
.ext-rv-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.ext-rv-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ext-rv-rate__stars label { display: grid; place-items: center; width: 46px; height: 46px; font-size: 32px; line-height: 1; color: #d4d4d8; cursor: pointer; border-radius: 10px; transition: color .12s ease, transform .12s ease; }
.ext-rv-rate__stars input:checked ~ label { color: #f59e0b; }
@media (hover: hover) {
    .ext-rv-rate__stars label:hover, .ext-rv-rate__stars label:hover ~ label { color: #fbbf24; }
    .ext-rv-rate__stars label:hover { transform: scale(1.1); }
}
.ext-rv-rate__stars input:focus-visible + label { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ext-primary, #111) 25%, transparent); }
.ext-rv-rate__stars label:active { transform: scale(.92); }
.ext-rv-input { width: 100%; min-height: 48px; padding: 11px 13px; font: 400 16px/1.4 var(--ext-font-body, inherit); color: var(--ext-text, #111); background: var(--ext-field, #fff); border: 1.5px solid var(--ext-line, #d1d5db); border-radius: var(--ext-radius-sm, 10px); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
textarea.ext-rv-input { resize: vertical; min-height: 110px; }
.ext-rv-input::placeholder { color: var(--ext-muted, #9ca3af); opacity: .8; }
.ext-rv-input:focus { border-color: var(--ext-primary, #111); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ext-primary, #111) 18%, transparent); }
.is-invalid .ext-rv-input { border-color: #dc2626; }
.ext-rv-form__note, .ext-rv-form__opt { font-size: 12.5px; font-weight: 400; color: var(--ext-muted, #6b7280); margin: 4px 0 0; }
.ext-rv-form__err { margin: 4px 0 0; font-size: 12.5px; color: #b91c1c; }
.ext-rv-form__err:empty { display: none; }
.ext-rv-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.ext-rv-add, .ext-rv-prev { position: relative; width: 88px; height: 88px; border-radius: var(--ext-radius-sm, 10px); }
.ext-rv-add { display: grid; place-content: center; justify-items: center; gap: 2px; border: 1.5px dashed var(--ext-line, #cbd5e1); color: var(--ext-muted, #6b7280); font-size: 12px; cursor: pointer; text-align: center; transition: border-color .15s ease, background-color .15s ease; }
.ext-rv-add span:first-of-type { font-size: 22px; line-height: 1; }
.ext-rv-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (hover: hover) { .ext-rv-add:hover { border-color: var(--ext-primary, #111); background: var(--ext-soft, #f8fafc); } }
.ext-rv-add:focus-within { border-color: var(--ext-primary, #111); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ext-primary, #111) 18%, transparent); }
.ext-rv-prev img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.ext-rv-prev button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ext-field, #fff); background: #111; color: #fff; font-size: 13px; cursor: pointer; display: grid; place-items: center; }
.ext-rv-prev button:focus-visible { outline: 2px solid var(--ext-primary, #111); outline-offset: 2px; }
.ext-rv-form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ext-rv-form__alert { padding: 10px 12px; border-radius: var(--ext-radius-sm, 10px); background: #fef2f2; color: #991b1b; font-size: 14px; }
.ext-rv-form__alert.is-ok { background: #f0fdf4; color: #166534; }
.ext-rv-form__submit { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ext-rv-form__submit:disabled { cursor: not-allowed; opacity: .7; }

/* büyütülmüş fotoğraf */
.ext-rv-lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1000px); max-height: 90svh; overflow: visible; }
.ext-rv-lightbox::backdrop { background: rgba(10, 10, 12, .86); }
.ext-rv-lightbox img { display: block; max-width: min(92vw, 1000px); max-height: 86svh; border-radius: 12px; }
.ext-rv-lightbox__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 18px; cursor: pointer; }
.ext-rv-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) { .ext-rv-lightbox__close:hover { background: rgba(255, 255, 255, .28); } }
@media (prefers-reduced-motion: reduce) {
    .ext-rv-item { animation: none; }
    .ext-rv-thumb, .ext-rv-rate__stars label, .ext-rv-chip, .ext-rv-input { transition: none; }
}
