body {
    background-image: url("../../Content/images/SharedChatBackground.svg");
    background-size: cover;
    color: white;
}

.custom-chat {
    color: rgba(23, 66, 140, 1);
    margin: auto;
    width: 950px;
    background: rgba(244, 249, 255, 1);
    border-radius: 7px;
    box-shadow: 0px 10px 38px 0px #eeeeeeb0;
    margin: 70px auto 0;
}

.custom-main {
    display: flex;
    background: linear-gradient(90deg, #CDDCF3 6.77%, #E7F0FF 89.52%);
    border-radius: 7px;
    padding: 5px 40px 2px 40px;
    justify-content: space-between;
    align-items: center;
}

.text-right {
    direction: rtl
}

.custom-header {
    color: rgba(23, 66, 140, 1);
    padding: 5px;
    display: flex !important;
    flex-direction: row-reverse;
    align-items: center;
}

.custom-footer {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 30px 30px;
    padding: 20px 40px 40px 40px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.custom-logo {
    display: flex;
    align-items: center;
}

.custom-title {
    display: flex;
    align-items: center;
}

.custom-prompt-text {
    display: flex;
    flex-direction: row;
    padding: 7px;
    background: white;
    background: rgba(255, 255, 255, 1);
    border-radius: 7px;
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.5);
    margin-top: 10px;
    width: 95%;
}

.custom-header-title {
    font-size: 20px;
    font-weight: 600;
    /*padding: 19px;
    margin: 0; */
    text-align: center;
    display: block;
    white-space: nowrap;
    max-width: 930px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-input-field {
    flex-grow: 2;
    border: none;
    min-width: 35vw;
}

    .custom-input-field:focus {
        opacity: 1.5;
    }

    .custom-input-field::placeholder {
        opacity: 0.5;
    }

    .custom-input-field:focus {
        outline: none;
    }


.custom-button {
    border: none;
    background: blue;
    color: white;
    margin-left: auto;
    background: rgba(224, 234, 249, 1);
    border-radius: 7px;
    color: rgba(23, 66, 140, 1);
    font-weight: 600;
    min-width: 30px;
    color: #1379E8;
    font-size: 15px;
}

button[disabled] {
    cursor: default;
    opacity: 0.5;
}

.custom-section {
    min-height: 10vh;
    padding: 0px 40px 15px 40px;
}

.custom-header-label label {
    color: rgba(98, 129, 181, 1);
    padding: 5px 15px;
    min-width: 50px;
    border-radius: 7px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    background: rgba(255, 255, 255, 1);
}

.custom-header-label {
    padding: 0;
    margin: 0;
    opacity: 0.6;
    text-align: center;
    display: block;
    padding: 35px;
}

.loader {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    background: #FFF;
    box-shadow: -15px 0 #FFF, 15px 0 #FFF;
    box-sizing: border-box;
    animation: shadowPulse 2s linear infinite;
    margin: 5px;
    display: block;
}

.copy-answer {
    width: 18px;
    float: inline-end;
    cursor: pointer;
    margin-left: 5px;
}

lottie-player.virutal-assisant-logo.walking-sequence {
    height: 95px;
}

@keyframes shadowPulse {
    33% {
        background: #FFF;
        box-shadow: -15px 0 #16306e, 15px 0 #FFF;
    }

    66% {
        background: #16306e;
        box-shadow: -15px 0 #FFF, 15px 0 #FFF;
    }

    100% {
        background: #FFF;
        box-shadow: -15px 0 #FFF, 15px 0 #16306e;
    }
}

label.question-box {
    background: rgba(98, 129, 181, 1);
    border-radius: 7px;
    min-width: 60px;
    padding: 7px;
    float: right;
    display: block;
}

label.answer-box {
    background: rgba(98, 129, 181, 1);
    border-radius: 7px;
    min-width: 60px;
    padding: 7px;
    float: left;
    display: block;
}

.answer-box {
    display: inline-grid;
}

.chat-bot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style-type: none;
    padding: 10px;
    margin: 0;
    max-height: 55vh;
    overflow: auto;
}

.message {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.5);
    position: relative;
    margin-bottom: 30px;
    color: white;
    margin: 0;
    max-width: 92%;
    margin: 5px 0;
}

    .message.left {
        padding: 5px 20px;
        background: white;
        border: 0.5px solid rgba(91, 165, 219, 0.5);
        color: rgba(23, 66, 140, 0.8);
        margin-bottom: 35px;
    }

    .message.right {
        align-self: flex-end;
        padding: 5px 20px;
        background: rgb(38 128 224);
    }

.logo {
    width: 30px
}

.message.right .logo {
    left: auto;
    right: 10px;
}

.message.left p {
    margin: 15px 0;
}

.message p {
    margin: 0;
}

.text_input {
    font-size: 16px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    width: 100%;
}

footer, hr {
    display: none;
}

.sourceButton {
    font-size: 14px;
    margin: 3px;
    height: 25px;
    width: 22%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: #e0eaf9;
    border: 1px solid #6281b5;
    border-radius: 7px;
    cursor: pointer;
    margin-left: 0px;
}

.more-info-source {
    width: 7% !important;
    background-color: #d0e5f6d4;
}

.source {
    max-height: 32px;
    overflow: hidden;
    min-width: 360px;
}

.feedback {
    float: right;
    margin: 5px;
    margin-right: 0;
}

    .feedback i {
        font-size: 16px;
        cursor: pointer;
    }

.error {
    background-color: #ebcfcf;
    border: 1px solid #ce6e6e;
    border-radius: 7px;
    color: #a94442;
    padding: 10px;
    position: relative;
    z-index: 200000;
}

h3.errorMessage.box-shadow {
    padding: 40px;
}

.errorMessage i {
    color: red;
    font-size: 30px;
}

.swal2-popup {
    font-size: 1.5rem;
}

div:where(.swal2-container) .swal2-textarea {
    height: 87px;
    padding: 0;
    margin-left: 130px;
}

.custom-header-label[hidden] {
    display: none;
}

.clean-chat {
    display: none;
    margin-top: 10px;
    cursor: pointer;
    display: none;
    font-size: large;
    padding: 2px 0px;
    text-align: center;
    font-size: 16px;
    padding: 9px;
    border-radius: 7px;
    color: rgba(23, 66, 140, 1);
    margin-left: 5px;
    background: rgba(224, 234, 249, 1);
    border-radius: 7px;
    color: rgba(23, 66, 140, 1);
}

.container-flex {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.suggested-questions {
    list-style: none;
    display: inline-flex;
    width: 99%;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

    .suggested-questions button {
        border: 1px solid #174AE4;
        box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
        padding: 2px 15px;
        overflow: hidden;
        color: #174ae7;
        font-size: 14px;
        border-radius: 7px;
        background: white;
        margin: 5px;
    }

        .suggested-questions button:hover {
            background: #b3e4fe4d;
            cursor: pointer;
        }

.message table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

.message th {
    border: 1px solid #ddd;
    padding: 8px;
}


.message table tr:hover {
    background-color: #ccc;
}

.message table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #ccc;
    color: white;
}

.right-to-left .custom-main {
    direction: rtl;
}

.right-to-left .custom-prompt-text {
    direction: rtl;
}

.right-to-left ul.chat-bot {
    direction: rtl;
}

.right-to-left .container-flex {
    direction: rtl;
}
/*//ifram
*/
.in-iframe .custom-chat {
    width: 100vw;
    margin: 0 !important;
    padding: 0;
}

.in-iframe .custom-input-field {
    min-width: 70vw;
}

.in-iframe .custom-chat {
    box-shadow: none;
}

.in-iframe .container-flex {
    border-top: 1px solid #e2dfdfc9;
    display: flex;
    position: absolute;
    top: 82%;
    width: 99%;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    background: aliceblue;
}

.in-iframe .custom-footer {
    position: absolute;
    top: 90%;
    width: 100%;
    height: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 30px 30px;
    margin-top: 30px;
    padding: 0;
    margin-bottom: 0px;
    margin-top: 21px;
}

    .in-iframe .custom-footer img {
        width: 120px;
    }

.in-iframe {
    background: rgba(244, 249, 255, 1);
}

    .in-iframe .suggested-questions, .in-iframe .custom-logo {
        display: none;
    }

    .in-iframe .custom-main {
        margin-top: -20px;
        max-height: 70px;
    }

    @media (min-width: 200px) and (max-width: 750px) {
        .in-iframe .source {
            max-height: max-content;
            overflow: auto;
            display: flex;
            flex-wrap: wrap;
            flex-direction: row;
            align-items: center;
            gap: 5px;
            justify-content: flex-start;
            min-width: 212px;
        }
        .in-iframe .message {
            max-width: 100%;
        }
            .in-iframe .message.left, .in-iframe .message.right {
                padding: 5px 5px;
            }
                .in-iframe .message.left p {
                    margin: 0px 0;
                }
        .in-iframe .sourceButton {
            width: 25%;
        }

        .in-iframe button.sourceButton.more-info-source {
            display: none;
        }

        .in-iframe .custom-section {
            padding: 0px 10px 0 10px;
        }
    }

    @media (min-width: 200px) and (max-width: 1450px) {

        .chat-bot {
            max-height: calc(100vh - 300px);
        }

        .custom-chat {
            margin: 10px auto 0;
        }

        .source {
            min-width: 300px;
        }
    }

    @media screen and (max-width: 768px) {

        .custom-main {
            padding: 0;
        }
    }
