/* Eklenti CSS Değişkenleri */
.custom-product-reviews-wrapper {
    --brw-white: #ffffff;
    --brw-border: #e5e7eb;
    --brw-text: #1f2937;
    --brw-text-light: #6b7280;
    --brw-primary: #3b82f6;
    --brw-primary-dark: #2563eb;
    --brw-radius: 8px;
    --brw-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --brw-background: #f9fafb;
    --brw-star-color: #ffb900;
}

/* Yorum Formu Ana Container */
.custom-review-form-container {
    margin-bottom: 30px !important;
}

/* Yorum Yazma Alanı */
.comment-form-comment {
    margin-bottom: 0 !important;
}

.comment-form-inner {
    border: 1px solid var(--brw-border) !important;
    border-radius: var(--brw-radius) !important;
    background: var(--brw-white) !important;
    transition: all 0.2s ease !important;
}

.comment-form-inner:focus-within {
    border-color: var(--brw-primary) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
}

.comment-form-comment textarea {
    width: 100% !important;
    min-height: 120px !important;
    padding: 15px !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    resize: none !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* WordPress'in varsayılan stillerini ezme */
.comment-form-comment textarea,
.comment-form-comment textarea:focus,
.comment-form-comment textarea:active,
.comment-form-comment textarea:hover,
#comment,
#comment:focus,
#comment:active,
#comment:hover,
textarea#comment,
textarea#comment:focus,
textarea#comment:active,
textarea#comment:hover {
    border: 0 !important;
    border-width: 0 !important;
    border-color: transparent !important;
    border-style: none !important;
    outline: 0 !important;
    outline-width: 0 !important;
    outline-color: transparent !important;
    outline-style: none !important;
    box-shadow: none !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.comment-form-comment textarea::placeholder {
    color: var(--brw-text-light) !important;
    opacity: 1 !important;
}

.comment-form-comment textarea:focus::placeholder {
    opacity: 0.7 !important;
}

/* Ad-Soyad ve Email Alanları */
.comment-form-fields {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;


}

.comment-form-fields input {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid var(--brw-border) !important;
    border-radius: var(--brw-radius) !important;
    color: var(--brw-text) !important;
}

/* Form Alt Kısmı - Yıldız ve Butonlar */
.brw-form-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    margin-top: 15px !important;
}

.brw-rating-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
}

/* Yıldız Seçici */
.brw-rating-select {
    padding: 8px 12px !important;
    border: 1px solid var(--brw-border) !important;
    border-radius: var(--brw-radius) !important;
    color: var(--brw-text) !important;
    background-color: var(--brw-white) !important;
    min-width: 120px !important;
}

/* Buton Grubu */
.brw-button-group {
    display: flex !important;
    gap: 12px !important;
}

/* Butonlar */
.brw-submit-button {
    padding: 8px 16px !important;
    border-radius: var(--brw-radius) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Fotoğraf Ekle Butonu */
.brw-submit-button.brw-secondary {
    background: transparent !important;
    border: 1px solid var(--brw-border) !important;
    color: var(--brw-text) !important;
}

.brw-submit-button.brw-secondary:hover {
    background: var(--brw-background) !important;
}

/* Gönder Butonu */
.brw-submit-button.brw-primary {
    background: var(--brw-primary) !important;
    border: none !important;
    color: var(--brw-white) !important;
    width: auto !important;
}

.brw-submit-button.brw-primary:hover {
    background: var(--brw-primary-dark) !important;
}

/* Mobil Düzenlemeler */
@media (max-width: 576px) {
    .brw-form-footer {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .brw-rating-wrapper {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .brw-rating-select {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .brw-button-group {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    
    .brw-submit-button {
        width: 100% !important;
        padding: 12px !important;
        text-align: center !important;
    }
}

/* Yorum Listesi */
.custom-review-list {
    background: var(--brw-white);
    padding: 24px;
    border-radius: var(--brw-radius);
    box-shadow: var(--brw-shadow);
}

.review-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--brw-border);
}

.custom-average-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-number {
    font-size: 32px;
    font-weight: 600;
    color: var(--brw-text);
}

.total-reviews {
    color: var(--brw-text-light);
}

/* Tekil Yorum */
.single-review {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--brw-border);
}

.review-author img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.author-name {
    font-weight: 500;
}

.review-images {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.review-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.review-date {
    color: var(--brw-text-light);
    font-size: 14px;
}

/* Faydalı Bulma Butonu - Normal Durum */
.custom-product-reviews-wrapper .helpful-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px 12px !important;
    border: 1px solid var(--brw-border) !important;
    border-radius: 20px !important;
    background: var(--brw-white) !important;
    color: var(--brw-text-light) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    text-decoration: none !important;
    height: fit-content !important;
}

.custom-product-reviews-wrapper .helpful-button svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2px !important;
    transition: all 0.2s ease !important;
    margin-right: 2px !important;
}

.custom-product-reviews-wrapper .helpful-button:hover {
    border-color: var(--brw-primary) !important;
    color: var(--brw-primary) !important;
    background: rgba(59, 130, 246, 0.05) !important;
    text-decoration: none !important;
}

.custom-product-reviews-wrapper .helpful-button:hover svg {
    stroke: var(--brw-primary) !important;
}

/* Faydalı Bulma Butonu - Aktif Durum */
.custom-product-reviews-wrapper .helpful-button.is-helpful {
    background: var(--brw-primary) !important;
    border-color: var(--brw-primary) !important;
    color: var(--brw-white) !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2) !important;
}

.custom-product-reviews-wrapper .helpful-button.is-helpful svg {
    stroke: var(--brw-white) !important;
    transform: scale(1.1) !important;
}

.custom-product-reviews-wrapper .helpful-button.is-helpful:hover {
    background: var(--brw-primary-dark) !important;
    border-color: var(--brw-primary-dark) !important;
    color: var(--brw-white) !important;
    text-decoration: none !important;
}

/* İşlem sırasındaki durum */
.custom-product-reviews-wrapper .helpful-button.processing {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

/* Sayaç stili */
.custom-product-reviews-wrapper .helpful-count {
    font-weight: 500 !important;
    margin: 0 !important;
    color: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Mobil Düzenlemeler */
@media (max-width: 768px) {
    .review-filters {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .single-review {
        flex-direction: row !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
    
    .review-author img {
        width: 50px !important;
        height: 50px !important;
    }

    .review-content {
        flex: 1 !important;
    }

    .author-info {
        margin-bottom: 8px !important;
    }

    .review-main-content {
        margin-top: 12px !important;
    }
}

/* Çok küçük ekranlar için ek düzenleme */
@media (max-width: 375px) {
    .custom-product-reviews-wrapper .single-review {
        gap: 8px !important;
    }
    
    .custom-product-reviews-wrapper .review-author img {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Önizleme Stilleri */
.review-images-preview {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 15px 15px 15px !important;
    background: transparent !important;
}

.review-images-preview:empty {
    display: none !important;
    padding: 0 !important;
}

.preview-image {
    position: relative !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: var(--brw-radius) !important;
    overflow: hidden !important;
    border: 1px solid var(--brw-border) !important;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Form Butonları */
.custom-submit-review {
    padding: 8px 16px;
    border-radius: var(--brw-radius);
    border: none;
    background: var(--brw-primary);
    color: var(--brw-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-submit-review.secondary-button {
    background: transparent;
    border: 1px solid var(--brw-border);
    color: var(--brw-text);
}

.custom-submit-review:hover {
    background: var(--brw-primary-dark);
}

.custom-submit-review.secondary-button:hover {
    background: var(--brw-border);
} 

/* Yıldız Renkleri */
.star-rating span::before {
    color: var(--brw-primary) !important;
}

/* Select Box Stili */
.review-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--brw-border);
    border-radius: var(--brw-radius);
    color: var(--brw-text);
    background-color: var(--brw-white);
}

/* Form Input Stilleri */
.comment-form-fields input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--brw-border);
    border-radius: var(--brw-radius);
    color: var(--brw-text);
}

/* Rating Select */
.comment-form-rating select {
    padding: 8px 12px;
    border: 1px solid var(--brw-border);
    border-radius: var(--brw-radius);
    color: var(--brw-text);
    background-color: var(--brw-white);
} 

/* Yıldız ve Puanlama Sistemi */
.custom-product-reviews-wrapper .star-rating {
    float: none !important;
    margin: 0 !important;
    font-family: star !important;
    font-size: 1em !important;
    height: 1em !important;
    line-height: 1 !important;
    overflow: hidden !important;
    position: relative !important;
    width: 5.4em !important;
}

.custom-product-reviews-wrapper .star-rating::before {
    content: "sssss" !important;
    color: #d3ced2 !important;
    float: left !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
}

.custom-product-reviews-wrapper .star-rating span {
    overflow: hidden !important;
    float: left !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
    padding-top: 1.5em !important;
}

.custom-product-reviews-wrapper .star-rating span::before {
    content: "SSSSS" !important;
    top: 0 !important;
    position: absolute !important;
    left: 0 !important;
    color: var(--brw-star-color) !important;
}

/* Form Stilleri */
.custom-product-reviews-wrapper p.stars a {
    position: relative !important;
    height: 1em !important;
    width: 1em !important;
    text-indent: -999em !important;
    display: inline-block !important;
    text-decoration: none !important;
    color: var(--brw-star-color) !important;
}

.custom-product-reviews-wrapper p.stars a::before {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1em !important;
    height: 1em !important;
    line-height: 1 !important;
    font-family: star !important;
    content: "s" !important;
    text-indent: 0 !important;
}

.custom-product-reviews-wrapper p.stars a:hover ~ a::before {
    content: "s" !important;
    color: #d3ced2 !important;
}

.custom-product-reviews-wrapper p.stars:hover a::before {
    content: "S" !important;
}

.custom-product-reviews-wrapper p.stars.selected a.active::before {
    content: "S" !important;
}

.custom-product-reviews-wrapper p.stars.selected a.active ~ a::before {
    content: "s" !important;
    color: #d3ced2 !important;
}

.custom-product-reviews-wrapper p.stars.selected a:not(.active)::before {
    content: "S" !important;
}

/* Form Elementleri */
.custom-product-reviews-wrapper input[type="text"],
.custom-product-reviews-wrapper input[type="email"],
.custom-product-reviews-wrapper textarea {
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid var(--brw-border) !important;
    border-radius: var(--brw-radius) !important;
    background: var(--brw-white) !important;
    color: var(--brw-text) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Butonlar */
.custom-product-reviews-wrapper button,
.custom-product-reviews-wrapper .button {
    background: var(--brw-primary) !important;
    color: var(--brw-white) !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: var(--brw-radius) !important;
    cursor: pointer !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}

.custom-product-reviews-wrapper button:hover,
.custom-product-reviews-wrapper .button:hover {
    background: var(--brw-primary-dark) !important;
} 

/* Yazar bilgileri */
.custom-product-reviews-wrapper .author-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.custom-product-reviews-wrapper .name-rating {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.custom-product-reviews-wrapper .author-name {
    font-weight: 500 !important;
    color: var(--brw-text) !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
}

.custom-product-reviews-wrapper .review-date {
    color: var(--brw-text-light) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

/* Review header düzenlemesi */
.custom-product-reviews-wrapper .review-header {
    margin-bottom: 12px !important;
}

.custom-product-reviews-wrapper .star-rating {
    margin: 0 !important;
} 

/* Review footer düzenlemesi */
.custom-product-reviews-wrapper .review-footer {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 16px !important;
} 

/* Review içerik düzenlemesi */
.custom-product-reviews-wrapper .review-main-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

.review-main-content p {
    margin-bottom: 12px !important;
}

.review-images {
    margin-bottom: 16px !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Faydalı Bulma Butonu */
.custom-product-reviews-wrapper .helpful-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 8px 12px !important;
    border: 1px solid var(--brw-border) !important;
    border-radius: 20px !important;
    background: var(--brw-white) !important;
    color: var(--brw-text-light) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    text-decoration: none !important;
    height: fit-content !important;
}

/* Mobil düzenleme */
@media (max-width: 576px) {
    .custom-product-reviews-wrapper .review-main-content p {
        margin-right: 0 !important;
        margin-bottom: 16px !important;
    }

    .custom-product-reviews-wrapper .helpful-button {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }

    .review-actions {
        flex-wrap: wrap !important;
    }
} 

/* Sıralama etiketi */
.custom-product-reviews-wrapper label[for="review-filter"] {
    margin-right: 8px !important;
}

/* Mobil düzenleme */
@media (max-width: 576px) {
    .custom-product-reviews-wrapper label[for="review-filter"] {
        display: none !important;
    }
    
    .custom-product-reviews-wrapper .review-main-content p {
        margin-right: 0 !important;
        margin-bottom: 16px !important;
    }

    .custom-product-reviews-wrapper .helpful-button {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }

    .review-actions {
        flex-wrap: wrap !important;
    }
} 

/* Ortalama puan ve değerlendirme sayısı */
.custom-product-reviews-wrapper .custom-average-rating {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.custom-product-reviews-wrapper .rating-number {
    font-size: 32px !important;
    font-weight: 600 !important;
    color: var(--brw-text) !important;
}

.custom-product-reviews-wrapper .total-reviews {
    color: var(--brw-text-light) !important;
}

/* Mobil düzenleme */
@media (max-width: 576px) {
    .custom-product-reviews-wrapper .custom-average-rating {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .custom-product-reviews-wrapper .rating-number {
        margin-bottom: 2px !important;
    }

    .custom-product-reviews-wrapper .total-reviews {
        font-size: 14px !important;
    }
} 

/* Review Filters */
.custom-product-reviews-wrapper .review-filters {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--brw-border) !important;
}

.custom-product-reviews-wrapper .review-filters-left {
    flex: 1 !important;
}

.custom-product-reviews-wrapper .review-filters-right {
    flex: 0 0 auto !important;
}

.custom-product-reviews-wrapper .rating-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    line-height: 1 !important;
}

/* Mobil düzenleme */
@media (max-width: 576px) {
    .custom-product-reviews-wrapper .review-filters {
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px !important;
    }

    .custom-product-reviews-wrapper .review-filters-left {
        flex: 1 !important;
    }

    .custom-product-reviews-wrapper .review-filters-right {
        flex: 0 0 auto !important;
    }

    .custom-product-reviews-wrapper .rating-info {
        gap: 5px !important;
    }

    .custom-product-reviews-wrapper label[for="review-filter"] {
        display: none !important;
    }

    .custom-product-reviews-wrapper .review-filter-select {
        min-width: 120px !important;
    }
} 

/* Rating Info Düzeni */
.custom-product-reviews-wrapper .rating-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
    line-height: 1 !important;
}

/* Puan ve Yıldız Satırı */
.custom-product-reviews-wrapper .rating-info .rating-number {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1 !important;
}

/* Ortalama puan */
.custom-product-reviews-wrapper .rating-info .rating-number span {
    font-size: 42px !important;
    font-weight: 600 !important;
}

.custom-product-reviews-wrapper .rating-info .star-rating {
    float: none !important;
    margin: 0 !important;
    font-size: 0.7em !important;
    width: 4.5em !important;
}

/* Yıldız rengi ve boyutu için ek stil */
.custom-product-reviews-wrapper .star-rating::before,
.custom-product-reviews-wrapper .star-rating span::before {
    font-size: 0.7em !important;
}

/* Değerlendirme Sayısı */
.custom-product-reviews-wrapper .rating-info .total-reviews {
    color: var(--brw-text-light) !important;
    font-size: 14px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobil düzenleme */
@media (max-width: 576px) {
    .custom-product-reviews-wrapper .rating-info {
        gap: 5px !important;
    }
} 

/* Form footer ve rating kısmı */
.custom-product-reviews-wrapper .form-footer {
    display: flex !important;
    align-items: center !important;
}

.custom-product-reviews-wrapper .comment-form-rating {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
}

/* Rating select ve butonlar */
.custom-product-reviews-wrapper .comment-form-rating select {
    padding: 8px 12px !important;
    border: 1px solid var(--brw-border) !important;
    border-radius: var(--brw-radius) !important;
    color: var(--brw-text) !important;
    background-color: var(--brw-white) !important;
}

.custom-product-reviews-wrapper .comment-form-rating .button-group {
    display: flex !important;
    gap: 8px !important;
}

/* Mobil düzenleme */
@media (max-width: 576px) {
    .custom-product-reviews-wrapper .comment-form-rating {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .custom-product-reviews-wrapper .comment-form-rating .button-group {
        display: flex !important;
        gap: 8px !important;
    }
} 

/* Form Stilleri - Yıldızlar */
.custom-product-reviews-wrapper p.stars {
    display: flex !important;
    gap: 0 !important;
    font-size: 24px !important;
    margin: 15px 0 !important;
    padding: 0 !important;
}

.custom-product-reviews-wrapper p.stars span {
    display: flex !important;
    flex-direction: row-reverse !important;
}

.custom-product-reviews-wrapper p.stars a {
    font-size: 32px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    color: #D3D3D3 !important;
    position: relative !important;
}

.custom-product-reviews-wrapper p.stars a::before {
    content: "\2605" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #D3D3D3 !important;
}

/* Hover ve Seçili Durumlar */
.custom-product-reviews-wrapper p.stars a:hover::before,
.custom-product-reviews-wrapper p.stars a:hover ~ a::before {
    color: var(--brw-star-color) !important;
}

/* Seçili Durumlar */
.custom-product-reviews-wrapper p.stars.selected a.active::before,
.custom-product-reviews-wrapper p.stars.selected a.active ~ a::before {
    color: var(--brw-star-color) !important;
}

.custom-product-reviews-wrapper p.stars.selected a:not(.active)::before {
    color: var(--brw-border) !important;
} 

/* Yorum Fotoğrafları */
.custom-product-reviews-wrapper .review-image {
    width: 100px !important;
    height: 100px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 2px dashed rgba(0, 0, 0, 0.1) !important; /* Kesikli çerçeve */
    padding: 3px !important; /* İç boşluk */
    background: var(--brw-white) !important;
    transition: all 0.2s ease !important;
}

.custom-product-reviews-wrapper .review-image:hover {
    border-color: rgba(59, 130, 246, 0.3) !important; /* Hover durumunda mavi tonunda */
    transform: scale(1.02) !important; /* Hafif büyüme efekti */
}

.custom-product-reviews-wrapper .review-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important; /* İç kısım için daha küçük radius */
} 

/* Özel Checkbox Stilleri */
.custom-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    position: relative !important;
    padding-left: 30px !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    user-select: none !important;
    color: var(--brw-text-light) !important;
}

.custom-checkbox input {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    height: 0 !important;
    width: 0 !important;
}

.custom-checkbox .checkmark {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 20px !important;
    width: 20px !important;
    background-color: var(--brw-white) !important;
    border: 2px solid var(--brw-border) !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--brw-primary) !important;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--brw-primary) !important;
    border-color: var(--brw-primary) !important;
}

.custom-checkbox .checkmark:after {
    content: "" !important;
    position: absolute !important;
    display: none !important;
    left: 6px !important;
    top: 2px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block !important;
}

.custom-checkbox .checkbox-text {
    line-height: 1.4 !important;
    margin-top: 2px !important;
}

/* Mobil Düzenleme */
@media (max-width: 576px) {
    .custom-checkbox {
        font-size: 13px !important;
    }
    
    .custom-checkbox .checkmark {
        height: 18px !important;
        width: 18px !important;
    }
    
    .custom-checkbox .checkmark:after {
        left: 5px !important;
        top: 2px !important;
        width: 3px !important;
        height: 7px !important;
    }
} 

/* Cookie onay alanı container'ı */
.comment-form-cookies {
    margin: 0 !important;
    padding: 0 !important;
} 

/* Form Submit Container */
.custom-product-reviews-wrapper .form-submit {
    display: none !important; /* Varsayılan submit alanını gizle */
}

/* Fotoğraf Kaldırma Butonu */
.custom-product-reviews-wrapper .remove-image {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    width: 20px !important;
    height: 20px !important;
    background: var(--brw-white) !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: var(--brw-text) !important;
    transition: all 0.2s ease !important;
}

.custom-product-reviews-wrapper .remove-image:hover {
    background: #f3f4f6 !important;
    transform: scale(1.1) !important;
} 

/* Loading göstergesi */
.loading {
    text-align: center !important;
    padding: 20px !important;
    color: var(--brw-text-light) !important;
}

.loading:after {
    content: "..." !important;
    animation: loading 1.5s infinite !important;
}

@keyframes loading {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
} 

/* Yıldız Derecelendirme Sistemi */
.custom-product-reviews-wrapper .stars {
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-product-reviews-wrapper .stars a {
    width: 32px !important;
    height: 32px !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23D3D3D3' stroke='none'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Hover efektleri */
.custom-product-reviews-wrapper .stars:hover a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23D3D3D3' stroke='none'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") !important;
}

.custom-product-reviews-wrapper .stars a:hover,
.custom-product-reviews-wrapper .stars a:hover ~ a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23FFB900' stroke='none'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") !important;
}

/* Seçili durum */
.custom-product-reviews-wrapper .stars.selected a.active,
.custom-product-reviews-wrapper .stars.selected a.active ~ a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23FFB900' stroke='none'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") !important;
}

/* Mobil için düzenleme */
@media (max-width: 576px) {
    .custom-product-reviews-wrapper .stars a {
        width: 28px !important;
        height: 28px !important;
    }
} 

/* Yorum Yıldızları */
.review-stars {
    display: inline-flex !important;
    gap: 0 !important;
    margin-left: 2px !important;
    align-items: center !important;
}

.review-stars .star {
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin-right: -4px !important;
}

/* Yıldızların boyutunu mobilde ayarla */
@media (max-width: 576px) {
    .review-stars .star {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Yazar adı ve yıldız hizalaması */
.name-rating {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
} 

/* Ortalama değerlendirme yıldızları */
.custom-product-reviews-wrapper .rating-info .review-stars .star {
    width: 24px !important;
    height: 24px !important;
} 

/* Mobil için düzenleme */
@media (max-width: 576px) {
    .custom-product-reviews-wrapper .rating-info .rating-number span {
        font-size: 32px !important;
    }
    .custom-product-reviews-wrapper .rating-info .review-stars .star {
        width: 20px !important;
        height: 20px !important;
    }
} 

/* Yorum Yanıtlama */
.review-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 16px !important;
}

.comment-actions {
    display: flex !important;
    gap: 8px !important;
}

/* Yanıt Formu */
.reply-form-container {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    padding: 16px !important;
    background: var(--brw-background) !important;
    border-radius: var(--brw-radius) !important;
}

.reply-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.reply-form textarea {
    width: 100% !important;
    min-height: 80px !important;
    padding: 12px !important;
    border: 1px solid var(--brw-border) !important;
    border-radius: var(--brw-radius) !important;
    background: var(--brw-white) !important;
}

.reply-form .reply-buttons {
    display: flex !important;
    gap: 8px !important;
}

.reply-form button {
    padding: 8px 16px !important;
    border-radius: var(--brw-radius) !important;
    cursor: pointer !important;
    flex: 1 !important;
}

.reply-submit {
    background: var(--brw-primary) !important;
    color: var(--brw-white) !important;
    border: none !important;
    margin-right: 8px !important;
}

.reply-cancel {
    background: transparent !important;
    border: 1px solid var(--brw-border) !important;
    color: var(--brw-text) !important;
}

/* Yorum Yanıtları */
.comment-replies {
    margin-top: 20px !important;
    padding: 16px !important;
    background: var(--brw-background) !important;
    border-radius: var(--brw-radius) !important;
    border: 1px solid var(--brw-border) !important;
    width: 100% !important;
}

.reply-item {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.reply-item:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.reply-author img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
}

.reply-content {
    flex: 1 !important;
    background: var(--brw-white) !important;
    padding: 12px 16px !important;
    border-radius: var(--brw-radius) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.reply-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.reply-author-name {
    font-weight: 500 !important;
    color: var(--brw-text) !important;
    font-size: 15px !important;
}

.reply-date {
    color: var(--brw-text-light) !important;
    font-size: 13px !important;
}

.reply-content p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--brw-text) !important;
    margin: 0 !important;
    padding-top: 4px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Düzenleme Popup */
.edit-popup {
    display: none;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #FFFFFF !important;
    padding: 24px !important;
    border-radius: var(--brw-radius) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    z-index: 100000 !important;
    width: 90% !important;
    max-width: 500px !important;
}

.edit-popup-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
}

.edit-popup textarea {
    width: 100% !important;
    min-height: 120px !important;
    margin-bottom: 16px !important;
    padding: 12px !important;
    border: 1px solid var(--brw-border) !important;
    border-radius: var(--brw-radius) !important;
    resize: vertical !important;
    background: #FFFFFF !important;
    color: var(--brw-text) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.edit-popup textarea:focus {
    outline: none !important;
    border-color: var(--brw-primary) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
}

.edit-popup-buttons {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

.edit-popup-buttons button {
    padding: 8px 16px !important;
    border-radius: var(--brw-radius) !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

.edit-popup-buttons .reply-submit {
    background: var(--brw-primary) !important;
    color: var(--brw-white) !important;
    border: none !important;
}

.edit-popup-buttons .reply-cancel {
    background: transparent !important;
    border: 1px solid var(--brw-border) !important;
    color: var(--brw-text) !important;
}

/* Mobil düzenleme */
@media (max-width: 576px) {
    .review-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }
    
    .helpful-button.helpful-main {
        font-size: 13px !important;
        padding: 6px 12px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .comment-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 6px !important;
    }
    
    .comment-actions .helpful-button {
        font-size: 12px !important;
        padding: 6px 10px !important;
        width: 100% !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }
    
    .comment-actions .helpful-button svg {
        width: 14px !important;
        height: 14px !important;
    }
} 

/* Faydalı Butonu */
.helpful-button.helpful-main {
    background: var(--brw-white) !important;
    border: 1px solid var(--brw-border) !important;
    color: var(--brw-text-light) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.helpful-button.helpful-main:hover {
    background: rgba(59, 130, 246, 0.05) !important;
    border-color: var(--brw-primary) !important;
    color: var(--brw-primary) !important;
}

.helpful-button.helpful-main.is-helpful {
    background: var(--brw-primary) !important;
    border-color: var(--brw-primary) !important;
    color: var(--brw-white) !important;
}

.helpful-button.helpful-main svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2px !important;
}

.helpful-button.helpful-main.is-helpful svg {
    stroke: var(--brw-white) !important;
}

/* Diğer Butonlar */
.comment-actions .helpful-button {
    background: transparent !important;
    border: 1px solid var(--brw-border) !important;
    color: var(--brw-text-light) !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
}

.comment-actions .helpful-button:hover {
    border-color: var(--brw-primary) !important;
    color: var(--brw-primary) !important;
}

/* Mobil düzenleme */
@media (max-width: 576px) {
    .helpful-button.helpful-main {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
    
    .review-actions {
        flex-direction: column !important;
        align-items: flex-end !important;
    }
} 

/* Mobil düzenleme */
@media (max-width: 576px) {
    .reply-form-container {
        margin-top: 16px !important;
        margin-bottom: 16px !important;
        padding: 12px !important;
        width: 100% !important;
    }
    
    .reply-form {
        width: 100% !important;
    }
    
    .reply-form textarea {
        width: 100% !important;
        min-height: 80px !important;
    }
    
    .reply-form .reply-buttons {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
    
    .reply-form button {
        width: 100% !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    .reply-submit {
        margin-right: 0 !important;
    }
} 

/* İlk yorum için üst padding'i azalt */
.single-review:first-child {
    padding-top: 16px !important;
} 

/* Özel Yorum Lightbox */
.brw-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    cursor: pointer;
}

.brw-lightbox-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000000;
    max-width: 90%;
    max-height: 90vh;
}

.brw-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.brw-lightbox-close {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 1000001;
}

.brw-lightbox-nav {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 1000001;
}

.brw-lightbox-prev {
    left: 20px;
}

.brw-lightbox-next {
    right: 20px;
} 

/* No Avatar Stili */
.no-avatar {
    width: 70px !important;
    height: 70px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #f7fafc, #e2e8f0) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.no-avatar svg {
    width: 45% !important;
    height: 45% !important;
    color: rgba(0, 0, 0, 0.8) !important;
    position: relative !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05)) !important;
}

.reply-author .no-avatar {
    width: 40px !important;
    height: 40px !important;
}

@media (max-width: 768px) {
    .no-avatar {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 375px) {
    .no-avatar {
        width: 40px !important;
        height: 40px !important;
    }
} 