/* Review Form Styles */
.src-review-form-wrapper {
    max-width: 600px;
    margin: 30px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.src-review-form-wrapper h3 {
    margin-top: 0;
    color: #333;
}

.src-form-group {
    margin-bottom: 20px;
}

.src-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.src-form-group input[type="text"],
.src-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.src-form-group textarea {
    resize: vertical;
}

.src-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Star Rating Input */
.src-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.src-star-rating input {
    display: none;
}

.src-star-rating label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.src-star-rating input:checked ~ label,
.src-star-rating label:hover,
.src-star-rating label:hover ~ label {
    color: #FBBC04;
}

/* Submit Button */
.src-submit-btn {
    background: #1a73e8;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 500;
}

.src-submit-btn:hover {
    background: #1557b0;
}

.src-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Open Popup Button */
.src-open-popup-btn {
    background: white;
    color: #1a73e8;
    padding: 8px 20px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.src-open-popup-btn:hover {
    background: #f8f9fa;
    border-color: #c6c6c6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Popup Modal */
.src-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.src-popup-overlay.active {
    display: flex;
}

.src-popup-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.src-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.src-popup-close:hover {
    color: #333;
}

/* Messages */
.src-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.src-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.src-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Review Stats - Google Style */
.src-review-stats {
    margin: 20px 0;
    padding: 0;
    background: transparent;
}

.src-average-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.src-rating-stars-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.src-rating-number {
    font-size: 16px;
    font-weight: 400;
    color: #5f6368;
}

.src-stars {
    display: flex;
    align-items: center;
    font-size: 16px;
    gap: 2px;
}

.src-star {
    color: #FBBC04;
}

.src-star-full {
    color: #FBBC04;
}

.src-star-half {
    color: #FBBC04;
    opacity: 0.5;
}

.src-star-empty {
    color: #e8eaed;
}

.src-total-reviews {
    color: #5f6368;
    font-size: 14px;
    font-weight: 400;
}

/* Reviews Container - Card Layout (Google Style) */
.src-reviews-container {
    margin: 20px 0;
}

.src-layout-card .src-reviews-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.src-layout-card .src-review-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: none;
    border-bottom: 1px solid #e8eaed;
    position: relative;
}

.src-layout-card .src-review-card::before {
    display: none;
}

/* Reviews Container - Carousel Layout */
.src-layout-carousel {
    position: relative;
    padding: 0 50px;
}

.src-layout-carousel .src-reviews-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.src-layout-carousel .src-reviews-wrapper::-webkit-scrollbar {
    display: none;
}

.src-layout-carousel .src-review-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid #e8eaed;
    min-width: 340px;
    max-width: 340px;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}

.src-layout-carousel .src-review-card::before {
    display: none;
}

.src-layout-carousel .src-review-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Carousel Navigation Buttons - Google Style */
.src-carousel-prev,
.src-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #5f6368;
    border: 1px solid #dadce0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.src-carousel-prev:hover,
.src-carousel-next:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.src-carousel-prev {
    left: 0;
}

.src-carousel-next {
    right: 0;
}

/* Review Card Header - Google Style */
.src-review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.src-reviewer-profile {
    flex-shrink: 0;
}

.src-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.src-reviewer-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.src-reviewer-info {
    flex: 1;
}

.src-reviewer-name {
    font-weight: 500;
    font-size: 14px;
    color: #202124;
    margin-bottom: 2px;
}

.src-review-date {
    color: #5f6368;
    font-size: 12px;
    font-weight: 400;
}

.src-review-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    margin-bottom: 8px;
}

.src-review-text {
    color: #3c4043;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

.src-review-photo {
    margin-top: 12px;
}

.src-review-photo img {
    max-width: 200px;
    border-radius: 8px;
}

.src-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #5f6368;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .src-review-form-wrapper,
    .src-popup-content {
        padding: 20px;
    }
    
    .src-layout-carousel {
        padding: 0 35px;
    }
    
    .src-carousel-prev,
    .src-carousel-next {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .src-layout-carousel .src-review-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .src-average-rating {
        flex-wrap: wrap;
    }
}