.yorkup-rating-piechart {
    border: 1px solid #e1e1e1;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.yorkup-rating-stars {
    font-size: 20px;
    margin-bottom: 5px;
    color: #ffc107;
}

.yorkup-rating-stars .star.full {
    color: #ffc107;
}

.yorkup-rating-stars .star.half {
    color: #ffc107;
}

.yorkup-rating-stars .star.empty {
    color: #e0e0e0;
}

.yorkup-rating-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.yorkup-rating-info .no-ratings-text {
    color: #999;
}

.piechart-container {
    margin: 15px 0;
    text-align: center;
}

.yorkup-rating-piechart.empty-rating .yorkup-rating-stars .star {
    color: #e0e0e0;
}


.yorkup-reviews-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.yorkup-reviews-section .section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}


.reviews-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}


.reviews-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
}

.rating-summary {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #f7f7f7;
}

.rating-summary h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.reviews-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.rating-bars {
    margin-bottom: 20px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.rating-number {
    font-weight: 600;
    font-size: 14px;
    min-width: 12px;
}

.star-icon {
    color: #ffc107;
    font-size: 16px;
    width: 18px;
    height: 18px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

.rating-count {
    font-size: 14px;
    color: #666;
    min-width: 25px;
    text-align: right;
}

.btn-write-review {
    width: 100%;
    margin-top: 10px;
}

.btn-outline {
    background: #fff;
    color: #00a046;
    border: 2px solid #00a046;
}

.btn-outline:hover {
    background: #00a046;
    color: #fff;
}


.reviews-main {
    flex: 1;
    min-width: 0;
}

/* ÃƒÂÃ‚Â¢ÃƒÂÃ‚Â°ÃƒÂÃ‚Â±ÃƒÂÃ‚Â¸ */
.review-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    gap: 10px;
}

.review-tabs .tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.review-tabs .tab-button:hover {
    color: #333;
    background: #f5f5f5;
}

.review-tabs .tab-button.active {
    color: #00a046;
    font-weight: 600;
}

.review-tabs .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #00a046;
}

.review-tabs .tab-count {
    color: #999;
    font-size: 14px;
    margin-left: 5px;
}

.review-tabs .tab-button.active .tab-count {
    color: #00a046;
}

.tabs-content {
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


.review-form-container,
.question-form-container {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.review-form-container h3,
.question-form-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.yorkup-review-form .form-group,
.yorkup-question-form .form-group {
    margin-bottom: 20px;
}

.yorkup-review-form label,
.yorkup-question-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.yorkup-review-form .required,
.yorkup-question-form .required {
    color: #e74c3c;
}

.yorkup-review-form .form-control,
.yorkup-question-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.yorkup-review-form .form-control:focus,
.yorkup-question-form .form-control:focus {
    outline: none;
    border-color: #00a046;
    box-shadow: 0 0 0 3px rgba(0,160,70,0.1);
}

.rating-group {
    margin-bottom: 25px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 36px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
    margin: 0;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

.star-rating input[type="radio"]:checked ~ label {
    color: #ffc107;
}


.admin-fields {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #ffc107;
}

.admin-badge {
    background: #ff9800;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.admin-fields .form-group {
    margin-bottom: 15px;
}

.admin-fields .form-group:last-child {
    margin-bottom: 0;
}


.form-actions {
    margin-top: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #00a046;
    color: #fff;
}

.btn-primary:hover {
    background: #008a3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,160,70,0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}


.reviews-list,
.questions-list {
    margin-top: 30px;
}

.no-reviews,
.no-questions {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 16px;
    background: #f7f7f7;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .reviews-container {
        flex-direction: column;
    }
    
    .reviews-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .yorkup-reviews-section {
        padding: 20px 15px;
    }
    
    .review-tabs .tab-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .review-form-container,
    .question-form-container {
        padding: 20px 15px;
    }
    
    .star-rating {
        font-size: 30px;
    }
    
    .rating-summary {
        padding: 20px;
    }
}


.yorkup-review-form.blurred,
.yorkup-question-form.blurred {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
}

.review-form-container,
.question-form-container {
    position: relative;
}

.auth-required-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    min-width: 300px;
}

.auth-required-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.auth-required-overlay .btn-primary {
    padding: 14px 32px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,160,70,0.3);
}


.review-form-container,
.question-form-container {
    overflow: hidden;
}


.delete-review-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: background 0.3s ease;
}

.delete-review-btn:hover {
    background: #c0392b;
}

.review-item {
    transition: opacity 0.3s ease;
}


.btn-write-action {
    transition: all 0.3s ease;
}

.btn-write-action:active {
    transform: scale(0.98);
}


@media (max-width: 768px) {
    .auth-required-overlay {
        padding: 30px 20px;
        min-width: 250px;
    }
    
    .auth-required-content p {
        font-size: 14px;
    }
}


.review-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.review-author {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 18px;
}

.review-rating .star.filled {
    color: #ffc107;
}

.review-rating .star.empty {
    color: #e0e0e0;
}

.review-date {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-review-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.delete-review-btn:hover {
    background: #cc0000;
}

.review-body {
    line-height: 1.6;
    color: #555;
}

.review-body p {
    margin: 0 0 15px 0;
    font-size: 15px;
}

.review-advantages,
.review-disadvantages {
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.review-advantages {
    background: #f0f9ff;
    border-left: 3px solid #4caf50;
}

.review-advantages strong {
    color: #4caf50;
}

.review-disadvantages {
    background: #fff5f5;
    border-left: 3px solid #f44336;
}

.review-disadvantages strong {
    color: #f44336;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}


@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-date {
        width: 100%;
        justify-content: space-between;
    }
}

.customer-photos-gallery {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.customer-photos-gallery h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.photo-grid-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo-grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.customer-photo-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-show-all-photos {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-show-all-photos:hover {
    background: #f0f0f0;
}

.review-photos {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.review-photo-item {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-photo-item:hover {
    transform: scale(1.1);
}

.review-photo-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.photo-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

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

.remove-photo-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-photo-btn:hover {
    background: rgba(255, 0, 0, 1);
}

.photo-upload-progress {
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    text-align: center;
    margin-top: 10px;
}

.photo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.photo-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.photo-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.photo-modal-close:hover,
.photo-modal-close:focus {
    color: #bbb;
}

.photo-modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.photo-modal-prev,
.photo-modal-next {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

.photo-modal-prev:hover,
.photo-modal-next:hover {
    background: rgba(255, 255, 255, 0.5);
}


.edit-review-btn {
    margin-left: 10px;
    padding: 5px 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.edit-review-btn:hover {
    background: #45a049;
}

.cancel-edit-btn {
    margin-right: 10px;
}


@media (max-width: 1200px) {
    .photos-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
