:root {
    --main-color: #00b398;
    --text-color-over-main: #ffffff;
    --star-color: #f7d100;
    --border-color: #e0e0e0;
    --background-color: #f9f9f9;
}

#ur-reviews-section {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding-block: 2rem;
    margin-bottom: 2rem;
}

.ur-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ur-reviews-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

#ur-write-review-btn, .ur-submit-btn {
    background-color: var(--main-color);
    color: var(--text-color-over-main);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#ur-write-review-btn:hover, .ur-submit-btn:hover {
    opacity: 0.9;
}

.ur-reviews-summary {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ur-average-rating {
    font-size: 3rem;
    font-weight: bold;
}

.ur-star-rating-static .dashicons,
.ur-star-rating-static-admin .dashicons {
    color: var(--star-color);
    font-size: 18px;
}

.ur-total-reviews {
    color: #6c757d;
    font-size: 0.9rem;
}

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

.ur-star-label {
    flex-basis: 80px;
    font-size: 0.9rem;
}

.ur-bar-container {
    flex-grow: 1;
    background-color: #e9ecef;
    border-radius: 5px;
    height: 10px;
    margin: 0 10px;
}

.ur-bar {
    background-color: var(--main-color);
    height: 100%;
    border-radius: 5px;
}

.ur-bar-count {
    flex-basis: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
}

#ur-review-form-wrapper {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

#ur-review-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.ur-star-rating-interactive .dashicons {
    cursor: pointer;
    color: #ccc;
    font-size: 24px;
    transition: color 0.2s ease;
}

.ur-star-rating-interactive .dashicons:hover,
.ur-star-rating-interactive .dashicons.filled {
    color: var(--star-color);
}

.ur-review-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

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

.ur-review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

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

.ur-review-date {
    font-size: 0.9rem;
    color: #6c757d;
}

#ur-form-message {
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 5px;
    display: none;
}

#ur-form-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

#ur-form-message.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.ur-admin-wrap .ur-star-rating-static-admin .dashicons {
    font-size: 16px;
}

.ur-status-badge {
    display: inline-block;
    padding: .25em .6em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    color: #fff;
}

.ur-status-badge.status-approved {
    background-color: #198754;
}

.ur-status-badge.status-pending {
    background-color: #ffc107;
    color: #000;
}
.ur-admin-action-btn[data-action="delete"] {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Estilos para las estrellas en el loop de productos */
.ur-loop-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ur-loop-rating i.bi {
    font-size: 14px;
    margin-right: 2px;
}

/* Estilos para la sección de importación CSV */
.ur-import-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.ur-import-section .card-header {
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    font-size: 14px;
    font-weight: 600;
}

.ur-import-section .form-row {
    margin-bottom: 15px;
}

.ur-import-section input[type="file"] {
    padding: 6px 8px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}

#ur-import-message.notice {
    margin: 0;
    border-left: 4px solid;
}

#ur-import-message.notice-success {
    border-left-color: #00a32a;
    background-color: #f0f6fc;
}

#ur-import-message.notice-error {
    border-left-color: #d63638;
    background-color: #fcf0f1;
}

#ur-import-progress {
    background: #f1f1f1;
    border-radius: 4px;
    padding: 10px;
}

#ur-progress-bar {
    background: linear-gradient(90deg, #00a32a, #4caf50);
    border-radius: 8px;
    transition: width 0.3s ease;
}

/* Estilos para accordion */
.ur-accordion-header:hover {
    background: #e9e9e9 !important;
}

.ur-accordion-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Estilos para acciones múltiples */
.ur-bulk-actions {
    border-left: 4px solid #0073aa !important;
    background: #f0f6fc !important;
    border: 1px solid #b6d7ff !important;
    margin-bottom: 15px !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ur-bulk-btn {
    margin-right: 8px !important;
    transition: all 0.2s ease !important;
}

.ur-bulk-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

#ur-bulk-delete {
    background-color: #d63638 !important;
    color: white !important;
    border-color: #d63638 !important;
}

#ur-bulk-delete:hover {
    background-color: #b32d2e !important;
}

/* Estilos para checkboxes */
#ur-select-all,
.ur-review-checkbox {
    transform: scale(1.2);
    margin: 0;
}

/* Estilos para títulos de reseñas en frontend */
.ur-review-content p:first-child strong {
    font-size: inherit !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #333 !important;
}

.ur-review-content p + p {
    margin-top: 8px !important;
}

.ur-review-content p:first-child {
    margin-bottom: 8px !important;
}

.ur-review-content p {
    margin: 0 0 0.5rem 0 !important;
}

/* Estilos para edición de nombres de autor */
.ur-author-name-container {
    position: relative;
}

.ur-edit-name-btn {
    margin-left: 5px;
    padding: 2px 5px !important;
    color: #0073aa !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    vertical-align: middle;
}

.ur-edit-name-btn:hover {
    opacity: 1 !important;
    color: #005177 !important;
}

.ur-author-name-edit {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.ur-name-input {
    padding: 2px 6px !important;
    border: 1px solid #8c8f94 !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.ur-name-input:focus {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 1px #2271b1 !important;
    outline: none !important;
}

.ur-save-name-btn {
    background-color: #2271b1 !important;
    color: white !important;
    border: none !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.ur-save-name-btn:hover:not(:disabled) {
    background-color: #135e96 !important;
}

.ur-save-name-btn:disabled {
    background-color: #8c8f94 !important;
    cursor: not-allowed !important;
}

.ur-cancel-name-btn {
    background-color: #c3c4c7 !important;
    color: #50575e !important;
    border: none !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.ur-cancel-name-btn:hover {
    background-color: #a7aaad !important;
}

.ur-success-msg {
    animation: fadeInSuccess 0.3s ease-in;
}

@keyframes fadeInSuccess {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}