:root {
    --primary: #8a1538;
    --secondary: #f8d7da;
    --header-text-color: #ffffff;
    --text-header-color: #FFFFFF;
    --text-incoming-message-color: #001659;
    --text-incoming-message-background-color: #f2f2f2;
    --text-outgoing-message-color: #FFFFFF;
    --chatbot-right: 88px;
    --chatbot-bottom: calc(100% - 97%);
    --chatbot-toggler-right: 16px;
    --chatbot-toggler-bottom: 100px;
    --gradient-first-color: #3b0011 25%;
    --gradient-second-color: #7f1f3b 77%;
    --box-shadow: #3b0011 0px 3px 8px;
    --box-shadow-message: rgba(0, 0, 0, 0.25) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.25) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ز .font-lussil {
    font-family: "Lussil", sans-serif;
}

.chatbot-ai-assistant {
    display: none;
}

.contact-loader {
    display: none;
    position: relative;
}

.contact-chatbot-ai-assistant {
    border-radius: 10px;
}



.contact-chatbot {
    background: #fff;
    border-radius: 15px;
    margin: auto;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}


.contact-chatbot .contact-header-chatbot {
    position: relative;
    padding: .8rem .5rem;
    color: #fff !important;
    background: linear-gradient(130deg, var(--gradient-first-color), var(--gradient-second-color)) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}



.contact-chatbot .contact-header-text h2 {
    font-size: 1.4rem;
    color: white;
    margin: .8rem;
}

.contact-chatbot .contact-chat-box {
    position: relative;
    top: 12px;
    overflow-y: auto;
    max-height: 400px;
    height: 400px;
    padding: 20px 30px 60px;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-box-flex: 1;
}

.contact-chatbot :where(.contact-chat-box, textarea)::-webkit-scrollbar {
    width: 6px;
}

.contact-chatbot :where(.contact-chat-box, textarea)::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 25px;
}

.contact-chatbot :where(.contact-chat-box, textarea)::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 25px;
}



.contact-chat-box .contact-chat {
    display: flex;
    list-style: none;
    position: relative;
}

.contact-chat-box .contact-chat.contact-incoming {
    margin-bottom: 35px;

}

.contact-chat-box .contact-outgoing {
    padding-right: 45px;
    margin: 20px 0;
    justify-content: flex-start;
}

.contact-chat-box .contact-incoming span {
    width: 35px;
    height: 35px;
    color: #fff;
    cursor: default;
    text-align: center;
    line-height: 32px;
    align-self: flex-end;
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

.contact-chat-box .contact-chat div {
    margin-bottom: 0;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-outgoing-message-color) !important;
    font-size: 0.95rem;
    background: linear-gradient(130deg, var(--gradient-first-color), var(--gradient-second-color));
    box-shadow: var(--box-shadow-message);
    line-height: 1.5em;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    max-width: max-content;
}

.contact-chat-box .contact-incoming div {
    flex: 1;
    border-radius: 8px;
    color: #3f3d3d !important;
    background: var(--text-incoming-message-background-color);
    box-shadow: var(--box-shadow-message);
    line-height: 1.5em;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
    max-width: max-content;

}

.contact-chat-box .contact-chat div.error span {
    color: var(--primary);
}

.contact-chat-box .contact-chat div.error {
    color: var(--primary);
    background: #f8d7da;
}

.contact-chat-box .contact-chat .result-item {
    margin-bottom: .2rem;
    font-weight: 600;
}

#contact-chatbot-container {
    position: relative;
}

.contact-chatbot .contact-chat-input .container .contact-send-input {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    background: #fff;
    box-shadow: var(--box-shadow-message);
    border-radius: 10px;
    padding: 0 10px;
}

.contact-chatbot .contact-chat-input .container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
    max-width: 100%;
}

.contact-chatbot .contact-chat-input {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    background: #fff;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.contact-chat-input textarea {
    height: 55px !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    resize: none !important;
    max-height: 180px !important;
    padding: 20px 5px 10px 0 !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
}

.contact-chat-input svg .icon {
    align-self: flex-end;
    color: var(--primary);
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    visibility: hidden;
    font-size: 1.35rem;
    transform: rotate(180deg);
}


.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded' !important;
}

.contact-chat-input #contact-send-btn {
    transform: rotate(0deg);
}

.contact-chat-input #contact-send-btn,
.contact-chat-input #contact-reset-btn {
    cursor: pointer;
}

#contact-recordButton,
#contact-reset-btn,
#contact-send-btn,
#contact-recordButton_loader {
    cursor: pointer;
    border: none;
    padding: 4px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 .2rem;
    background-color: white;
}

#contact-recordButton,
#contact-reset-btn,
#contact-recordButton_loader {
    background-color: white;
}

#contact-recordButton_loader {
    cursor: none;
}

#contact-send-btn {
    background-color: var(--primary);
}

#contact-recordButton {
    position: relative;
}

#contact-recordButton:hover .contact-tooltip-record {
    visibility: visible;
}

.contact-tooltip-loader {
    position: absolute;
    bottom: 45px;
    left: 4px;
    font-size: 11px;
    color: #fff !important;
    background: #8a1538;
    box-shadow: var(--box-shadow);
    padding: 0 4px;
    border-radius: 7px;
    color: #fff !important;
}

.contact-tooltip-record {
    display: none;
    visibility: hidden;
    position: absolute;
    bottom: 53px;
    left: 10px;
    font-size: 14px;
    color: #fff !important;
    background: #8a1538;
    box-shadow: var(--box-shadow);
    padding: 0 8px;
    border-radius: 7px;
    z-index: 100;
}

.contact-record-btns {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 1.5rem
}

.contact-record-popup #contact-startRecordingButton {
    border-radius: 5px;
    font-weight: bold;
    padding: 5px 10px;
    background: #8a1538;
    border: none;
    color: #fff
}

.contact-record-popup #contact-stopRecordingButton {
    border-radius: 5px;
    font-weight: bold;
    padding: 5px 10px;
    background: #0D4261;
    border: none;
    color: #fff
}

.change-opacity {
    animation: changeOpacity 1s infinite;
}

@keyframes changeOpacity {
    50% {
        opacity: 0;
    }
}


.contact-chatbot-media-large-screen {
    height: 100%;
    width: 600px;
}



.contact-feedback {
    position: absolute;
    bottom: 75px;
    z-index: 50;
    border: 1px solid #dddddd
}

.contact-feedback-buttons-box {
    background: var(--text-incoming-message-background-color);
    padding: .3rem;
    display: flex;
    align-items: center;
}

.contact-feedback-buttons-box h3 {
    font-size: 14px;
    color: #3f3d3d !important;
    margin: 0;
}

.contact-feedback-buttons {
    display: flex;
    gap: 5px;
    padding: .3rem;
    border-radius: 10px;

}

.contact-feedback-buttons button {
    border: none;
    outline: none;
    background-color: transparent;

}

.contact-feedback-buttons svg {
    fill: rgb(172 166 166);
    cursor: pointer;
    width: 20px;
}

.contact-feedback-popup {
    position: absolute;
    bottom: 120px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8a1538
}

#contact-feedback-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    color: #7f1f3b;
}


.contact-header-icons {
    position: absolute;
    top: 10px;
    display: flex;
    gap: .8rem;
}

.contact-header-icons .contact-close {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
}

.contact-header-icons .contact-full-screen {
    cursor: pointer;
}

.contact-chatbot.contact-full-screen {
    width: 100%;
}

@media (max-width: 650px) {

    #contact-recordButton,
    #contact-reset-btn,
    #contact-send-btn,
    #contact-recordButton_loader {
        width: 30px;
        height: 30px;
        min-width: 30px;
        max-width: 30px;
        min-height: 30px;
        max-height: 30px;

    }

    .contact-chatbot {

        width: 100%
    }

    .contact-chatbot .contact-chat-input {
        padding: 5px
    }
    .contact-chat-input textarea{
        font-size: .7rem !important;
    }
}