/* ABD Reviews Styles */
.abd-reviews-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.abd-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.abd-reviews-header h3 {
    margin: 0;
    color: #333;
}

/* Rating Stars */
.abd-stars {
    display: inline-block;
}

.abd-stars-small .abd-star {
    font-size: 12px;
}

.abd-stars-normal .abd-star {
    font-size: 16px;
}

.abd-stars-large .abd-star {
    font-size: 20px;
}

.abd-star {
    color: #ffa500;
    margin-right: 2px;
}

.abd-star-empty {
    color: #ddd;
}

/* Rating Summary */
.abd-rating-summary {
    display: flex;
    gap: 20px;
    align-items: center;
}

.abd-rating-overview {
    text-align: center;
}

.abd-average-rating {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
}

.abd-rating-count {
    color: #666;
    font-size: 14px;
}

.abd-rating-breakdown {
    flex: 1;
    max-width: 300px;
}

.abd-rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 10px;
}

.abd-rating-label {
    min-width: 40px;
    font-size: 12px;
}

.abd-rating-progress {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.abd-rating-fill {
    height: 100%;
    background: #ffa500;
    border-radius: 4px;
}

/* Review Form */
.abd-review-form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.abd-review-form h4 {
    margin-top: 0;
    color: #333;
}

.abd-form-group {
    margin-bottom: 15px;
}

.abd-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Rating Input Stars */
.abd-rating-input {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.abd-rating-input input[type="radio"] {
    display: none;
}

.abd-rating-input label.abd-star {
    font-size: 24px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
    margin: 0;
    padding: 0;
}

.abd-rating-input input[type="radio"]:checked + label.abd-star,
.abd-rating-input input[type="radio"]:checked ~ label.abd-star {
    color: #ffa500;
}

.abd-rating-input label.abd-star:hover,
.abd-rating-input label.abd-star.hover {
    color: #ffa500;
}

.abd-rating-input label.abd-star.selected {
    color: #ffa500;
}

/* Form Elements */
.abd-form-group input[type="text"],
.abd-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.abd-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.abd-form-actions {
    margin-top: 20px;
}

.abd-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.abd-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.abd-btn-primary {
    background: #007cba;
}

.abd-btn-secondary {
    background: #6c757d;
}
/* Response Form */
.abd-response-form-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.abd-response-form-container h6 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
}

.abd-response-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
}

.abd-response-form .abd-form-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.abd-response-form .abd-btn {
    padding: 8px 16px;
    font-size: 13px;
}

.abd-response-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    display: none;
    font-size: 13px;
}
/* Review Limits */
.abd-review-limits {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #1565c0;
}

.abd-review-limit-reached {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

/* Reviews List */
.abd-reviews-list {
    margin-top: 20px;
}

.abd-review-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    position: relative;
}

.abd-review-featured {
    border-left: 4px solid #ffa500;
}

.abd-review-featured::before {
    content: "⭐ Featured";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffa500;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.abd-review-header {
    margin-bottom: 15px;
}

.abd-reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.abd-reviewer-avatar {
    flex-shrink: 0;
}

.abd-reviewer-avatar img {
    border-radius: 50%;
}

.abd-reviewer-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.abd-review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.abd-review-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.abd-review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Business Response */
.abd-business-response {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 3px solid #007cba;
}

.abd-business-response h6 {
    margin: 0 0 10px 0;
    color: #007cba;
    font-weight: 600;
}

.abd-response-content {
    margin-bottom: 10px;
    line-height: 1.6;
}

.abd-response-date {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Review Actions */
.abd-review-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.abd-helpful-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
}

.abd-helpful-btn:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.abd-helpful-btn.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* Compact Rating */
.abd-rating-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.abd-rating-number {
    font-weight: bold;
    color: #333;
}

/* Featured Badge */
.abd-featured-badge {
    background: #ffa500;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

/* No Reviews */
.abd-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Notices */
.abd-reviews-upgrade-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.abd-reviews-upgrade-notice h3 {
    margin-top: 0;
    color: #856404;
}

.abd-upgrade-message {
    color: #856404;
}

.abd-review-form-notice {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

.abd-review-login-notice {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

/* Messages */
.abd-review-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.abd-review-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.abd-review-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .abd-rating-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .abd-reviewer-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .abd-review-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .abd-reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}