
    /* Удаление стандартного рейтинга */
    .woocommerce-product-rating {
        display: none !important;
    }
    
    .all-products-reviews {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        clear: both;
    }
    
    .reviews-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .header-left, .header-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .store-average-rating {
        font-size: 20px;
        min-width: 60px;
        text-align: center;
        display: flex;
        align-items: baseline;
    }
    
    .store-average-rating .average-value {
        font-size: 26px;
        margin-right: 2px;
    }
    
    .add-review-button-wrap {
        margin-bottom: 20px;
        text-align: left;
    }
    
    .add-review-button {
        padding: 10px 20px;
        background-color: #d26e4b !important;
        color: #fff !important;
        border: none;
        border-radius: 4px;
        font-weight: bold;
        text-decoration: none;
        transition: background 0.3s;
        display: inline-block;
        line-height: 1.5;
        cursor: pointer;
        font-size: 16px;
    }
    
    .add-review-button:hover {
        background-color: #b8593d !important;
        color: #fff;
    }
    
    .review-item {
        background: #f9f9f9;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 5px;
        border: 1px solid #eaeaea;
    }
    
    .review-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 8px;
        font-size: 0.85em;
        color: #666;
    }
    
    .review-order-count {
        font-weight: bold;
        color: #333;
    }
    
    .review-product {
        margin-left: auto;
        font-weight: bold;
    }
    
    .review-product a {
        color: #3a3a3a;
        text-decoration: underline;
    }
    
    .review-content {
        margin-top: 8px;
        line-height: 1.5;
        color: #444;
        font-size: 0.95em;
    }
    
    .load-more-wrap {
        text-align: center;
        margin-top: 20px;
    }
    
    .load-more-reviews {
        padding: 10px 25px;
        background-color: #d26e4b !important;
        color: #fff !important;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 15px;
        transition: background 0.3s;
    }
    
    .load-more-reviews:hover {
        background-color: #b8593d !important;
    }
    
    /* Стили модального окна */
    .review-modal {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
    }
    
    .modal-content {
        background-color: #fefefe;
        margin: 10% auto;
        padding: 30px 20px 5px; /* Увеличен верхний отступ, уменьшен нижний */
        border: 1px solid #888;
        width: 90%;
        max-width: 400px;
        position: relative;
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    .modal-close {
        position: absolute;
        right: 15px;
        top: 15px; /* Сдвинуто ниже для баланса */
        color: #aaa;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
    }
    
    .modal-close:hover {
        color: #333;
    }
    
    /* Стили для формы отзыва */
    .custom-review-form {
        margin-top: 10px; /* Уменьшен отступ сверху */
        padding-bottom: 5px; /* Уменьшен отступ снизу */
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        font-size: 0.95em;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 0.9em;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .rating-stars {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    
    .rating-stars input {
        display: none;
    }
    
    .rating-stars label {
        font-size: 20px;
        color: #ccc;
        cursor: pointer;
        transition: color 0.3s;
    }
    
    .rating-stars input:checked ~ label,
    .rating-stars label:hover,
    .rating-stars label:hover ~ label {
        color: #ffc107;
    }
    
    .form-buttons {
        margin-top: 15px;
        text-align: center;
    }
    
    .submit-review {
        background-color: #d26e4b;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        font-size: 0.95em;
    }
    
    .submit-review:hover {
        background-color: #b8593d;
    }
    
    .review-success {
        padding: 15px;
        background-color: #d4edda;
        color: #155724;
        border-radius: 4px;
        text-align: center;
        font-weight: bold;
        font-size: 0.95em;
    }
    
    @media (max-width: 768px) {
        .reviews-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
        
        .header-right {
            width: 100%;
            justify-content: space-between;
        }
        
        .modal-content {
            margin: 20% auto;
            padding: 25px 15px 5px; /* Адаптированные отступы */
        }
        
        .review-meta {
            gap: 8px;
            font-size: 0.8em;
        }
        
        .review-order-count {
            display: block;
            width: 100%;
        }
    }
    