.message-container {
    position: fixed;
    bottom: 50px;
    right: 50px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    z-index: 9999;
}

    .message-container .message-button {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        border: none;
        outline: none;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        background-color: #fff;
        position: relative;
        box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
    }

        .message-container .message-button img {
            width: 126px;
        }

.bubble {
    position: absolute;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 24px;
    width: max-content;
    background: rgba(226, 35, 26, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(5px);
    border-radius: 40px;
    padding: 12px 16px;
    text-align: center;
    color: #fff;
    right: 26px;
    top: -50px;
    opacity: 0; /* Başlangıçta görünmez */
    transform: translateX(100%); /* Sağdan dışarıda başlat */
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

    .bubble.show {
        opacity: 1; /* Görünür yap */
        transform: translateX(0); /* Yerine kaydır */
    }

.bubble-bottom-left:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-right: 24px solid rgba(226, 35, 26, 0.6);
    border-left: 12px solid transparent;
    border-top: 12px solid rgba(226, 35, 26, 0.6);
    border-bottom: 20px solid transparent;
    right: 50px;
    bottom: -32px;
}

.chat-accept-button {
    border: 1px solid #0e52af;
    padding: 6px;
    border-radius: 6px;
    background-color: #2179f3;
    color: #fff;
}

.message-dropdown {
    width: 400px;
    height: 700px;
    position: absolute;
    background-color: #f5f5f5;
    border-radius: 12px;
    bottom: -30px;
    right: -30px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
}

.message-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 27px;
    background-image: linear-gradient(103deg, rgb(225, 37, 27), rgb(225, 37, 27));
    mask-image: url(../img/chat-bot/chat-header-bg.svg);
    mask-size: 100%;
    mask-repeat: no-repeat;
    height: 94px;
}

    .message-dropdown-header h5 {
        font-weight: 600;
        font-size: 16px;
        color: #fff;
        margin-bottom: 0;
        padding-left: 10px;
        letter-spacing: .7px;
    }

    .message-dropdown-header button {
        border: none;
        outline: none;
        cursor: pointer;
        width: 36px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
    }

        .message-dropdown-header button img {
            width: 22px;
        }

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 94px);
}

    .chat-container .date {
        text-align: center;
        font-size: 11px;
        color: #707070;
        margin: 12px 0;
        font-weight: 500;
    }

.chat-policy {
    margin: 0 16px 16px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #fff;
    padding: 10px;
    position: relative;
    height: 100%;
    transition: all .8s ease;
    overflow: hidden;
}

    .chat-policy.close {
        height: 38px;
        overflow: hidden;
    }

    .chat-policy .policy-accordion-button {
        position: absolute;
        right: 8px;
        top: 8px;
        width: 20px;
        height: 20px;
        background-color: transparent;
        border: none;
        outline: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .chat-policy .policy-accordion-button img {
            width: 18px;
            height: 18px;
        }

    .chat-policy.close .policy-accordion-button img {
        transform: rotate(180deg);
    }


    .chat-policy .policy-title {
        color: #4b4b4b;
        font-weight: 500;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .chat-policy .policy-message {
        color: #3d3d3d;
        font-size: 12px;
    }

#chat-accept {
    margin-top: 3px;
}

.chat-message-container {
    padding: 10px 16px;
    overflow: auto;
    line-height: 20px;
}

.chat-item {
    display: flex;
    flex-direction: column;
}

.chat-sender {
    color: #707070;
    font-weight: 400;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sender-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    padding: 3px;
    display: flex;
    align-items: center;
}

    .sender-avatar img {
        width: 100%;
        height: 100%;
    }

.chat-message {
    padding: 8px 0 14px;
    font-size: 13px;
    color: #fff;
    font-weight: 300;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .chat-message .message {
        padding: 10px;
        background-color: #fff;
        color: #2c2c2c;
        line-height: 20px;
        font-size: 11px;
        font-weight: 400;
        border-radius: 0 8px 8px 8px;
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    }

.message-result {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.result-item {
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #cccccc;
    padding: 8px 20px;
    transition: all 0.4s ease-in;
    display: none;
    pointer-events: none;
}

    .result-item:hover {
        border-color: #008cf8;
    }

        .result-item:hover a {
            color: #008cf8 !important;
        }

    .result-item a {
        height: 100%;
        width: 100%;
        text-decoration: none;
        color: #2c2c2c;
        font-weight: 300;
    }

    .result-item.active {
        border-color: #008cf8;
    }

        .result-item.active .result-message {
            color: #008cf8 !important;
        }

.result-message {
    display: flex;
    align-items: center;
    color: #2c2c2c;
    cursor: pointer;
    font-weight: 500;
    font-size: 11px;
}

.sender-user .message {
    background-color: #fddec4;
}

.sender-user .message {
    border-bottom: none;
}

p {
    margin-bottom: 0;
}


@media screen and (max-width: 800px) {
    .message-dropdown {
        width: 90%;
        height: 100vh;
        position: fixed;
        bottom: 0;
        right: 0;
    }

    .message-container {
        bottom: 18px;
        right: 10px;
    }
}

@media (min-width: 640px) {
    .chat-message-container {
        height: 300px;
    }

        .chat-message-container.open {
            height: 530px;
        }
}

@media (max-height: 900px) {
    .chat-message-container {
        height: 300px;
    }

        .chat-message-container.open {
            height: 540px;
        }
}

@media (max-height: 800px) {
    .chat-message-container {
        height: 280px;
    }
}

@media (max-height: 700px) {
    .chat-message-container {
        height: 210px;
    }

        .chat-message-container.open {
            height: 480px;
        }
}
