/* Main Container */
#wc-custom-reviews-section {
    margin-top: 50px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
}

#wc-custom-reviews-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Reviews List */
.wc-custom-reviews-list {
    margin-bottom: 50px;
}

.wc-custom-review-item {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.wc-custom-review-item:last-child {
    border-bottom: none;
}

.wc-custom-review-item:hover {
    background: #fafafa;
}

/* Nested Reviews */
.wc-custom-review-item.depth-1,
.wc-custom-review-item.depth-2,
.wc-custom-review-item.depth-3 {
    margin-left: 40px;
    border-left: 3px solid #e0e0e0;
    background: #fdfdfd;
    border-radius: 0 8px 8px 0;
    margin-top: 15px;
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-author img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-name {
    font-weight: 600;
    font-size: 16px;
    color: #222;
}

.review-date {
    font-size: 13px;
    color: #888;
    margin-left: 10px;
}

/* Rating Stars */
.review-rating .star {
    color: #ddd;
    font-size: 18px;
}

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

/* Review Content */
.review-content {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Actions */
.review-actions {
    display: flex;
    gap: 15px;
}

.btn-like, .btn-reply {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
    padding: 5px 10px;
    border-radius: 5px;
}

.btn-like:hover, .btn-reply:hover {
    background: #f0f0f0;
    color: #333;
}

.btn-like .dashicons {
    font-size: 18px;
}

/* Forms */
.wc-custom-review-form-wrapper {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

.wc-custom-review-form-wrapper h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

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

.wc-custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.wc-custom-form input[type="text"],
.wc-custom-form input[type="email"],
.wc-custom-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.wc-custom-form input:focus,
.wc-custom-form textarea:focus {
    border-color: #333;
    outline: none;
}

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

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

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

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

/* Submit Button */
.submit-btn {
    background: #222;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #444;
}

.submit-btn.small {
    padding: 8px 15px;
    font-size: 14px;
}

/* Reply Form */
.wc-custom-reply-form {
    margin-top: 15px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.form-message {
    margin-top: 15px;
    font-weight: 500;
}

.form-message.success {
    color: green;
}

.form-message.error {
    color: red;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #wc-custom-reviews-section {
        padding: 20px;
        margin-top: 30px;
    }

    #wc-custom-reviews-section h2 {
        font-size: 24px;
    }

    .wc-custom-review-item {
        padding: 15px;
    }

    /* Reduce nesting indentation on mobile */
    .wc-custom-review-item.depth-1,
    .wc-custom-review-item.depth-2,
    .wc-custom-review-item.depth-3 {
        margin-left: 15px;
        border-left-width: 2px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .review-author {
        width: 100%;
    }

    .review-rating {
        align-self: flex-start;
    }

    .wc-custom-review-form-wrapper {
        padding: 20px;
    }

    .wc-custom-form input[type="text"],
    .wc-custom-form input[type="email"],
    .wc-custom-form textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .image-upload-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-take-photo {
        width: 100%;
    }

    /* Camera UI Responsiveness */
    .camera-container video {
        width: 100% !important;
        height: auto !important;
        max-height: 70vh; /* Prevent taking up too much vertical space */
        object-fit: cover;
    }

    .camera-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .camera-controls button {
        flex: 1;
        min-width: 80px;
    }
}
