html {
    scroll-behavior: smooth;
}

/*.chat-wrapper {*/
/*    transform: scale(0);*/
/*    opacity: 0;*/
/*    transition: transform 0.3s ease-out, opacity 0.2s ease-out;*/
/*}*/

/*.chat-wrapper.show-chat {*/
/*    transform: scale(1);*/
/*    opacity: 1;*/
/*    animation: bounceIn 0.4s ease-out;*/
/*}*/

/*@keyframes bounceIn {*/
/*    0% { transform: scale(0.5); opacity: 0.5; }*/
/*    60% { transform: scale(1.1); opacity: 1; }*/
/*    100% { transform: scale(1); }*/
/*}*/

#chat-square {
    right: 50px;
    background-image: url("../images/ankur_chat.jpeg");
    background-position: center center;
    background-size: cover;
    width: 70px;
    height: 70px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    background-repeat: no-repeat;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 4px solid #CEA376;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 4px #CEA376, 0 0 25px rgba(206, 163, 118, 0.4);
    border-radius: 50%;
    position: fixed;
    bottom: 50px;
    right: 30px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.close-img {
    background-image: url("../images/chatbot/closebtn3.svg");
    padding: 0;
    background-position: center center;
    background-size: contain;
    position: relative;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    filter: brightness(0) invert(1);
}

#chat-close {
    right: 10px;
    background-position: center center;
    background-size: cover;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10002;
    position: absolute;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 26, 26, 0.9);
    border: 2px solid #CEA376;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chat-wrapper[style*="display: block"] #chat-close,
.chat-wrapper[style*="display:flex"] #chat-close,
.chat-wrapper[style*="display: flex"] #chat-close,
.chat-wrapper:not([style*="display: none"]) #chat-close {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#chat-close:hover {
    background-color: #CEA376;
}

@media (max-width: 767px) {
    .chat-footer {
        position: relative !important;
        bottom: 0 !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    #chat-close {
        right: 10px;
        z-index: 10003 !important;
        top: 10px;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: rgba(26, 26, 26, 0.9) !important;
        border: 2px solid #CEA376 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }
    #chat-square{
        bottom: 100px !important;
    }
}

#chat-square {
    border-radius: 7px;
    transition: all 0.3s ease;
}

#chat-square:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px 8px rgba(0, 0, 0, 0.3), 0 0 0 3px #CEA376;
}

#chat-square {
    position: fixed;
    bottom: 50px;
    right: 30px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Removed duplicate - using the one below with full styles */

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

.hb-actions-buttons-button {
    box-shadow: 0px 3px 3px #ddd !important;
}

.hb-actions-buttons-button:active {
    box-shadow: 0 2px 8px rgba(206, 163, 118, 0.3) !important;
    transform: translateY(0);
    background: linear-gradient(135deg, #b8945f 0%, #CEA376 100%);
}

.hb-actions-buttons-button:hover {
    background: linear-gradient(135deg, #b8945f 0%, #CEA376 100%);
    color: #FFFFFF !important;
    border-color: #CEA376;
    box-shadow: 0 6px 16px rgba(206, 163, 118, 0.4);
    transform: translateY(-2px);
}

.hb-actions-buttons {
    margin-top: 16px;
}

.hb-message-content {
    margin-top: 15px;
}

.chat-wrapper {
    display: none;
    background: #FFFFFF;
    right: 30px;
    width: 420px;
    max-width: 85vw;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 3px #CEA376, 0 0 18px rgba(206, 163, 118, 0.12);
    z-index: 10000;
    height: 79%;
    max-height: 650px;
    position: fixed;
    bottom: 120px;
    border: 3px solid #CEA376;
    overflow: hidden;
}

.chat-wrapper[style*="display: block"],
.chat-wrapper[style*="display:flex"],
.chat-wrapper[style*="display: flex"],
.chat-wrapper:not([style*="display: none"]) {
    display: flex !important;
    flex-direction: column;
}

.chat-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 12px;
    background: linear-gradient(135deg, #CEA376 0%, #b8945f 50%, #CEA376 100%);
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

.chat-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0c0e 100%);
    height: 60px;
    color: #fff;
    padding: 12px 16px;
    border: none;
    display: flex;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(206, 163, 118, 0.5), transparent);
}

.chat-header-photo {
    float: left;
    background-image: url("../images/ankur_chat.jpeg");
    background-position: center center;
    background-size: cover;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(206, 163, 118, 0.3);
    margin-left: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-header-name {
    float: left;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.chat-box-toggle {
}

.chat-box-body {
    width: 100%;
    height: calc(100% - 60px);
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chat-container {
    background-color: #fcfcfc;
    padding: 0px 18px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#hb-chat-bot {
    height: 100%;
}

#chat-input,.chat-box-body {
    position: relative;
    border: 1px solid #fcfcfc;
    overflow: hidden;
    margin-top: 0px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top: 0px;
    background-color: #fcfcfc;
    border-radius: 0px 0px 6px 6px;
    overflow: hidden;
}

.chat-box-body:after {
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    position: absolute;
    z-index: -1;
    background-color: #fcfcfc;
}

.hb-message {
    min-height: 30px;
    margin-top: 6px;
    position: relative;
}

.hb-message-content.loading {
    background-color: transparent !important;
    line-height: 1.3;
    text-align: center;
    border: 0px;
}

.hb-message-content {
    padding: 10px 14px;
    color: #333333;
    background-color: #F0F0F0;
    border-radius: 12px 12px 12px 4px;
    letter-spacing: 0;
    line-height: 1.5;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    border: 1px solid rgba(206, 163, 118, 0.1);
}

.hb-message-content {
    width: auto;
    max-width: 80%;
    display: inline-block;
}

.hb-message-content .dot:nth-last-child(5) {
    animation: 0.6s linear 0.1s infinite loading;
    -webkit-animation: 0.6s linear 0.1s infinite loading;
}

.hb-message-content .dot:nth-last-child(4) {
    margin-left: 0.2rem;
    animation: 0.6s linear 0.1s infinite loading;
    -webkit-animation: 0.6s linear 0.2s infinite loading;
}

.hb-message-content .dot:nth-last-child(3) {
    margin-left: 0.2rem;
    animation: 0.6s linear 0.1s infinite loading;
    -webkit-animation: 0.6s linear 0.3s infinite loading;
}

.hb-message-content .dot:nth-last-child(2) {
    margin-left: 0.2rem;
    animation: 0.6s linear 0.1s infinite loading;
    -webkit-animation: 0.6s linear 0.4s infinite loading;
}

.hb-message-content .dot:nth-last-child(1) {
    margin-left: 0.2rem;
    animation: 0.6s linear 0.5s infinite loading;
}

.hb-message-content .dot {
    width: 4px;
    height: 4px;
    border-radius: 0.5rem;
    display: inline-block;
    background-color: #333;
}

.chat-messages-container {
    position: relative;
}

.hb-actions-mobile {
    border-radius: 15px;
}

.hb-message {
    margin: 8px 0;
    min-height: 20px;
    position: relative;
    padding: 0px 0px 0px 40px;
}

button.hb-actions-buttons-button:not(:first-child) {
    margin-left: 8px;
}

button.hb-actions-buttons-button {
    margin-top: 10px;
    margin-bottom: 10px;
}

button.hb-actions-buttons-button {
    cursor: pointer;
    -webkit-appearance: button;
}

button.hb-actions-buttons-button, input.hb-actions-text-input {
    margin: 0;
    font-size: 100%;
    line-height: normal;
    vertical-align: baseline;
    margin-bottom: 8px;
    color: #fff;
}

.hb-actions-buttons-button {
    border: 2px solid rgba(206, 163, 118, 0.4);
    color: #FFFFFF !important;
    line-height: 1.4;
    cursor: pointer;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #CEA376 0%, #b8945f 100%);
    box-shadow: 0 4px 12px rgba(206, 163, 118, 0.25), 0 0 8px rgba(206, 163, 118, 0.12);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    position: relative;
}

.hb-actions-buttons-button:hover {
    border-color: rgba(206, 163, 118, 0.6);
    box-shadow: 0 6px 16px rgba(206, 163, 118, 0.4), 0 0 12px rgba(206, 163, 118, 0.2);
}

.hb-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    float: none;
    gap: 8px;
    margin: 12px 0;
}

.hb-actions-buttons-button {
    flex: 1 1 auto;
    min-width: calc(50% - 4px);
    white-space: nowrap;
    text-transform: uppercase !important;
}

.hb-message-content.human {
    color: #FFFFFF;
    background: linear-gradient(135deg, #CEA376 0%, #b8945f 100%);
    border-radius: 12px 12px 4px 12px;
    border: 1px solid rgba(206, 163, 118, 0.3);
    box-shadow: 0 2px 8px rgba(206, 163, 118, 0.25), 0 0 12px rgba(206, 163, 118, 0.15);
}

.hb-message.human {
    text-align: right;
}

.hb-message:after {
    display: block;
    content: "";
    clear: both;
    margin-bottom: -10px;
}

.chat-logs {
    flex: 1 1 auto;
    min-height: 0;
    font-size: 14px;
    background: #F8F9FA;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    padding-bottom: 100px;
    scrollbar-width: thin;
    scrollbar-color: rgba(206, 163, 118, 0.3) transparent;
    box-sizing: border-box;
}

.chat-logs::-webkit-scrollbar {
    width: 6px;
}

.chat-logs::-webkit-scrollbar-track {
    background: transparent;
}

.chat-logs::-webkit-scrollbar-thumb {
    background: rgba(206, 163, 118, 0.3);
    border-radius: 3px;
}

.chat-logs::-webkit-scrollbar-thumb:hover {
    background: rgba(206, 163, 118, 0.5);
}

.chat-elements.country-dropdown {
    width: auto;
    min-width: 70px;
    max-width: 90px;
    flex-shrink: 0;
    /*border-top-right-radius: 0px;*/
    /*border-bottom-right-radius: 0px;*/
    /*display: none;*/
}

.chat-elements.mobile-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 0 8px;
    border-radius: 6px;
    overflow: hidden;
    height: 40px;
    width: 100%;
}

.chat-elements {
    display: inline-block;
    border-top: none;
    border-left: none;
    border-right: none;
    height: 40px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #333333;
    background-color: #FFFFFF;
    background-clip: padding-box;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0;
    border: 1px solid rgba(206, 163, 118, 0.2);
    padding-left: 16px;
    padding-right: 10px;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    vertical-align: middle;
    max-width: 100%;
    overflow: hidden;
}

.chat-elements:focus-visible {
    outline: none;
    border-color: #CEA376 !important;
    box-shadow: 0 0 0 3px rgba(206, 163, 118, 0.15);
}

.hb-actions-text-submit {
    color: #FFFFFF;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 5px;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    line-height: 1;
    border-radius: 50%;
    border: 2px solid rgba(206, 163, 118, 0.4);
    background: linear-gradient(135deg, #CEA376 0%, #b8945f 100%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(206, 163, 118, 0.25), 0 0 8px rgba(206, 163, 118, 0.12);
    position: relative;
    margin: 0 !important;
}

.hb-actions-text-submit:hover {
    background: linear-gradient(135deg, #b8945f 0%, #CEA376 100%);
    border-color: #CEA376;
    box-shadow: 0 4px 12px rgba(206, 163, 118, 0.4);
    transform: scale(1.05);
}

.hb-actions-text-submit img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.hb-actions-email {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}

.hb-actions-name {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
}

.input-bottom {
    width: 100%;
    max-width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
}

.input-bottom .chat-elements {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    order: 1;
    margin: 0 !important;
    align-self: center !important;
}

.input-bottom .hb-actions-text-submit {
    flex-shrink: 0 !important;
    order: 2;
    margin: 0 !important;
    align-self: center !important;
    position: relative !important;
    top: 0 !important;
    bottom: auto !important;
}

@media (max-width: 767px) {
    .chat-wrapper {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        display: none;
        background: #efefef;
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        box-shadow: none;
        height: auto;
        padding: 0;
        margin: 0;
    }

    .chat-box-body {
        height: calc(100% - 60px);
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .chat-logs {
        flex: 1 1 auto;
        min-height: 0;
        padding-bottom: 100px;
    }
}

@keyframes blink {
    50% {
        border-color: #CEA376;
    }
}

@keyframes loading {
    0%, 50% {
        transform: translate(0, 0);
        background-color: #ababab;
    }

    25% {
        transform: translate(0, -3px);
    }

    75% {
        transform: translate(0, 3px);
    }

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

.hb_message_time {
    opacity: 0;
    font-size: 10px;
    color: #353f45;
    transition: all 0.3s ease;
    transition-delay: 0.35s;
    top: 56%;
    position: absolute;
    padding: 0 6px;
    white-space: nowrap;
}

.human .hb_message_time {
    left: 0;
}

.hb-message:hover .hb_message_time {
    opacity: 1;
}

.hb_message_time_flash {
    display: block;
    font-size: 10px;
    color: #353f45;
    transition: all 0.3s ease;
    transition-delay: 0.35s;
    padding: 0 6px;
}

.hb_message_time_flash .material-icons {
    font-size: inherit;
    font-weight: 600;
    color: green;
    padding-right: 3px;
}

.chat-messages-time {
    font-size: 10px;
    color: #3D454A;
    padding: 15px 0 0px;
    text-align: center;
    text-transform: uppercase;
    line-height: 13px;
}

.chat-footer {
    position: relative;
    bottom: 0;
    width: 100%;
    color: #000;
    left: 0;
    right: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    flex-shrink: 0;
    z-index: 10;
}

.hb-actions-mobile {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #fcfcfc;
    padding: 12px 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    box-sizing: border-box;
    overflow: hidden;
}

.hb-actions-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(206, 163, 118, 0.5), transparent);
}

.hb-message-content .dot:after {
    content: none;
}

#required_msg {
    display: none;
    margin-top: -12px;
    color: red;
    padding-left: 10px;
}

.active-circle {
    width: 12px;
    display: block;
    height: 12px;
    border-radius: 50%;
    background: green;
    position: absolute;
    right: -2px;
    bottom: 0;
    border: 2px solid #fff;
    z-index: 1;
}

.start::before {
    content: "Ankur";
    display: block;
    font-size: 10px;
    line-height: 13px;
    margin: 18px 0px -5px 0px;
    color: #3D454A;
    letter-spacing: 0px;
}

.end::after {
    content: "";
    margin-bottom: 12px;
    background-image: url("../images/ankur_chat.jpeg");
    background-position: center center;
    background-size: cover;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: block;
    position: absolute;
    left: 0px;
    bottom: -10px;
}

.text_start_end::before {
    display: block;
    font-size: 10px;
    line-height: 13px;
    margin: 20px 0px -5px 0px;
}

.text_start_end::after {
    content: "";
    background-position: center center;
    background-size: cover;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: block;
    position: absolute;
    left: 0px;
    bottom: -10px;
}

.loading {
    float: right;
    white-space: nowrap;
    overflow: hidden;
    margin-top: 0px;
    margin-right: 10px;
}

.display_none {
    display: none;
}
/*   small popup */
.chat-pop-sm {
    display: none;
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 10000;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0c0e 100%);
    height: 135px;
    width: 235px;
    text-align: center;
    padding: 15px 20px 10px;
    border-radius: 12px;
    border: 3px solid #CEA376;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 3px #CEA376, 0 0 18px rgba(206, 163, 118, 0.12);
    letter-spacing: normal;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.chat-pop-sm::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 12px;
    background: linear-gradient(135deg, #CEA376 0%, #b8945f 50%, #CEA376 100%);
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

.chat-pop-txt {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
    font-family: var(--futura_bt_medium, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

.chat-pop-sm .close {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #FFFFFF;
    opacity: 0.8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(206, 163, 118, 0.3);
    transition: all 0.3s ease;
}

.chat-pop-sm .close:hover {
    opacity: 1;
    background: rgba(206, 163, 118, 0.2);
    border-color: #CEA376;
}

button.chat-pop-sm-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    background: linear-gradient(135deg, #CEA376 0%, #b8945f 100%);
    border: 2px solid #CEA376;
    border-radius: 8px;
    width: 160px;
    margin-top: 9px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(206, 163, 118, 0.25);
    font-family: var(--futura_bt_medium, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button.chat-pop-sm-btn:hover {
    background: linear-gradient(135deg, #b8945f 0%, #CEA376 100%);
    box-shadow: 0 6px 16px rgba(206, 163, 118, 0.35);
    transform: translateY(-2px);
    color: #FFFFFF;
}

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