/* LunaReview: Modern 2025 Styling */
#lunareview-product-comments-wrapper {
    margin-top: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #1a1a1a;
}

#lunareview-product-comments-form {
    margin-bottom: 50px;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    backdrop-filter: blur(10px);
}

#lunareview-product-comments-form h3,
#lunareview-product-comments-list h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: right;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Form Fields - Modern Design */
.lunareview-form-field {
    margin-bottom: 24px;
    text-align: right;
    position: relative;
}

.lunareview-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.lunareview-form-field input[type="text"],
.lunareview-form-field input[type="number"],
.lunareview-form-field input[type="email"],
.lunareview-form-field textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: #ffffff;
    line-height: 1.5;
}

.lunareview-form-field input[type="text"]:focus,
.lunareview-form-field input[type="number"]:focus,
.lunareview-form-field input[type="email"]:focus,
.lunareview-form-field textarea:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.lunareview-form-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Submit Button - Modern Design */
.lunareview-form-submit input[type="submit"] {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: auto;
    position: relative;
    overflow: hidden;
}

.lunareview-form-submit input[type="submit"]:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Messages - Modern Design */
#lunareview-form-messages {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: right;
    line-height: 1.5;
}

.lunareview-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.lunareview-error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Comment List - Modern Design */
#lunareview-product-comments-list {
    margin-top: 50px;
}

.lunareview-commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lunareview-comment-item {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    margin-bottom: 20px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    text-align: right;
}

/* Staff Comments - Blue Background Only */
.lunareview-comment-item.lunareview-staff-comment {
    background: linear-gradient(135deg, #f0f7ff, #e1effe);
    border: 1px solid #f3f4f6;
}

/* Staff Badge */
.lunareview-staff-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.lunareview-staff-badge svg {
    width: 14px;
    height: 14px;
}

/* Staff Author Name */
.lunareview-staff-comment .lunareview-fn {
    color: #1e40af;
    font-weight: 700;
}

/* Indentation for nested replies - Modern */
.lunareview-children {
    list-style: none;
    margin-right: 32px;
    padding-right: 0;
    border-right: 2px solid #e5e7eb;
    padding-top: 16px;
    padding-bottom: 16px;
    position: relative;
}

.lunareview-children::before {
    content: '';
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
}

.lunareview-comment-item.lunareview-comment-indent-1 {
    margin-top: 20px;
    margin-right: 0;
}

.lunareview-comment-item.lunareview-comment-indent-2 {
    margin-top: 16px;
    margin-right: 24px;
}

.lunareview-comment-item.lunareview-comment-indent-3 {
    margin-top: 16px;
    margin-right: 48px;
}

.lunareview-comment-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lunareview-comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lunareview-fn {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.4;
}

.lunareview-commentmetadata time {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.lunareview-comment-content p {
    margin: 0;
    line-height: 1.7;
    color: #374151;
    font-size: 15px;
}

.lunareview-reply {
    text-align: left;
    margin-top: 8px;
}

.lunareview-comment-reply-link {
    background: #3b82f61f;
    color: #3b82f6;
    border: 1px solid #3b82f614;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    display: inline-block;
}

.lunareview-no-comments {
    text-align: center;
    color: #6b7280;
    padding: 48px 32px;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
    font-size: 16px;
    line-height: 1.6;
}

/* Required field indicator */
.required {
    color: #dc2626;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    #lunareview-product-comments-form {
        padding: 24px;
        margin-bottom: 40px;
    }
    
    #lunareview-product-comments-form h3,
    #lunareview-product-comments-list h3 {
        font-size: 24px;
    }
    
    .lunareview-children {
        margin-right: 16px;
    }
    
    .lunareview-comment-item.lunareview-comment-indent-2 {
        margin-right: 16px;
    }
    
    .lunareview-comment-item.lunareview-comment-indent-3 {
        margin-right: 32px;
    }
    
    .lunareview-staff-badge {
        width: 20px;
        height: 20px;
        margin-left: 6px;
    }
    
    .lunareview-staff-badge svg {
        width: 12px;
        height: 12px;
    }
}

/* Animation for new comments */
@keyframes lunareviewFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lunareview-comment-item {
    animation: lunareviewFadeIn 0.4s ease-out;
}