/* AI */

.ask-raz {
    position: fixed;
    bottom: 20px;
    left: 16px;
    width: 60px;
    height: 60px;
    z-index: 99999;
    border: 3px solid #e40e74;
    background: #f5f5f5;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
    outline: none;
}

.ask-raz:hover {
    border-color: #ff3d97;
    text-decoration: none;
}

.ask-raz:hover,
.ask-raz:active {
    outline: none;
    text-decoration: none;
}

.ask-raz.active {
    opacity: 0;
    visibility: hidden;
}

.ask-raz img {
    width: 60px;
    min-width: 60px;
    height: auto;
}

.ask-raz p {
    color: #333;
    font-size: 16px;
    margin: 0;
    line-height: 1.2;
}

.ask-raz p.title {
    margin: 0 0 2px;
    color: #464646;
    font-size: 18px;
    font-weight: 700;
}

.ask-raz p span {
    color: #ff3d97;
}

.ai-chatbot {
    max-width: 100%;
    width: 100%;
    position: fixed;
    bottom: 70px;
    right: 16px;
    display: flex;
    flex-direction: column;
    
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(20px,0,0);
    transition: 0.3s;

    letter-spacing: 0;
}

@media screen and (min-width: 440px) {
    .ai-chatbot {
        max-width: 80%;
        width: 680px;
    }
}

.ai-chatbot.active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0,0,0);
}

.close-ai-chatbot {
    background: #e40e74;
    width: 40px;
    height: 40px;
    margin: 0 10px 10px auto;
    position: relative;
    border-radius: 100%;
    cursor: pointer;
}

.close-ai-chatbot::before,
.close-ai-chatbot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;      /* line length */
    height: 2px;     /* line thickness */
    background: #fff;
    transform-origin: center;
}

.close-ai-chatbot::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-ai-chatbot::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ai-chatbot .mwai-chatbot-container {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.075);
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.075);
}

.ai-chatbot  .mwai-chatgpt-theme {
    --mwai-maxHeight: 55vh;
}

.ai-chatbot  .mwai-chatgpt-theme .mwai-reply.mwai-ai .mwai-name .mwai-name-text {
    color: #333;
    font-size: 14px;
    font-weight: 700;
    opacity: 1;
}

.mwai-chatgpt-theme .mwai-body {
    border: 3px solid #e40e74;
}

.ai-chatbot .mwai-chatgpt-theme .mwai-input .mwai-input-text textarea {
    padding-inline: 16px;
    cursor: text;
    color: #666;
    -webkit-text-fill-color: #666;
    caret-color: #222 !important;

    background-color: #fff;
    opacity: 1;
    border-radius: 100px;
}

.ai-chatbot .mwai-chatgpt-theme .mwai-input .mwai-input-text textarea::placeholder {
    color: #999;
    -webkit-text-fill-color: #999;
    opacity: 1;
}

.ai-chatbot .mwai-chatgpt-theme .mwai-input .mwai-input-text textarea:focus {
    color: #666;
    -webkit-text-fill-color: #666;
    caret-color: #222 !important;
}

@media screen and (max-width: 768px) {
    .ask-raz__txt {
        display: none;
    }

    .ai-chatbot {
        max-width: calc(100% - 32px);
    }
}

@media screen and (min-width: 768px) {
    .ask-raz {
        position: fixed;
        bottom: 52px;
        left: auto;
        right: 20px;
        width: 390px;
        height: 90px;
        z-index: 99999;
        border: 3px solid #e40e74;
        background: #f5f5f5;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        transition: 0.3s;
    }
}