/* Professional product reviews panel by SR */
.pr-panel { max-width: 920px; }
.pr-summary {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: center;
    padding: 22px 24px;
    margin-bottom: 28px;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.pr-summary-score { text-align: center; }
.pr-avg {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    color: #1a1f36;
    letter-spacing: -0.5px;
}
.pr-avg-stars { margin: 8px 0 6px; }
.pr-star {
    color: #d7dbe5;
    font-size: 16px;
    letter-spacing: 1px;
}
.pr-star.is-on,
.pr-star.is-half { color: #f5b301; }
.pr-avg-meta {
    font-size: 13px;
    color: #6b7280;
}
.pr-bar-row {
    display: grid;
    grid-template-columns: 42px 1fr 28px;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.pr-bar-row:last-child { margin-bottom: 0; }
.pr-bar-label {
    font-size: 13px;
    color: #4b5563;
    white-space: nowrap;
}
.pr-bar-track {
    height: 8px;
    background: #eef1f6;
    border-radius: 999px;
    overflow: hidden;
}
.pr-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f5b301, #ffc933);
    border-radius: 999px;
}
.pr-bar-count {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}
.pr-list { display: flex; flex-direction: column; gap: 0; }
.pr-card {
    padding: 22px 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #edf0f5 !important;
}
.pr-card:last-child { border-bottom: 0 !important; }
.pr-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px !important;
    flex-wrap: wrap;
}
.pr-user { display: flex; align-items: center; gap: 12px; }
.pr-avatar {
    width: 48px !important;
    height: 48px !important;
    margin-right: 0 !important;
    border-radius: 50%;
    overflow: hidden;
    background: #e8eef9;
    flex-shrink: 0;
}
.pr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.pr-avatar-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #1554C0;
    background: #e8eef9;
}
.pr-user-meta h4 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    color: #1a1f36;
}
.pr-user-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
}
.pr-verified {
    display: inline-flex;
    align-items: center;
    color: #148f30;
    font-weight: 600;
    font-size: 12px;
}
.pr-dot { color: #c5cad6; }
.pr-card-rating { text-align: right; }
.pr-stars {
    justify-content: flex-end;
    margin-bottom: 4px;
}
.pr-rating-text {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}
.pr-text {
    font-size: 15px;
    line-height: 1.65;
    color: #374151 !important;
    margin-bottom: 14px !important;
}
.pr-photos {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch !important;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pr-photos li {
    margin: 0 !important;
    width: 88px;
    height: 88px;
}
.pr-photos li figure,
.pr-photos li a {
    display: block;
    width: 100%;
    height: 100%;
}
.pr-photos img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e7e9f0;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pr-photos img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21, 84, 192, 0.12);
}
.pr-seller-reply {
    margin: 16px 0 0 !important;
    margin-left: 0 !important;
    padding: 14px 16px;
    border-left: 3px solid #1554C0;
    background: #f5f8fd;
    border-radius: 0 10px 10px 0;
}
.pr-seller-reply-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}
.pr-seller-reply-head strong { color: #1554C0; }
.pr-seller-reply-head span { color: #6b7280; }
.pr-seller-reply p {
    margin: 0 !important;
    font-size: 14px;
    color: #374151 !important;
}
.pr-empty {
    text-align: center;
    padding: 42px 20px;
    border: 1px dashed #d7dde8;
    border-radius: 12px;
    background: #fafbfd;
    margin-bottom: 20px;
}
.pr-empty-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7e6;
    color: #f5b301;
    font-size: 24px;
}
.pr-empty h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #1a1f36;
}
.pr-empty p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}
.pr-write {
    padding: 24px;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    background: #fff;
}
.pr-write-head h3 {
    font-size: 20px !important;
    margin-bottom: 4px !important;
    color: #1a1f36;
}
.pr-write-head p {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
}
.pr-optional {
    color: #9aa3b2;
    font-weight: 400;
    font-size: 13px;
}
.pr-locked {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #f5f8fd;
    border: 1px solid #d9e4f7;
}
.pr-locked strong {
    display: block;
    color: #1554C0;
    margin-bottom: 4px;
}
.pr-locked p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}
.pr-panel .rating-stars {
    display: flex;
    gap: 8px;
    font-size: 30px;
    cursor: pointer;
}
.pr-panel .rating-write .star { color: #d3d3d3 !important; }
.pr-panel .rating-write .star.active { color: #ffb400 !important; }
.pr-panel .form-group textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
}
.pr-panel .form-group textarea:focus {
    outline: none;
    border-color: #1554C0;
    box-shadow: 0 0 0 3px rgba(21, 84, 192, 0.12);
}
.pr-panel .upload-wrapper { margin-top: 15px; }
.pr-panel .upload-box {
    width: 120px;
    height: 120px;
    border: 2px dashed #ccd3e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background: #fafbfd;
    transition: border-color .2s ease, background .2s ease;
}
.pr-panel .upload-box:hover {
    border-color: #1554C0;
    background: #f5f8fd;
}
.pr-panel .upload-content {
    text-align: center;
    font-size: 14px;
    color: #5b6475;
}
.pr-panel .image-preview-list {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.pr-panel .preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}
.pr-panel .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e7e9f0;
}
.pr-panel .remove-img {
    position: absolute;
    top: -2px;
    right: -3px;
    background: #ff3b3b;
    color: #fff;
    width: 20px;
    height: 17px;
    font-size: 14px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rating li i.inactive {
    color: #ccc !important;
    opacity: 0.5;
}
@media (max-width: 767px) {
    .pr-summary {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }
    .pr-card-head { flex-direction: column; }
    .pr-card-rating { text-align: left; }
    .pr-stars { justify-content: flex-start; }
    .pr-photos li { width: 72px; height: 72px; }
    .pr-write { padding: 18px; }
    .pr-panel .upload-box {
        width: 120px !important;
        height: 120px !important;
    }
}
