/* Основные стили отзывов */
.srp-review-form-wrapper {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 30px;
    margin: 30px 0;
    max-width: 800px;
}

.srp-form-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.srp-form-group {
    margin-bottom: 20px;
}

.srp-form-group label, .srp-form-group p {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.srp-form-group input[type="text"],
.srp-form-group input[type="email"],
.srp-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fff;
}

.srp-form-group input:focus,
.srp-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.srp-char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.srp-char-count {
    font-weight: bold;
}

.srp-form-submit {
    margin-top: 25px;
}

.srp-submit-button, .srp-load-more-btn {
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    background-color: #ff003c;
    width: 100%;
    color: #fff;
    border-radius: 5px;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.srp-submit-button:hover, .srp-load-more-btn:hover {
    background: #790e0a;
}

.srp-privacy-notice {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.srp-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.srp-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Список отзывов */
.srp-reviews-section {
    margin: 40px 0;
}

.srp-section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.srp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.srp-review-item {
    background-color: var(--light-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.srp-review-author{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.srp-review-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.srp-review-header {
    margin-bottom: 15px;
}

.srp-review-avatar {
    margin-right: 15px;
}

.srp-review-avatar img,
.srp-avatar-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 24px;
}

.srp-review-author-name {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.srp-verified-badge {
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

.srp-review-date {
    color: #666;
    font-size: 14px;
}

.srp-review-rating {
    margin-bottom: 15px;
}

.srp-rating-stars {
    display: flex;
    gap: 2px;
}

.srp-star {
    font-size: 20px;
}

.srp-star-full {
    color: #ffc107;
}

.srp-star-empty {
    color: #dee2e6;
}

.srp-review-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.srp-review-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.srp-review-content p {
    margin: 0 0 10px 0;
}

.srp-review-content p:last-child {
    margin-bottom: 0;
}

.srp-review-attachments {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.srp-attachments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.srp-attachment-image {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.srp-attachment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.srp-attachment-image:hover img {
    transform: scale(1.05);
}

.srp-attachment-file {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.srp-attachment-file:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.srp-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.srp-review-votes {
    display: flex;
    gap: 10px;
}

.srp-vote-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.srp-vote-btn:hover {
    background: #e9ecef;
}

.srp-vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.srp-like-btn:hover {
    color: #28a745;
    border-color: #28a745;
}

.srp-dislike-btn:hover {
    color: #dc3545;
    border-color: #dc3545;
}

.srp-review-actions {
    display: flex;
    gap: 5px;
}

.srp-action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.srp-approve-btn:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.srp-spam-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.srp-delete-btn:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* Пагинация */
.srp-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.srp-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Адаптивность */
@media (max-width: 768px) {
    .srp-review-form-wrapper {
        padding: 20px;
    }

    .srp-review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .srp-review-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .srp-review-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .srp-review-votes {
        justify-content: center;
    }

    .srp-review-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .srp-review-form-wrapper {
        padding: 15px;
    }

    .srp-form-title,
    .srp-section-title {
        font-size: 22px;
    }

    /* Стили для списка отзывов */
    .srp-reviews-section {
        margin: 40px 0;
    }

    .srp-section-title {
        font-size: 28px;
        margin-bottom: 30px;
        color: #333;
        text-align: center;
    }

    .srp-reviews-list {
        display: flex;
        flex-direction: column;
        gap: 25px;
        max-width: 800px;
        margin: 0 auto;
    }

    .srp-review-item {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        padding: 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .srp-review-header {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .srp-review-avatar {
        margin-right: 15px;
    }

    .srp-review-avatar img,
    .srp-avatar-initials {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: white;
        font-size: 18px;
    }

    .srp-review-author-name {
        margin: 0 0 5px 0;
        font-size: 18px;
        color: #333;
    }

    .srp-review-date {
        color: #666;
        font-size: 14px;
    }

    .srp-review-rating {
        margin-bottom: 15px;
    }

    .srp-rating-stars {
        display: flex;
        gap: 2px;
    }

    .srp-star {
        font-size: 20px;
    }

    .srp-star-full {
        color: #ffc107;
    }

    .srp-star-empty {
        color: #e0e0e0;
    }

    .srp-review-title {
        margin: 0 0 10px 0;
        font-size: 18px;
        color: #333;
    }

    .srp-review-content {
        color: #555;
        line-height: 1.6;
    }

    .srp-review-content p {
        margin: 0 0 10px 0;
    }

    .srp-review-content p:last-child {
        margin-bottom: 0;
    }

    .srp-no-reviews {
        text-align: center;
        padding: 40px;
        background: #f9f9f9;
        border-radius: 10px;
        color: #666;
        font-size: 16px;
    }

    /* Сетка отзывов */
    .srp-reviews-grid {
        display: grid;
        gap: 20px;
        margin-top: 20px;
    }

    .srp-review-card {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .srp-review-card-header {
        margin-bottom: 15px;
    }

    .srp-review-card-author {
        display: flex;
        flex-direction: column;
    }

    .srp-review-card-date {
        font-size: 12px;
        color: #888;
        margin-top: 5px;
    }

    .srp-review-card-rating {
        margin-bottom: 10px;
    }

    .srp-review-card-content {
        color: #555;
        line-height: 1.5;
        font-size: 14px;
    }

    /* Слайдер отзывов */
    .srp-reviews-slider-section {
        margin: 40px 0;
    }

    .srp-reviews-slider {
        max-width: 800px;
        margin: 0 auto;
        position: relative;
        min-height: 200px;
    }

    .srp-slide {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        margin: 0 10px;
    }

    .srp-slide-content {
        text-align: center;
    }

    .srp-slide-rating {
        margin-bottom: 15px;
        justify-content: center;
        display: flex;
    }

    .srp-slide-text {
        color: #555;
        line-height: 1.6;
        font-size: 16px;
        font-style: italic;
        margin-bottom: 20px;
    }

    .srp-slide-author {
        color: #333;
        font-weight: 600;
    }

    .srp-slide-date {
        display: block;
        font-size: 12px;
        color: #888;
        margin-top: 5px;
        font-weight: normal;
    }

    /* Пагинация */
    .srp-pagination {
        text-align: center;
        margin-top: 30px;
    }

    .srp-load-more-btn {
        background: #0073aa;
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .srp-load-more-btn:hover {
        background: #005a87;
    }

    .srp-load-more-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Адаптивность */
    @media (max-width: 768px) {
        .srp-reviews-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }

        .srp-review-item {
            padding: 20px;
        }

        .srp-review-header {
            flex-direction: column;
            text-align: center;
        }

        .srp-review-avatar {
            margin-right: 0;
            margin-bottom: 10px;
        }
    }

    @media (max-width: 480px) {
        .srp-reviews-grid {
            grid-template-columns: 1fr !important;
        }

        .srp-section-title {
            font-size: 24px;
        }

        .srp-review-item {
            padding: 15px;
        }
    }
    .srp-attachments-grid {
        flex-direction: column;
    }

    .srp-attachment-image {
        width: 100%;
        height: auto;
    }
}

/* Загрузка */
.srp-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.srp-simple-form-wrapper {
    padding: 25px;
    border-radius: 10px;
    background-color: var(--banner-bg);
    width: 100%;
}

.srp-simple-rating .str-group-rating label {
    margin-bottom: 0;
}

.srp-simple-rating {
    display: flex;
    gap: 15px;
}

.srp-loading:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: srp-spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes srp-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}