﻿.chat-btn {
    position: fixed;
    bottom: 50px;
    left: 20px;
    background: #FF6413;
    color: #fff;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1021;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease-in-out;
    border: 2px solid #fff;
}

    .chat-btn:hover {
        transform: scale(1.05);
    }

@media (max-width: 992px) {
    #chatButton span {
        display: none;
    }

    .chat-btn {
        padding: 15px;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        justify-content: center;
        gap: 0;
    }
}

.chat-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.chat-header {
    background: #FF6413;
    color: #fff;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    font-weight: bold;
    font-size: 16px;
}

.chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

    .chat-close:hover {
        transform: scale(1.2);
        color: #ffdddd;
    }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #fafbff;
    display: flex;
    flex-direction: column;
}


.chat-message-user {
    align-self: flex-end;
    background: #FF6413;
    color: #fff;
    border-radius: 18px 18px 4px 18px;
    padding: 10px 14px;
    margin: 4px 0;
    max-width: 70%;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-message-bot {
    align-self: flex-start;
    background: #ffe8db; /* Açık turuncu ton arka plan */
    color: #FF6413; /* Yazı rengi turuncu */
    border-radius: 18px 18px 18px 4px;
    padding: 10px 14px;
    margin: 4px 0;
    max-width: 70%;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.intro-message {
    background: #ffe8db; /* Açık turuncu ton */
    color: #FF6413; /* Yazı rengi turuncu */
    font-weight: 600;
    font-size: 15px;
    border-radius: 14px;
    padding: 12px;
}

.lapin-highlight {
    color: #FF6413;
    font-weight: bold;
}

.chat-menu {
    flex-shrink: 0;
    background: #fff;
    padding: 12px;
    border-top: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
}


.chat-option {
    flex: 1 1 calc(45% - 10px);
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 14px;
    font-size: 0.95rem;
    color: #222;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-weight: 500;
}

    .chat-option:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    .chat-option i {
        font-size: 18px;
        margin-right: 6px;
        vertical-align: middle;
        color: #2575fc;
    }

#chatButton,
.chat-popup,
.chat-popup * {
    font-family: 'Urbanist', sans-serif !important;
    font-weight: 600 !important;
    line-height: 20px !important;
}

.chat-typing {
    float: left;
    clear: both;
    background: #ffe8db;
    color: #FF6413;
    border-radius: 14px;
    padding: 10px 14px;
    margin: 6px 0;
    max-width: 75%;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

    .chat-typing span {
        display: inline-block;
        width: 6px;
        height: 6px;
        background: #FF6413;
        border-radius: 50%;
        animation: blink 1.4s infinite both;
    }

        .chat-typing span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .chat-typing span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    #chatFrame {
        width: 90% !important;
        height: 70% !important;
        right: 5% !important;
        bottom: 100px !important;
    }
}

#chatFrame {
    display: none;
    position: fixed;
    bottom: 105px;
    left: 20px;
    width: 450px;
    height: 550px;
    border: none;
    z-index: 99999;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}