
/* Floating Button */
.message.bot p {
    margin: 0px 0px 3px 0px;
}
.message.bot {
    word-wrap: break-word;
}
.chat-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #78c257;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: 0.3s;
    animation: pulse 2s infinite;
    transition: all 0.3s 
ease;
}
body.homepage #mecard-chat-button {
    margin-top: -120px !important;
    position: fixed;
    right: 15px;
    z-index: 9999;
    bottom: 86px;
}

div#mecard-chat-button img {
    width: 30px;
}
    .chat-launcher:hover {
        transform: scale(1.05);
    }

/* Widget Card */
.chat-widget {
    width: 350px;
    height: 676px;
    background: #fff;
    position: fixed;
    bottom: 95px;
    right: 25px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 99999;
}

    /* Açık durumda */
    .chat-widget.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

/* Header */
.chat-header {
    height: 128px;
    position: relative;
    padding: 20px;
    color: white;
    align-items: start;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background: #73ba54;
}

    .chat-header .overlay {
        background: rgb(0 0 0 / 81%);
        position: absolute;
        inset: 0;
    }

    .chat-header h2, .chat-header p {
        position: relative;
        margin: 0;
        z-index: 2;
        color: #fff;
        font-size: 30px;
        line-height: 35px;
    }

/* Body */
.chat-body {
    height: 450px;
    padding: 15px;
    overflow-y: auto;
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
}
.message.bot h3,h4,h5,h6 {
    font-size: 15px;
    line-height: 23px;
    margin: 10px 0px;
}
.message {
    max-width: 80%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 15px;
    font-size: 14px;
}

    .message.bot {
        background: #fff;
        align-self: flex-start;
        border: 1px solid #ececec;
        line-height: 19px;
        color: #212529;
    }

/* Input */
.chat-input {
    /* height: 70px; */
    padding: 10px 10px 0px;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dedede;
    margin: 0px 0px 5px;
}

    .chat-input input {
        flex: 1;
        padding: 10px;
        border-radius: 15px;
        border: 1px solid #ccc;
    }

    .chat-input button {
        width: 35px;
        color: #78c257;
        border: none;
        border-radius: 50%;
        height: 35px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
.chat-header p {
    font-size: 14px;
    line-height: 19px;
}

.chat-home button {
    min-height: 60px;
    display: flex;
    padding-inline: 16px;
    padding-block: var(--starter-chat-padding-block, 12px);
    align-items: center;
    gap: 8px;
    width: 100%;
    border-radius: var(--radius-component, 12px);
    border: 1px solid rgb(226, 232, 239);
    background: rgb(255, 255, 255);
}

.chat-home {
    padding: 20px;
}

.chat-input input[type=text] {
    border: none !important;
    border-bottom: 1px solid #dedede !important;
    border-radius: 0px;
    text-align: left;
    padding: 0px 10px !important;
    font-size: 15px;
    height: 45px;
}


textarea#chatInput:focus {
    outline: none;
}
    .chat-input input::placeholder {
        font-size: inherit;
        text-align: left;
    }
.message.user {
    background: #fff;
    align-self: flex-end;
    border: 1px solid #ececec;
    line-height: 19px;
    color: #212529;
}
textarea#chatInput {
    height: 52px !important;
    resize: none !important;
    font-size: 15px;
    padding: 10px !important;
    border: none !important;
    border-radius: 0px;
    overflow-x: hidden !important;
    line-height: 19px;
    overflow-x: hidden;
    flex: 1;
    min-height: auto;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
div#mecard-chat-button i {
    font-size: 21px;
}
