.rw-container { font-family: 'Manrope', Arial, sans-serif; color: #000; width: 100%; margin: 20px 0; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
.rw-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; user-select: none; }
.rw-title-group { display: flex; align-items: center; gap: 15px; }
.rw-title { font-size: 20px; font-weight: 500; margin: 0; }
.rw-rating-summary { display: flex; align-items: center; gap: 5px; font-size: 14px; color: #666; }
.rw-star-icon { width: 14px; height: 14px; fill: #000; }
.rw-star-icon.empty { fill: #e5e5e5; }

.rw-header-actions { display: flex; align-items: center; gap: 15px; }
.rw-header-btn { padding: 6px 14px; background: #1b1b1b; color: white; border: none; border-radius: 4px; font-size: 13px; font-weight: 500; cursor: pointer; transition: 0.2s; font-family: inherit; }
.rw-header-btn:hover { background: #333333; }
.rw-toggle-icon { font-size: 24px; font-weight: 300; line-height: 1; transition: transform 0.3s; }
.rw-expanded .rw-toggle-icon { transform: rotate(45deg); }

/* Простое скрытие/показ вместо анимации */
.rw-content { display: none; padding-bottom: 20px; }
.rw-expanded .rw-content { display: block; border-top: 1px solid #e5e5e5; padding-top: 20px; }

.rw-controls { display: flex; justify-content: flex-end; margin-bottom: 15px; }
.rw-select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 13px; background: #fff; cursor: pointer; color: #333; outline: none; }

.rw-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.rw-item { border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }
.rw-item:last-child { border-bottom: none; }
.rw-item-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.rw-item-name { font-weight: 500; font-size: 15px; }
.rw-item-date { font-size: 13px; color: #999; }
.rw-item-text { font-size: 15px; line-height: 1.5; color: #333; margin: 0; }

.rw-btn { display: inline-block; padding: 12px 24px; background-color: #1b1b1b; color: #fff; border: none; font-size: 14px; font-weight: 500; font-family: inherit; cursor: pointer; text-align: center; border-radius: 4px; transition: 0.2s; }
.rw-btn:hover { background-color: #333333; }
.rw-btn-outline { background-color: transparent; border: 1px solid #1b1b1b; color: #1b1b1b; }
.rw-btn-outline:hover { background-color: #f3f4f6; }

.rw-btn-upload { background-color: #1b1b1b; color: #fff; border: none; padding: 10px 18px; font-family: inherit; font-size: 13px; font-weight: 500; border-radius: 4px; cursor: pointer; transition: opacity 0.2s; display: inline-block; margin-top: 5px; }
.rw-btn-upload:hover { opacity: 0.85; }
.rw-file-input { display: none; } 

.rw-preview-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.rw-preview-item { position: relative; width: 70px; height: 70px; border-radius: 4px; border: 1px solid #eee; }
.rw-preview-img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.rw-preview-remove { position: absolute; top: -6px; right: -6px; background: #ef4444; color: white; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; cursor: pointer; user-select: none; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

.rw-photos-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rw-item-photo { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid #e5e5e5; cursor: pointer; transition: opacity 0.2s; }
.rw-item-photo:hover { opacity: 0.85; }

.rw-form-container { display: none; background: #f9fafb; padding: 20px; border-radius: 6px; }
.rw-form-group { margin-bottom: 15px; }
.rw-label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; color: #555; }
.rw-input, .rw-textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; font-size: 14px; box-sizing: border-box; background: #fff; }
.rw-input:focus, .rw-textarea:focus { outline: none; border-color: #1b1b1b; }
.rw-rating-input { display: flex; gap: 5px; cursor: pointer; }
.rw-rating-input svg { width: 24px; height: 24px; fill: #e5e5e5; transition: fill 0.2s; }
.rw-rating-input svg.active { fill: #1b1b1b; }
.rw-msg { display: none; padding: 15px; background: #f3f4f6; color: #1b1b1b; font-size: 14px; border-radius: 4px; border: 1px solid #e5e5e5; }

@media (max-width: 480px) {
    .rw-title-group { flex-direction: column; align-items: flex-start; gap: 6px; }
    .rw-header { align-items: flex-start; }
    .rw-header-actions { margin-top: 2px; }
    .rw-title { font-size: 18px; }
}


/* --- Встроенная Галерея (Lightbox) --- */
.rw-gallery-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(27, 27, 27, 0.95); z-index: 9999999; align-items: center; justify-content: center; flex-direction: column; }
.rw-gallery-img { max-width: 90%; max-height: 80vh; object-fit: contain; border-radius: 4px; user-select: none; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.rw-gallery-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; z-index: 2; transition: opacity 0.2s; user-select: none; }
.rw-gallery-close:hover { opacity: 0.7; }
.rw-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); color: white; background: transparent; border: none; font-size: 50px; cursor: pointer; padding: 20px; z-index: 2; transition: opacity 0.2s; user-select: none; }
.rw-gallery-nav:hover { opacity: 0.7; }
.rw-gallery-prev { left: 10px; }
.rw-gallery-next { right: 10px; }
.rw-gallery-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; letter-spacing: 1px; font-weight: 500; }


/* --- Ответ от бренда --- */
.rw-brand-reply { margin-top: 15px; padding: 15px; background: #f9fafb; border-left: 3px solid #1b1b1b; border-radius: 0 4px 4px 0; }
.rw-brand-reply-header { font-size: 13px; font-weight: bold; margin-bottom: 5px; color: #1b1b1b; display: flex; align-items: center; gap: 6px; }
.rw-brand-reply-text { font-size: 14px; line-height: 1.5; color: #444; margin: 0; }
