/**
 * RevUp Web Chat Styles
 */

/* Chat Toggle Button (Minimized state) */
.revup-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0073aa;
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.revup-chat-toggle:hover {
    transform: scale(1.1);
}

/* Chat Window */
.revup-chat-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.revup-chat-window.revup-chat-minimized {
    display: none;
}

.revup-chat-header {
    padding: 15px;
    background-color: #0073aa;
    color: #fff;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.revup-minimize-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.revup-minimize-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.revup-chat-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.revup-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.revup-message strong {
    font-weight: 600;
    color: #0073aa;
}

.revup-message em {
    font-style: italic;
}

.revup-chat-footer {
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #fff;
}

.revup-chat-footer input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.revup-send-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.revup-send-btn:hover {
    background-color: #005a87;
}

.revup-escalate-btn {
    background-color: #d63638;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.revup-escalate-btn:hover {
    background-color: #b32d2e;
}

/* Product Card */
.revup-product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.revup-product-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.revup-product-price {
    color: #0073aa;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.revup-add-to-cart-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease;
}

.revup-add-to-cart-btn:hover {
    background-color: #005a87;
}

.revup-add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Typing Indicator Container */
.revup-typing-container {
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    padding: 10px;
    min-height: 40px;
    display: none;
}

/* Typing Indicator */
.revup-typing-indicator {
    text-align: center;
}

.revup-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
