#nastry-ai-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 320px;
    height: 450px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
    overflow: hidden;
}

#nastry-ai-container.minimized {
    width: 60px;
    height: 60px;
    padding: 0;
    cursor: pointer;
    background: #000;
    border-radius: 50%;
}

#nastry-ai-container.minimized #nastry-ai-header,
#nastry-ai-container.minimized #nastry-ai-messages,
#nastry-ai-container.minimized #nastry-ai-input-area {
    display: none;
}

#nastry-ai-container.minimized::after {
    content: "💬";
    font-size: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#nastry-ai-header {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
    position: relative;
}

#nastry-ai-header img {
    max-width: 120px;
    height: auto;
}

#nastry-ai-minimize {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

#nastry-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

#nastry-ai-messages div {
    margin-bottom: 12px;
    line-height: 1.5;
    max-width: 90%;
    padding: 8px 12px;
    border-radius: 15px;
    word-wrap: break-word;
}

#nastry-ai-messages .message-user {
    background: #007aff;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

#nastry-ai-messages .message-ai {
    background: #f0f0f0;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

#nastry-ai-input-area {
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    display: flex;
}

#nastry-ai-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 10px;
}

#nastry-ai-send {
    padding: 10px 15px;
    background: #007aff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 20px;
}

/* Stili per il Banner Exit-Intent */
#ai-acr-exit-intent-banner {
    display: none; /* Nascosto di default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

#ai-acr-exit-intent-banner.visible {
    display: flex; /* Mostrato via JS */
}

#ai-acr-exit-intent-banner .banner-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#ai-acr-exit-intent-banner h3 {
    margin-top: 0;
    font-size: 24px;
}

#ai-acr-exit-intent-banner p {
    font-size: 16px;
    margin-bottom: 25px;
}

#ai-acr-exit-intent-banner button {
    background: #007aff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}