.user-product-reviews-wrapper, .upr-container {
    max-width: 1624px;
    margin: 0 auto;
    padding: 10px;
}
.upr-container{
    display:flex;
    align-items: center;
    justify-content: space-between;
}
.user-product-reviews-stats{
    background: #5D301D;
    padding:3% 0;
    color:#EDE6DD
}
.upr-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: column;
    gap:20px
}

.upr-title {
    font-size: 40px;
    font-weight: 600;
    margin: 0;
}

.upr-share-button {
    padding: 0px 15px !important;
    font-size: 20px;
    font-weight: 300;
    background-color: unset !important;
    border: 1px solid #EDE6DD  !important;;
    color: #EDE6DD  !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* .upr-share-button:hover {
    background-color: #a0522d;
    transform: translateY(-1px);
} */

.upr-stats-bar {
    display: flex;
    justify-content: space-between;
    background-color: #3D2F26;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.upr-feedback-snapshot {
    width:35%;
}

.upr-feedback-snapshot h3, .upr-overall-score h3 {
    font-size: 30px;
    font-weight: 600;
    margin: 0;
}

.upr-snapshot-desc {
    font-size: 14px;
    margin: 0 0 20px 0;
    font-weight: 300;
}

.upr-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.upr-rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upr-rating-label {
    width: 60px;
    flex-shrink: 0;
}

.upr-bar-container {
    flex: 1;
    height: 18px;
    background-color: #804932;
    border-radius: 50px;
    overflow: hidden;
}

.upr-bar-fill {
    height: 100%;
    background-color: #bb8770;
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
}

.upr-rating-count {
    font-size: 14px;
    font-weight: 600;
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

.upr-overall-score {
    display: flex;
    flex-direction: column;
}
.upr-score-container{
    display: flex;
    align-items: center;
    gap: 20px;
}
.upr-overall-score h4 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 10px 0;
}

.upr-score {
    font-size: 50px;
    font-weight: 600;
}

.upr-score-stars {
    font-size: 16px;
    color: #D4A574;
}

.upr-score-stars .upr-star {
    margin-right: 2px;
}

.upr-score-stars .upr-star.filled {
    color: #D4A574;
}

.upr-score-stars .upr-star:not(.filled) {
    color: rgba(255, 255, 255, 0.3);
}

.upr-count,.upr-recommendation  {
    font-size: 14px;
    font-weight: 300;
}


.upr-sort-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.upr-sort-bar label {
    font-size: 14px;
    color: #666;
}

#upr-sort-select {
    border-radius: 6px;
    background-color: unset;
    cursor: pointer;
    width: auto
}

.upr-reviews-list {
    border-radius: 12px;
    margin-bottom: 20px;
}

.upr-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.upr-review-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #bbb;
}

/* .upr-review-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
} */

.upr-reviewer-info-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}
.upr-reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: space-between;
}
.upr-review-date{
    font-weight: 400;
}
.upr-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #8B4513;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.upr-reviewer-name-rating{
    display: flex;
    flex-direction: column;
}
.upr-reviewer-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.upr-review-rating {
    font-size: 14px;
    color: #D4A574;
}

.upr-review-rating .upr-star {
    margin-right: 1px;
}

.upr-review-title {
    font-size: 22px;
    font-weight: 600;
}

.upr-review-content {
    line-height: 1.5;
    margin: 0 0 15px 0;
    font-weight: 400;

}

.upr-review-media {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.upr-review-media-item {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.upr-review-media-item svg{
    height: 30px;
    width: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none
}
.upr-review-media-item img,
.upr-review-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upr-review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
}

.upr-helpful {
    display: flex;
    align-items: center;
    gap: 20px;
}

.upr-like-btn,
.upr-dislike-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.upr-dislike-btn img{
    transform: rotate(180deg);
}
.upr-like-btn img,
.upr-dislike-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.upr-like-btn:hover,
.upr-dislike-btn:hover {
    transform: scale(1.2);
}

.upr-like-btn.active img,
.upr-dislike-btn.active img {
    opacity: 1;
}

.upr-like-count,
.upr-dislike-count {
    min-width: 15px;
    text-align: center;
}

.upr-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upr-pagination button {
    width: 50px;
    height: 50px;
    border: 1px solid #3D2F26 !important;
    border-radius: 6px;
    font-size: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upr-pagination button:hover:not(:disabled) {
}

.upr-pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.upr-page-info {
    font-size: 14px;
    color: #666;
    display:none
}

.upr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.upr-modal.active {
    display: flex;
}

.upr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.upr-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.upr-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background-color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.upr-modal-close:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.upr-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.upr-form-group {
    margin-bottom: 25px;
}

.upr-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.upr-rating-widget {
    display: flex;
    gap: 8px;
}

.upr-rating-widget .upr-star {
    font-size: 36px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.upr-rating-widget .upr-star:hover,
.upr-rating-widget .upr-star.filled {
    color: #D4A574;
}

.upr-form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.upr-form-input:focus {
    outline: none;
    border-color: #8B4513;
}

.upr-form-textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.upr-form-textarea:focus {
    outline: none;
    border-color: #8B4513;
}

.upr-upload-area {
    display: flex;
    gap: 15px;
}

.upr-upload-btn {
    width: 100px;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
}

.upr-upload-btn:hover {
    border-color: #8B4513;
    color: #8B4513;
}

.upr-upload-btn svg {
    width: 32px;
    height: 32px;
}

.upr-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.upr-upload-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.upr-upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upr-upload-preview-item .upr-remove-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upr-terms {
    font-size: 13px;
    color: #666;
}
.upr-terms label{
    display: flex;
    align-items: center;
}
.upr-terms input[type="checkbox"] {
    margin-right: 8px;
}

.upr-terms a {
    color: #8B4513;
    text-decoration: none;
}

.upr-terms a:hover {
    text-decoration: underline;
}

.upr-terms-hint {
    font-size: 12px;
    color: #999;
    margin: 10px 0 0 0;
    line-height: 1.6;
}

.upr-submit-btn {
    width: 100%;
    padding: 8px 50px !important;
    font-size: 16px;
    font-weight: 600;
    color: #EDE6DD !important;
    background-color: #8B4513;
    border: none;
    border-radius: 8px  !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.upr-submit-btn:hover {
    background-color: #a0522d;
}

.upr-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.upr-page-info{
    display:none
}
@media (max-width: 1024px) {
    .upr-container{
        flex-direction: column;
        align-items: start;
        gap:40px;
        padding:20px
    }
    .upr-container .upr-feedback-snapshot{
        width:100%
    }
}
@media (max-width: 768px) {
    .upr-stats-bar {
        flex-direction: column;
        gap: 25px;
    }
    
    .upr-overall-score {
        padding-left: 0;
        border-left: none;
        text-align: left;
    }
    
    .upr-header {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    
    .upr-sort-bar {
        justify-content: flex-start;
    }
    
    .upr-review-item {
        padding: 15px;
    }
    
    .upr-modal-content {
        margin: 10px;
        padding: 25px;
    }
}