/* Estilos existentes mantidos */
.vendor-rating-section {
    margin: 20px 0;
}

.vendor-rating-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 32px;
}

.vendor-rating-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.rating-label {
    display: block;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
}

.star-rating {
    direction: rtl;
    display: inline-block;
}

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

.star-rating label {
    color: #d1d5db;
    font-size: 24px;
    padding: 0 5px;
    cursor: pointer;
}

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

.rating-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    resize: vertical;
}

.rating-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.recommendation-options {
    display: flex;
    gap: 16px;
}

.recommendation-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-submit {
    text-align: right;
}

.submit-button {
    padding: 8px 16px;
    background: #4f46e5;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-button:hover {
    background: #4338ca;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    text-align: left;
}

.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #dcfce7;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.modal-icon i {
    color: #22c55e;
    font-size: 24px;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.modal-text {
    color: #6b7280;
    margin-bottom: 16px;
}

.modal-button {
    padding: 8px 16px;
    background: #6b7280;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-button:hover {
    background: #4b5563;
}

/* Estilos para exibição das avaliações na aba */
.vendor-reviews-section {
    margin: 20px 0;
}

.vendor-reviews-container {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
}

.vendor-summary {
    margin-bottom: 24px;
}

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

.vendor-rating i.filled {
    color: #ffc107;
    font-size: 18px;
}

.vendor-rating i.empty {
    color: #d1d5db;
    font-size: 18px;
}

.vendor-rating span {
    font-weight: 500;
    color: #4a5568;
}

.vendor-reviews-list {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.vendor-review {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.vendor-review:nth-child(odd) {
    background: linear-gradient(135deg, #e6f0fa 0%, #d0e2f0 100%), radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 70%);
}

.vendor-review:nth-child(even) {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%), radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 70%);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
    color: #2d3748;
}

.review-date {
    color: #718096;
    margin-left: 10px;
}

.review-recommendation {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.review-recommendation.positive .fas {
    color: #2ecc71;
}

.review-recommendation.neutral .fas {
    color: #f1c40f;
}

.review-recommendation.negative .fas {
    color: #e74c3c;
}

.review-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.review-rating .fas,
.review-rating .far {
    font-size: 16px;
    margin-right: 4px;
}

.rating-score {
    color: #2d3748;
    font-weight: 500;
    margin-left: 8px;
}

.review-metrics {
    display: flex;
    gap: 20px;
    color: #718096;
    margin-bottom: 8px;
}

.review-metrics span {
    display: flex;
    flex-direction: column;
}

.review-text {
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

.woocommerce-tabs .vendor-reviews-section {
    padding: 0;
}

.woocommerce-tabs .vendor-reviews-container {
    box-shadow: none;
}

/* Estilos para a página administrativa */
.vendor-reviews-admin .wp-list-table {
    width: 100%;
}

.vendor-reviews-admin .wp-list-table th,
.vendor-reviews-admin .wp-list-table td {
    padding: 12px;
}

.vendor-reviews-admin .edit-review,
.vendor-reviews-admin .delete-review {
    margin-right: 8px;
}

.vendor-reviews-admin .modal-content h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.vendor-reviews-admin .modal-content .rating-group {
    margin-bottom: 16px;
}

.vendor-reviews-admin .modal-content .submit-button {
    margin-right: 8px;
}