/**
 * AI Product Reviews Widget Styles
 */

.dinopack-ai-product-reviews {
    position: relative;
}

.dinopack-generate-summary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #6F9C50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.dinopack-generate-summary-btn:hover {
    background: #5a7d3f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dinopack-generate-summary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dinopack-btn-loader .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dinopack-ai-review-summary {
    line-height: 1.6;
    margin-top: 20px;
}

.dinopack-ai-review-summary p {
    margin-bottom: 1em;
}

.dinopack-ai-review-summary .dinopack-placeholder {
    color: #999;
    font-style: italic;
}

.dinopack-ai-review-summary ul {
    list-style: none;
    padding-left: 0;
}

.dinopack-ai-review-summary ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.dinopack-ai-review-summary ul li:last-child {
    border-bottom: none;
}

.dinopack-ai-review-summary .pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.dinopack-ai-review-summary .pros,
.dinopack-ai-review-summary .cons {
    padding: 15px;
    border-radius: 4px;
}

.dinopack-ai-review-summary .pros {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.dinopack-ai-review-summary .cons {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.dinopack-ai-error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .dinopack-ai-review-summary .pros-cons {
        grid-template-columns: 1fr;
    }
}

