/* Основные стили плагина */
.srp-container {

    margin: 0 auto 40px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.srp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.srp-form-group input[type="text"],
.srp-form-group input[type="email"],
.srp-form-group input[type="number"],
.srp-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.srp-form-group input:focus,
.srp-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.srp-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Стили рейтинга */
.srp-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-top: 5px;
}

.srp-rating input {
    display: none;
}

.srp-rating label {
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.3s;
}

.srp-rating label:hover,
.srp-rating label:hover ~ label,
.srp-rating input:checked ~ label {
    color: #ffc107;
}

/* Кнопка отправки */
#srp-submit {
    background: #8eca50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 400;
    width: 100%;
}



#srp-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}
.srp-rating input {
    display: none !important;
}
/* Сообщения */
#srp-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

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

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

/* Стили для полей с ошибками */
.error-field {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.error-rating {
    border: 2px solid #dc3545;
    padding: 5px;
    border-radius: 5px;
    display: inline-block;
}

/* Сетка отзывов */
.srp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Заголовок и дата отзыва */
.srp-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.srp-review-date {
    color: #888;
    font-size: 14px;
}

/* Рейтинг в отзывах */
.srp-review-rating {
    margin-bottom: 15px;
}

.srp-star {
    color: #ccc;
    font-size: 20px;
}

.srp-star-filled {
    color: #ffc107;
}

/* Сообщение об отсутствии отзывов */
.no-reviews {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Стили для админки */
.button-link-delete {
    color: #dc3232 !important;
}

/* Адаптивность */
@media (max-width: 992px) {
    .srp-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .srp-container {
        padding: 15px;
    }
    
    .srp-reviews-grid {
        grid-template-columns: 1fr;
    }
}
.srp-review-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    line-height: 1.6;
    color: #555;
    max-height: 150px;
    font-size: 13px;
}
/* Карточка отзыва */
.srp-review-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 280px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.srp-review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.srp-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}