
/* Chat Button */
#edifort-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #2b2b2b, #111);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    animation: pulse 4s infinite;
}

.chat-icon {
    color: #fff;
    font-size: 26px;
}

#chat-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: red;
    border-radius: 50%;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* Chat Window */
#edifort-chat-box {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    display: none;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#edifort-chat-box.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    background: #000;
    color: #fff;
    padding: 12px;
    position: relative;
}

#chat-close {
    position: absolute;
    right: 12px;
    top: 6px;
    cursor: pointer;
    font-size: 22px;
}

.chat-messages {
    padding: 12px;
    height: 200px;
    overflow-y: auto;
}

.bot-msg {
    background: #f1f1f1;
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 6px;
}

.user-msg {
    background: #000;
    color: #fff;
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 6px;
    text-align: right;
}

/* Quick Buttons - Lead Generation */
.quick-questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.quick-card {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s ease;
}

.quick-card:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* Form */
#edifort-chat-form {
    padding: 10px;
    border-top: 1px solid #ddd;
}

#edifort-chat-form input,
#edifort-chat-form textarea {
    width: 100%;
    margin-bottom: 5px;
    padding: 6px;
}

#edifort-chat-form button[type="submit"] {
    width: 100%;
    padding: 8px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover Effect for "Send" Button */
#edifort-chat-form button[type="submit"]:hover {
    background-color: #007cba; /* Change background color on hover */
    cursor: pointer; /* Change cursor to hand */
    transform: scale(1.05); /* Slight grow effect */
    transition: all 0.3s ease-in-out; /* Smooth transition */
}

/* Active state for "Send" button */
#edifort-chat-form button[type="submit"]:active {
    transform: scale(0.98); /* Shrink effect when clicked */
}

/* Chat Status */
.chat-status {
    font-size: 12px;
    margin-top: 4px;
}

/* Mobile Chat Positioning */
@media (max-width: 768px) {
    #edifort-chat-button {
        bottom: 100px; /* Move chat button above Add to Cart */
        right: 15px;
    }

    #edifort-chat-box {
        bottom: 180px; /* Move chat window above Add to Cart */
        right: 10px;
        width: calc(100% - 20px);
    }
}

/* Responsive Text and Button Size */
@media (max-width: 480px) {
    .chat-header {
        font-size: 14px;
    }

    .chat-messages {
        font-size: 12px;
    }

    .quick-card {
        font-size: 12px;
        padding: 8px;
    }

    #edifort-chat-form input,
    #edifort-chat-form textarea {
        font-size: 12px;
        padding: 5px;
    }

    #edifort-chat-form button[type="submit"] {
        font-size: 14px;
        padding: 6px;
    }
}