.chatbox {
    padding: 0px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    max-height: 660px;
    position: fixed;
    bottom: 6px;
    right: 10px;
    display: none;
    flex-direction: column;
    margin-bottom: 10px;
    z-index: 1000;
}

@media (max-width: 2560px) {
    /* .open-chatbot-button img {
        width: 60px;
        height: 60px;
    } */
}

/* Styling for Large (lg), Medium (md), and Extra-large (xl) screens */
@media (min-width: 768px) {
    .chatbox {
        right: 10px;
        bottom: 10px;
        width: 100%;
        max-width: 360px;
        height: 600px; /* Set a fixed height */
        border-radius: 15px;
    }

    .messages {
        height: calc(
            100% - 120px
        ); /* Adjust this based on the height of other elements like chat-title and input-container */
    }
}

/* Styling for Small (sm) Screens */
@media (max-width: 1024px) {
    .chatbox {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        max-width: 100%;
        max-height: 100vh;
        margin-bottom: 0px !important;
    }

    .messages {
        height: calc(100vh - 120px); /* Adjust height based on other elements */
    }

    .input-container {
        border-bottom-right-radius: 0px !important;
        border-bottom-left-radius: 0px !important;
    }

    .chat-title {
        border-top-right-radius: 0px !important;
        border-top-left-radius: 0px !important;
    }
}

@media (max-width: 768px) {
    .open-chatbot-button img {
        max-width: 50px;
        max-height: 50px;
    }
}
.chat-title {
    background: linear-gradient(335deg, #354082 31%, hsl(219deg 100% 70%) 99%);
    padding: 10px 24px;
    margin: 0px;
    text-align: start;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    color: rgb(238, 238, 238);
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: #ffffff;
    position: relative;
}

.message {
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
    position: relative;
}

.message.bot-message {
    justify-content: flex-start;
    align-items: center;
}

.message.user-message {
    justify-content: flex-end;
    align-items: center;
}

.message .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    margin-right: 10px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.message.bot-message .avatar {
    background-image: url("/images/favicon/android-chrome-192x192.png");
}

.message.user-message .avatar {
    background-image: url("/images/favicon/avtar.png");
}

.message .bubble {
    max-width: 70%;
    padding: 10px;
    border-radius: 20px;
    line-height: 1.4;
    position: relative;
}

.bubble.bot {
    background: #f1f1f1;
    color: #808080;
}

.bubble.user {
    background: linear-gradient(335deg, #354082 31%, hsl(219deg 100% 70%) 99%);
    color: #ffffff;
    border: 1px solid #ddd;
    text-align: right;
}

.bubble:after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.bubble.bot:after {
    left: 10px;
}

.bubble.user:after {
    right: 10px;
}
.bubble .timestamp {
    font-size: 14px;
    margin-left: 10px;
    white-space: nowrap;
    text-align: right;
}
.input-container {
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
    padding: 10px;
    background: #f1f1f1;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}

.input-container input {
    flex: 1;
    padding: 10px 110px 10px 48px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    background: #ffffff;
}

.input-container button {
    padding: 10px;
    margin-left: 10px;
    border: none;
    border-radius: 20px;
    background: #696969;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
    line-height: 0%;
}

.input-container button:hover {
    background: #a0a0a0;
}

@media (max-width: 480px) {
    .input-container input {
        padding: 10px 48px;
    }
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 100%;
}

select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.select-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-container::after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #007bff;
    font-size: 16px;
}

.radio-container {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

.radio-container label {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #696969;
    border-radius: 20px;
    color: #696969;
    background: #ffffff;
    font-weight: bolder;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px,
        rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    white-space: nowrap;
    margin-right: auto;
    margin-bottom: 15px;
    text-align: start;
}

.radio-container input[type="radio"] {
    display: none;
}

.popup {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 20px;
    margin: 10px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: right;
}

.popup-button {
    background-color: #2e8b57;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 40px;
}

.popup-button:hover {
    background: #1e4d2b;
}

.chat-title h2 {
    margin: 0px;
}

.chat-title .logo {
    display: flex;
    align-items: center;
}

.open-chatbot-button {
    position: fixed;
    bottom: 15px;
    right: 15px;

    background: none !important;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.open-chatbot-button img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.headbtn {
    display: flex;
    gap: 0.8rem;
    padding: 0;
}

.iti__flag-container {
    visibility: hidden;
}

.iti__country-list::-webkit-scrollbar {
    width: 10px;
    background-color: #f5f5f5;
}

.iti__country-list::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #f5f5f5;
    border-radius: 10px;
}

.iti__country-list::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0.44, rgb(122, 153, 217)),
        color-stop(0.72, rgb(73, 125, 189)),
        color-stop(0.86, rgb(28, 58, 148))
    );
}

.iti__country-list {
    scrollbar-width: thin;
    scrollbar-color: #4a86e8 #f5f5f5;
}

.iti__country-list {
    width: 100%;
    max-width: 350px;
    overflow-x: hidden;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px,
        rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    text-align: start;
}

.iti__country {
    padding: 10px;
}

.iti {
    width: 100%;
    display: block;
    position: relative;
    background: none;
    outline: none;
    border: none;
}

.iti * {
    box-sizing: border-box;
    text-align: start;
}

.iti__country-list {
    width: 100%;
    max-width: 350px;
    overflow-x: hidden;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px,
        rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
}

.iti__selected-flag {
    display: none;
}

.iti__country {
    padding: 10px;
}

.hidden {
    display: none;
}

.flag-box {
    visibility: hidden;
}

.show-select {
    display: flex !important;
}

.hide {
    visibility: hidden !important;
}

.show {
    visibility: visible !important;
}

.radio-container label {
    padding: 5px 15px;
    border: 1px solid #696969;
    border-radius: 20px;
    color: #696969;
    background: #ffffff;
    font-weight: bolder;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 5px 0px,
        rgba(0, 0, 0, 0.1) 0px 0px 1px 0px;
    white-space: nowrap;
    margin-right: auto;
    margin-bottom: 15px;
    text-align: start;
}

.radio-container label input[type="radio"] {
    display: none;
}
/* loader */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px;
}

.bot-image {
    width: 30px; /* Adjust the size as needed */
    height: 30px; /* Adjust the size as needed */
    border-radius: 50%;
    margin-right: 10px; /* Space between the image and the dots */
}

.dot-container {
    display: flex;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #747272; /* Color of the dots */
    animation: bounce 1.5s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
