.attachment-message {
    background: linear-gradient(90deg, #ffe987, #fae791);
    color: #333333;
    padding: 5px 10px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    position: relative;
}


.attachment-timestamp {
    font-size: 9px;
    margin-top: 5px;
    text-align: right;
    width: 100%;
    color: #131212;
    bottom: 5px;
    right: 10px;
}

.uploaded-image {
    width: 60px;
    height: 70px;
    border-radius: 10px;
    margin-top: 5px;
}


.resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: ew-resize;
    background-color: rgba(255, 255, 255, 0);
}

.chat-window.large .message-timestamp {
    font-size: 9px;
}

.chat-window.large .chat-body,
.chat-window.large .chat-footer,
.chat-window.large .user-message,
.chat-window.large .server-response,
.chat-window.large .message-name {
    font-size: 12px;
}

.minimize-button {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

.exit-button {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

.chat-header .minimize-button {
    margin-left: 10px;
}

.chat-header .exit-button {
    margin-left: 5px;
}

.resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: ew-resize;
    background-color: rgba(255, 255, 255, 0);
}

.chat-window.large .message-timestamp {
    font-size: 9px;
}

.chat-window.large .chat-body,
.chat-window.large .chat-footer,
.chat-window.large .user-message,
.chat-window.large .server-response,
.chat-window.large .message-name {
    font-size: 12px;
}

.chat-window.minimized .chat-body,
.chat-window.minimized .chat-footer {
    display: none;
}

.chat-window.minimized .chat-header .header-bottom {
    display: none;
}

/* Styles for the widget button */
.bold-text {
    font-weight: bold;
}

.message-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.user-message {
    background: linear-gradient(90deg, #009BF3, #44AEFC);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 20px;
    max-width: 60%;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
}

.server-response {
    background: linear-gradient(90deg, #dfdfdf, #e5e5e5);
    color: #464646;
    padding: 5px 10px;
    border-radius: 20px;
    max-width: 60%;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    float: right;
}

.message-timestamp {
    font-size: 9px;
    margin-top: 5px;
    text-align: right;
    width: 100%;
}

.user-timestamp {
    color: rgb(255, 255, 255);
}

.server-timestamp {
    color: rgb(0, 0, 0);
}

.user-message-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

.user-profile-pic {
    width: 30px;
    height: 22px;
    border-radius: 50%;
    margin-left: 10px;
}

.uploaded-image {
    width: 60px;
    height: 70px;
}

.server-response-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
}

.server-profile-pic {
    width: 30px;
    height: 28px;
    border-radius: 50%;
    margin-right: 10px;
}

.widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.chat-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.chat-header {
    width: 100%;
    border-radius: 10px 10px 0px 0px;
    background: linear-gradient(90deg, #004c99, #009BF3); /* Default blue */
    color: white;
    font-family: 'Inria Sans', sans-serif;
    display: flex;
    flex-direction: column;
}

/* Color scheme specific chat headers */
body[data-color-scheme="red"] .chat-header {
    background: linear-gradient(90deg, #cc0000, #ff4444);
}

body[data-color-scheme="green"] .chat-header {
    background: linear-gradient(90deg, #1e7e34, #28a745);
}

body[data-color-scheme="orange"] .chat-header {
    background: linear-gradient(90deg, #cc4900, #fd7e14);
}

body[data-color-scheme="cyan"] .chat-header {
    background: linear-gradient(90deg, #0e6674, #17a2b8);
}

body[data-color-scheme="lightblue"] .chat-header {
    background: linear-gradient(90deg, #269abc, #5bc0de);
}

body[data-color-scheme="magento"] .chat-header {
    background: linear-gradient(90deg, #c70959, #e83e8c);
}

body[data-color-scheme="blue"] .chat-header,
body[data-color-scheme="lblue"] .chat-header {
    background: linear-gradient(90deg, #004c99, #009BF3); /* Keep current blue */
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

.header-bottom {
    padding: 6px;
    border-top: 1px solid #cccccc;
}

.header-bottom>span {
    font-size: 15px;
}

.chat-header>span {
    margin: 0;
    color: white;
    font-family: 'Inria Sans', sans-serif;
}

.chat-logo {
    width: 50px;
    /* Adjust the size as needed */
    height: 50px;
    margin-right: 5px;
}

.chat-body {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.chat-footer {
    padding: 10px;
}

.chat-footer textarea {
    width: calc(100% - 80px);
    padding: 5px;
    margin-right: 10px;
    resize: none;
}

.chat-footer button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.user-message {
    background-color: #44AEFC;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 6px;
    width: 100%;
    align-self: flex-end;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
}

.server-response {
    background-color: #EAE9EE;
    color: #020202;
    padding: 5px 10px;
    border-radius: 6px;
    width: 70%;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    float: right;
}


.spinner {
    font-size: 12x;
    animation: dotAnimation 2s steps(5, end) infinite;
}

.send-message-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid lightgray;
    border-radius: 12px;
    padding: 0.1rem;
    flex-grow: 1;
}

.send-message-input {
    border: none;
    background-color: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    color: gray;
    margin-left: 0.1rem;
    flex-grow: 1;
}

.send-message-input:focus {
    outline: none;
}

.upload-button,
#send-button {
    width: 20px;
    height: 30px;
    background-color: transparent;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: auto;
}

.upload-button,
#send-button img {
    max-width: 100%;
    max-height: 100%;
    transition: opacity 0.8s ease;
}

.powered-by-wrapper {
    width: 100%;
    display: flex;
    justify-content: right;
    align-items: center;
    padding-top: 5px;
    margin-top: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
}

.powered-by-wrapper img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    margin-left: 5px;
}

.powered-by-wrapper span {
    font-size: 10px;
    font-weight: bold;
    color: rgb(41, 40, 40);
}

.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #ffffff;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse 1.5s infinite;
}

.chatbot-button.shake {
    animation: shake 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.chatbot-button:hover {
    animation: none;
    transform: scale(1.1);
}

.chatbot-button img {
    width: 75px;
    height: 75px;
}

.header-top .chat-logo {
    margin-right: 1px;
}

.header-top span {
    margin-left: 5px;
    flex-grow: 1;
}

.header-top .minimize-button {
    margin-left: 10px;
}

.first-message-continer {
    margin-top: 5px;
    border-radius: 10px;
    margin-left: 1px;
    margin-right: 1px;
    background-color: #F6FCFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.first-message-continer>div {
    height: 88%;
    padding: 1px;
    /* height: 200px; */
}

.first-message-btn-continer {
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #FFFFFF;
}

.first-message-btn-continer>div {
    background-color: #FFFFFF;
    cursor: pointer;
    height: 35px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.first-message-btn-continer>div>span {
    color: #009BF3;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
}

.first-message-text {
    font-family: 'Roboto', sans-serif;
    color: #0b1c30;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}

#emoji-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

emoji-picker {
    position: absolute;
    bottom: 80px;
    right: 10px;
    z-index: 1000;
}

.disabled {
    pointer-events: none !important;
    opacity: 0.3;
}

.enabled {
    pointer-events: auto;
    opacity: 1;
}

.powered-by-imaven-text a {
    color: inherit;
    text-decoration: none;
}

.powered-by-imaven-text a:hover {
    text-decoration: underline;
}

.powered-by-wrapper a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.powered-by-wrapper a:hover {
    opacity: 0.8;
}

.powered-by-text,
.powered-by-logo,
.powered-by-imaven-text {
    margin: 0 5px;
}