/**
 * AI Product Assistant - Product Assistant CSS - Cleaned Version
 * NOTE: Shares styles from frontend.css: .aipa-close, @keyframes aipaFadeIn, .aipa-spinner, @keyframes aipaSpin, .aipa-loading-spinner
 */

/* Product Assistant Button */
.aipa-product-assistant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    background-color: #2196F3;
    color: white;
    transition: all 0.3s;
    margin: 15px 0;
}

.aipa-product-assistant-btn:hover {
    background-color: #0b7dda;
}

/* Product Assistant Modal Window */
.aipa-product-assistant-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.aipa-product-assistant-modal-content {
    position: relative;
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: aipaFadeIn 0.3s;
}

/* Product Assistant Form */
.aipa-product-assistant-form {
    margin: 20px 0;
}

.aipa-product-assistant-input,
#aipa-product-assistant-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-height: 100px;
    resize: vertical;
}

.aipa-product-assistant-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    background-color: #4CAF50;
    color: white;
    transition: all 0.3s;
}

.aipa-product-assistant-submit-btn:hover {
    background-color: #45a049;
}

.aipa-product-assistant-submit-btn.analyzing .aipa-spinner {
    display: inline-block;
}

/* Error Message */
.aipa-product-assistant-error {
    background-color: #ffebee;
    color: #f44336;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    display: none;
}

/* Loading Display */
.aipa-product-assistant-loading {
    text-align: center;
    padding: 30px 0;
}

/* Analysis Results - Scoped to product assistant context */
.aipa-product-assistant .aipa-analysis-main {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.aipa-product-assistant .aipa-analysis-main h4 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.aipa-analysis-content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.aipa-product-features,
.aipa-product-recommendations {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.aipa-product-features h4,
.aipa-product-recommendations h4 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #333;
}

.aipa-product-features ul,
.aipa-product-recommendations ul {
    margin: 0 0 0 20px;
    padding: 0;
}

.aipa-product-features li,
.aipa-product-recommendations li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.aipa-product-features li {
    color: #2196F3;
}

.aipa-product-recommendations li {
    color: #4CAF50;
}

/* Embedded Product Assistant */
.aipa-product-assistant-embed {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.aipa-product-assistant-embed h3 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
}

.aipa-product-assistant-embed p {
    margin-bottom: 20px;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .aipa-product-assistant-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .aipa-product-assistant-submit-btn {
        width: 100%;
    }
    
    .aipa-product-assistant-embed {
        padding: 15px;
    }
}