/**
 * Chattr Proactive Messages Styles
 */

.chattr-proactive-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9998;
    max-width: 360px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.chattr-proactive-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chattr-proactive-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 20px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chattr-proactive-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.chattr-proactive-close:hover {
    background: #f5f5f5;
    color: #333;
}

.chattr-proactive-text {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 16px;
    padding-right: 20px;
}

.chattr-proactive-cta {
    background: var(--chattr-primary, #536CDD);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.chattr-proactive-cta:hover {
    background: var(--chattr-primary-hover, #3a51bb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(83, 108, 221, 0.3);
}

/* Mobile styles */
@media (max-width: 480px) {
    .chattr-proactive-popup {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 80px;
    }
    
    .chattr-proactive-content {
        padding: 16px;
    }
    
    .chattr-proactive-text {
        font-size: 14px;
    }
}

/* Dark mode support - removed automatic detection to prevent conflicts */

/* Animation for multiple messages */
.chattr-proactive-popup:nth-child(2) {
    bottom: 420px;
}

.chattr-proactive-popup:nth-child(3) {
    bottom: 740px;
}