#egc-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: sans-serif;
    font-weight: bold;
    z-index: 99999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#egc-chat-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 400px; /* ΑΛΛΑΓΗ: Ήταν 320px ή 340px, τώρα είναι πιο πλατύ */
    height: 550px; /* ΑΛΛΑΓΗ: Ήταν 420px, τώρα είναι πιο ψηλό */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 99999;
    overflow: hidden;
    font-family: sans-serif;
}

#egc-chat-header {
    background: #0073aa;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#egc-chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#egc-chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f9f9f9;
}

.egc-msg {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.5;
}

.egc-bot {
    background: #e5e5ea;
    color: #000;
    align-self: flex-start;
}

.egc-user {
    background: #0073aa;
    color: #fff;
    margin-left: auto;
}

/* Styled Product Links */
.egc-msg a.egc-product-link {
    color: #0073aa;
    font-weight: bold;
    text-decoration: underline;
    display: inline-block;
    margin-top: 4px;
}

#egc-chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}

#egc-user-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#egc-send-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 12px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
}

/* Action Chips (Quick Replies) */
.egc-action-chips {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding-left: 10px;
}

.egc-end-chat-btn {
    background: transparent;
    border: 1px solid #d9534f;
    color: #d9534f;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.egc-end-chat-btn:hover {
    background: #d9534f;
    color: white;
}

/* System Separator Message */
.egc-system-msg {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin: 15px 0;
    font-style: italic;
    position: relative;
}

.egc-system-msg::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
}

.egc-system-msg span {
    background: #f9f9f9;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

/* Hardcoded Product Card Styles */
.egc-product-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.egc-product-thumb {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.egc-product-details {
    flex-grow: 1;
    font-size: 13px;
    line-height: 1.4;
}

.egc-product-details strong {
    font-size: 14px;
    color: #333;
}

.egc-price {
    font-weight: bold;
    color: #d9534f;
    display: inline-block;
    margin-top: 4px;
}


@media (max-width: 600px) {
    #egc-chat-box {
        width: calc(100% - 40px); /* Leaves a 20px gap on both sides */
        height: 75vh; /* Takes up 75% of the screen height */
        right: 20px;
        left: 20px;
        bottom: 80px;
    }

    #egc-chat-toggle {
        right: 20px;
        bottom: 20px;
        font-size: 14px; /* Slightly smaller text for mobile */
        padding: 10px 16px;
    }
}