/*LIVECHAT BAUFIT PREMIUM PAWS*/
.chat-button-open {
    bottom: 4rem;
    right: 1em;
    position: fixed;
    z-index: 9;
    display: flex;
    gap: 0.5rem;
    align-content: center;
    align-items: center;
}

.chat-button-open .text {
    background: #DAB250;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0px 3px 8px rgba(218, 178, 80, 0.3);
}

.icon-chat {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50px;
    border: 1px solid #DAB250;
    animation: 1s pulse alternate infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    padding: 4px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 12px rgba(218, 178, 80, 0.6);
    }
    100% {
        box-shadow: 0 0 12px rgba(218, 178, 80, 0.8);
    }
}

.chat-widget {
    width: 320px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    position: fixed;
    bottom: 3.5rem;
    right: 0.5rem;
    z-index: 99;
    visibility: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
}

.chat-header {
    background: #DAB250;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header .operator-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.chat-header img {
    width: 40px;
    height: 40px;
    background: white;
    padding: 4px;
    border-radius: 50px;
    object-fit: contain;
}

.chat-header-actions .chat-header-action-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 0;
    cursor: pointer;
}

.chat-messages {
    height: 320px;
    overflow-y: auto;
    padding: 12px;
    background: #ffffff;
}

.message {
    padding: 6px 0;
    margin: 8px 0;
    border-radius: 12px;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.message.customer {
    justify-content: flex-end;
}

.message .response {
    font-size: 0.9rem;
    line-height: 1.4;
    background: #f8f9fa;
    color: #333333;
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 220px;
    word-wrap: break-word;
    border: 1px solid #e9ecef;
}

.message.customer .response {
    background: #DAB250;
    color: #ffffff;
}

.message img {
    width: 32px;
    height: 32px;
    background: white;
    /* padding: 3px; */
    border-radius: 50px;
    flex-shrink: 0;
    object-fit: contain;
    /* border: 1px solid #1D2A30; */
}

.message.customer img {
    background: #FFFFFF;
}

.received {
    background: #444;
}

.sent {
    background: #2c5530;
    align-self: flex-end;
}

.typing-indicator {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.typing-indicator span {
    display: inline-block;
    background: #DAB250;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-footer {
    background: #f8f9fa;
    display: flex;
    padding: 12px;
    gap: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.chat-input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #DAB250;
    box-shadow: 0 0 0 2px rgba(218, 178, 80, 0.1);
}

.send-button {
    padding: 6px 12px;
    margin-left: 5px;
    border-radius: 50%;
    background: #DAB250;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    background: #C19B3A;
}

.send-button svg {
    fill: #ffffff;
}

.reset-button {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 8px;
    width: 100%;
    border-top: 1px solid #dee2e6;
    cursor: pointer;
}

/* Scrollbar styles */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Link styles */
.message .response a {
    color: #2c5530;
    text-decoration: underline;
    font-weight: 600;
}

.message.customer .response a {
    color: #DAB250;
}

/* Responsive design */
@media (max-width: 767px) {
    .chat-widget {
        width: calc(100% - 1rem);
        right: 0.5rem;
    }
    
    .chat-button-open .text { 
        font-size: 1rem;
        padding: 10px 14px;
    }
    
    .message .response {
        font-size: 1rem;
        max-width: 200px;
    }
    
    .chat-messages {
        height: 280px;
    }
    
    .icon-chat {
        width: 40px;
        height: 40px;
    }
}