#pinelaki-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#pinelaki-chat-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

#pinelaki-chat-button:hover {
    transform: scale(1.05);
    background-color: #43a047;
}

.pinelaki-icon {
    font-size: 20px;
}

.pinelaki-logo-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.pinelaki-text {
    font-weight: bold;
    font-size: 16px;
}

/* Chat Window */
#pinelaki-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* transition: all 0.3s ease; */
}

.pinelaki-chat-header {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pinelaki-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#pinelaki-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#pinelaki-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pinelaki-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.4;
    font-size: 14px;
    word-wrap: break-word;
    white-space: pre-wrap; /* Preserve newlines */
}

.pinelaki-message a {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
}

.bot-message a {
    color: #4CAF50;
}

.bot-message {
    align-self: flex-start;
    background-color: #e9e9eb;
    color: black;
    border-bottom-left-radius: 2px;
}

.user-message {
    align-self: flex-end;
    background-color: #4CAF50;
    color: white;
    border-bottom-right-radius: 2px;
}

.pinelaki-input-area {
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    background-color: white;
}

#pinelaki-user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#pinelaki-user-input:focus {
    border-color: #4CAF50;
}

#pinelaki-send-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pinelaki-send-btn:hover {
    background-color: #43a047;
}

/* Typing Indicator */
.typing-indicator {
    font-style: italic;
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    #pinelaki-chat-window {
        width: 300px; /* slightly smaller on mobile */
        right: -10px; /* align with button somewhat */
    }
}

/* Action Buttons */
.pinelaki-action-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    color: white !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
    box-sizing: border-box;
}

.pinelaki-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pinelaki-btn-whatsapp {
    background-color: #25D366;
}
.pinelaki-btn-whatsapp:hover {
    background-color: #128C7E;
}

.pinelaki-btn-viber {
    background-color: #7360f2;
}
.pinelaki-btn-viber:hover {
    background-color: #5949d6;
}

.pinelaki-btn-shop {
    background-color: #2196F3;
}
.pinelaki-btn-shop:hover {
    background-color: #1976D2;
}

.pinelaki-btn-location {
    background-color: #EA4335;
}
.pinelaki-btn-location:hover {
    background-color: #C62828;
}
