/* SHOP BAYAR GG — product reviews (shared) */
.sg-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
    line-height: 1;
}
.sg-stars--sm { font-size: .82rem; gap: 1px; }
.sg-stars--md { font-size: 1rem; }
.sg-stars--lg { font-size: 1.15rem; }
.sg-stars .bi-star,
.sg-stars .bi-star-half { color: rgba(245, 158, 11, .35); }
html[data-theme="light"] .sg-stars .bi-star,
html[data-theme="light"] .sg-stars .bi-star-half { color: rgba(180, 83, 9, .28); }

.sg-review-summary {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--muted, rgba(226, 239, 255, .72));
}
.sg-review-summary strong {
    color: var(--text, #f8fbff);
    font-weight: 800;
}
html[data-theme="light"] .sg-review-summary strong { color: var(--text, #0a0b0d); }

.sg-reviews-section { margin-top: 18px; }
.sg-reviews-section .section-title {
    margin-bottom: 14px;
}
.sg-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.sg-reviews-aggregate {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sg-reviews-aggregate-score {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--text, #f8fbff);
    line-height: 1;
}
html[data-theme="light"] .sg-reviews-aggregate-score { color: #0a0b0d; }
.sg-reviews-aggregate-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .78rem;
    color: var(--muted, rgba(226, 239, 255, .72));
    font-weight: 600;
}

.sg-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sg-review-item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line, rgba(148, 197, 255, .16));
    background: rgba(255, 255, 255, .03);
}
html[data-theme="light"] .sg-review-item {
    background: rgba(247, 251, 255, .92);
    border-color: #dbeafe;
}
.sg-review-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.sg-review-item-name {
    font-size: .88rem;
    font-weight: 800;
    color: var(--text, #f8fbff);
    line-height: 1.35;
}
html[data-theme="light"] .sg-review-item-name { color: #0a0b0d; }
.sg-review-item-date {
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted, rgba(226, 239, 255, .72));
    white-space: nowrap;
}
.sg-review-item-comment {
    margin: 0;
    font-size: .86rem;
    line-height: 1.55;
    color: var(--muted, rgba(226, 239, 255, .72));
    word-break: break-word;
}
.sg-reviews-empty {
    text-align: center;
    padding: 28px 18px;
    border-radius: 16px;
    border: 1px dashed var(--line, rgba(148, 197, 255, .16));
    color: var(--muted, rgba(226, 239, 255, .72));
}
.sg-reviews-empty i {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary, #1a86ff);
    opacity: .85;
}
.sg-reviews-empty p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.5;
}

/* Order page review form */
.sg-order-review-form { display: flex; flex-direction: column; gap: 14px; }
.sg-order-review-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.45;
}
.sg-order-review-alert--ok {
    background: rgba(21, 128, 61, .12);
    border: 1px solid rgba(21, 128, 61, .28);
    color: #86efac;
}
html[data-theme="light"] .sg-order-review-alert--ok {
    background: rgba(21, 128, 61, .08);
    color: #15803d;
}
.sg-order-review-alert--err {
    background: rgba(185, 28, 28, .12);
    border: 1px solid rgba(185, 28, 28, .28);
    color: #fca5a5;
}
html[data-theme="light"] .sg-order-review-alert--err {
    background: rgba(185, 28, 28, .06);
    color: #b91c1c;
}
.sg-order-review-field label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--od-muted, rgba(226, 239, 255, .72));
    margin-bottom: 6px;
}
.sg-order-review-field input[type="text"],
.sg-order-review-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--od-line, rgba(148, 197, 255, .16));
    background: rgba(255, 255, 255, .04);
    color: var(--od-text, #f8fbff);
    font: inherit;
    font-size: .88rem;
    resize: vertical;
    min-height: 44px;
}
html[data-theme="light"] .sg-order-review-field input[type="text"],
html[data-theme="light"] .sg-order-review-field textarea {
    background: #fff;
    color: #0f172a;
    border-color: #dbeafe;
}
.sg-order-review-field textarea { min-height: 88px; }
.sg-order-review-field input:focus-visible,
.sg-order-review-field textarea:focus-visible {
    outline: 2px solid #1a86ff;
    outline-offset: 2px;
}

.sg-star-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
    direction: rtl;
    unicode-bidi: bidi-override;
}
.sg-star-picker input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.sg-star-picker label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    cursor: pointer;
    color: rgba(245, 158, 11, .35);
    font-size: 1.35rem;
    border-radius: 10px;
    transition: color .15s, transform .12s;
    -webkit-tap-highlight-color: transparent;
    direction: ltr;
}
.sg-star-picker label:hover,
.sg-star-picker label:hover ~ label,
.sg-star-picker input:checked ~ label {
    color: #f59e0b;
}
.sg-star-picker label:active { transform: scale(.94); }
.sg-order-review-existing {
    padding: 14px 0 2px;
    border-top: 1px solid var(--od-line, rgba(148, 197, 255, .16));
}
.sg-order-review-existing .sg-review-item {
    border: 0;
    padding: 0;
    background: transparent;
}

@media (max-width: 760px) {
    .sg-reviews-head { flex-direction: column; align-items: flex-start; }
    .sg-review-item-top { flex-direction: column; gap: 4px; }
    .sg-review-item-date { white-space: normal; }
    .sg-star-picker label { width: 40px; height: 40px; font-size: 1.2rem; }
}

.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
