#wp-chat-n8n-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    z-index: 99999;
    position: fixed;
}

#wp-chat-n8n-container.bottom-right {
    bottom: 25px;
    right: 100px;
 
}

#wp-chat-n8n-container.bottom-left {
    bottom: 25px;
    left: 25px;
}
.chat-user-info {
    display: none;
}
.chat-input-area label span {
    color: red;
    font-weight: bold;
}

.new-messages-marker {
    text-align: center;
    margin: 10px 0;
    font-size: 12px;
    color: #888;
}

.new-messages-marker hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 5px 0;
}
.marker-text {
    background-color: #f9f9f9;
    display: inline-block;
    padding: 0 10px;
    position: relative;
    top: -12px;
}

#wp-chat-n8n-container.top-right {
    top: 20px;
    right: 80px;
}

#wp-chat-n8n-container.top-left {
    top: 20px;
    left: 20px;
}
.message-content {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
#wp-chat-n8n-container .chat-toggle.has-new-message {
    animation: pulse 1s infinite;
    background-color: #ff5050 !important; 
}
.chat-toggle {
    width: 55px;
    height: 55px;
    border-radius: 100%;
    background-color: #0073aa;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
}
@keyframes slowPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.chat-toggle {
    padding: 18px 21px;
   
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
     animation: slowPulse 1.5s infinite;
}


.chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.chat-icon-wp {
  
    font-size: 30px;
}

.chat-label {
    font-weight: 500;
}

.chat-window {
    width: 380px;  
    max-width: 90vw;  
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    padding: 12px 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-weight: bold;
}

.chat-status {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.2);
}

.chat-status.online {
    background-color: #09ff6f;
}

.chat-status.offline {
    background-color: #dc3232;
}

.chat-close {
    cursor: pointer;
    font-size: 25px;
    margin-left: 10px;
}

.chat-messages {
    height: 300px;
    padding: 10px;
    background: #f9f9f9;
    overflow-y: auto;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    animation: messageIn 0.2s ease;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: #e5e5ea;
    color: #000;
    margin-right: auto;
}

.user-message {
    background: #023a51;
    color: white;
    margin-left: auto;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
    color:black;
}

.chat-input-area textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    outline: none;
    margin-bottom: 8px;
    font-family: inherit;
    font-size: inherit;
}
#chat_user_email{
    height: 40px;
    margin-bottom: 15px;
     margin: 5px 0 15px 0;
}
.chat-user-info label {
    margin-left: 5px;
}

#chat_user_name{
    height: 40px;
    margin: 5px 0 15px 0;
}
.chat-send-button {
    width: 100%;
    padding: 8px;
    background: #023a51;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send-button:hover {
    background: #2ca507;
}

.message-meta {
    font-size: 0.9em;
}


.user-message .message-meta {
    color: #ddd; 
}


.bot-message .message-meta {
    color: #555; 
}
.chat-send-button:disabled:hover {
    background-color: inherit;
    color: inherit;
    cursor: not-allowed;
    opacity: 0.6; 
}

.chat-send-button:disabled {
    background-color: inherit;
    color: inherit;
    cursor: not-allowed;
    opacity: 0.6; 
}

/* Responsive */
@media (max-width: 480px) {
    #wp-chat-n8n-container {
        width: 100%;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;
        top: auto !important;
    }
    
    #wp-chat-n8n-container .chat-window {
        width: 100%;
        border-radius: 0;
        margin-top: 0;
        bottom: 10px;
        right: 10px;
    }
    
    .chat-toggle {
        border-radius: 0;
    }
    .chat-messages {
    height: 350px;
   
}
}
@media (max-width: 480px) {
    #wp-chat-n8n-container {
        width: auto;
        bottom: 25px !important;
        left: auto !important;
        right: 100px !important;
        top: auto !important;
    }

    #wp-chat-n8n-container .chat-toggle.has-new-message {
        animation: pulse 1s infinite;
        background-color: #ff5050 
    }


    #wp-chat-n8n-container .chat-toggle {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        padding: 0;
    }

    #wp-chat-n8n-container .chat-label {
        display: none;
    }

   #wp-chat-n8n-container .chat-window {
    width: 100%;
    max-width: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1000000;
}
.chat-icon-wp {
      margin-right: 0;
    font-size: 100%;
}
}
