 .top-chat-header{
     display: flex;
     align-items: center;
     gap:8px;
    /* width: 440px;*/
     height: 58px;
     border-bottom: 1px solid #CBCBCB;
     width: calc(100% + 20px); 
     margin: -10px -10px 0 -10px;
     border-radius: 32px 32px 0 0;
     padding: 20px 24px; 
     font-family: 'Roboto';
     white-space: nowrap;
     box-sizing: border-box;
     
 }
 .header-logo-img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
   /* background: var(--primary-color);*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
 }
.kalrav-header-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
   /* background: var(--primary-color);*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    

    position: relative;
    background: #ffff;
  
    border-radius: 14px;
   
    border-radius: 50%;
    /* background: #f6f3f4; */
   
}

 span.chat-label {

    white-space: normal !important;  
    text-overflow: ellipsis;
    display: block;
    font-family: 'Roboto';
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--primary-color);
    justify-content: center;
 }
 .chat-header-actions{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
   /* width: 92px;*/
    height: 24px;
 }
 
/* Unified icon button */
.chat-header-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    border-radius: 6px;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
/* Hover effect */
.chat-header-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    opacity: 0.85;
}
@media (max-width: 480px) {
    .chat-header-icon {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

  
}
.clear-chat{
    border-radius: 50%;
    width: 24px; 
    height: 24px;
    display: flex; align-items: center; justify-content: center;
     cursor: pointer; padding: 0;
}
.close-chat
{
    border-radius: 50%;
    width: 24px; 
    height: 24px;
    display: flex; 
    align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
}
#chat-tabs-container{
    display: none;
    background: #E0E0E0;
    border-radius: 60px;
    padding: 4px;
    align-self: center;
     /*width: 108px;*/
    height: 30px !important;
    gap:4px;
}
#chat-tab-btn{
font-family: 'Roboto';
font-weight: 500;
font-style: Medium;
font-size: 12px;
line-height: 14px;
letter-spacing: 0%;
/*width: 52px;*/
height: 22px;
align-self: center;
color:#3F3E3E;
background: #fff;
padding: 4px 8px 4px 8px;
 border: none; border-radius: 16px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12); transition: all 0.2s;

}
#history-toggle-btn{
font-family: 'Roboto';
font-weight: 500;
font-style: Medium;
font-size: 12px;
align-self: center;
color:#3F3E3E;
line-height: 14px;
letter-spacing: 0%;
height: 22px;
padding: 4px 8px 4px 8px;
display: block !important;
padding: 4px 14px; border: none; border-radius: 16px;     
background: transparent; color: #3F3E3E; text-transform: none;
transition: all 0.2s;
}

/* ─── Chat Intro Section Fix ─── */

.chat-intro {
    opacity: 1;
    font-family: 'Roboto';
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    gap: 24px;
    height: auto;
    min-height: 72px;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.1);
    position: relative;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.chat-intro-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* ✅ Avatar: fixed size, flex-shrink:0 so it never squishes */
.chat-agent-avatar {
    flex-shrink: 0;
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ Text block fills remaining space and clips long text gracefully */
.chat-intro-text {
    flex: 1;
    min-width: 0;         
    gap: 0;
    color: #000;
    font-size: 15px;
    line-height: 1.5;
}

.chat-greeting {
    font-family: 'Roboto';
    font-weight: 400;
    color: #000000;
    font-style: normal;
    font-size: 15px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    margin: 0;
}

.chat-label-text {
    font-family: 'Roboto';
    font-weight: 600;
    margin-top: 4px;
    font-style: normal;
    font-size: 18px !important;
    color: #000000;
    line-height: 1.2;
    letter-spacing: -0.5px;
    white-space: normal;
    word-break: break-word;
    margin-bottom: 0;
}

/* ✅ Close button stays right-aligned without pushing content */
.chat-intro-close {
    position: static;
    margin-left: 8px;
    flex-shrink: 0;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #888;
    align-self: flex-start; /* pin to top-right */
}

.chat-intro-close:hover svg path {
    stroke: #333;
}
 /* .top-chat-header{
     display: flex;
     align-items: center;
     gap:16px;
  
     height:84px;
     border-bottom: 1px solid #CBCBCB;
     width: calc(100% + 20px); 
     margin: -10px -10px 0 -10px;
     border-radius: 30px 30px 0 0;
     padding: 20px 24px; 
     font-family: 'Roboto';
     white-space: nowrap;
     box-sizing: border-box;
 }*/
.kalrav-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 50%;
    display: block;
}

 .chat-header-actions{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
   /* width: 92px;*/
    height: 24px;
 }
 
/* Unified icon button */
.chat-header-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    padding: 2px 2px 2px 2px;
    border-radius: 6px;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
/* Hover effect */
.chat-header-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    opacity: 0.85;
}
@media (max-width: 480px) {
    .chat-header-icon {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

   
    .chat-intro-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
}
.clear-chat{
    border-radius: 50%;
    width: 24px; 
    height: 24px;
    display: flex; align-items: center; justify-content: center;
     cursor: pointer; padding: 0;
}
.close-chat
{
    border-radius: 50%;
    width: 24px; 
    height: 24px;
    display: flex; 
    align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
}

.chat-greeting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}


.chat-intro-close {
    position: static;
    margin-left: 8px;
    flex-shrink: 0;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #888;
}


.chat-intro {
    position: relative;        
}

.chat-intro-close:hover svg path {
    stroke: #333;
}

  .chat-label-text{
   font-family: 'Roboto';
    font-weight: 600;
    display: flex;
    gap: 4px;
    font-style: normal;
    font-size: 18px !important;
   /* color:var(--primary-color);*/
    line-height: 100%;
    letter-spacing: -6%;

    }
    /* Text content */
    .chat-intro-text {
    flex: 1;
     gap: 0;
    color: #000;
    font-size: 15px;
    line-height: 1.5;
    }
      
.chat-greeting {
 
 font-family: 'Roboto';
    font-weight: 400;
    color:#000000;
    font-style: normal;
    font-size: 15px;
    align-items: center;
    line-height: 100%;
}

.chat-intro-text strong {
  color: var(--primary-color);
  font-weight: 600;
}
.chat-greeting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.chat-subtext {
  color: #333;
  font-size: 14px;
}

.chat-intro-text strong {
  color: var(--primary-color);
  font-weight: 600;
}
.chat-greeting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.chat-subtext {
  color: #333;
  font-size: 14px;
}
.default-suggestion{
padding: 16px 0px;
   
    display: flex;
    gap: 16px;
    flex-direction: column; 
}
.question-heading-text{
font-family: Roboto;
align-self: center;
font-weight: 600;
font-style: normal;
font-size: 15px;
line-height: 100%;
letter-spacing: 0%;
color:#000000;

}
.suggestions-list{
    display: flex; 
    flex-direction: column; 
    gap: 8px;
}
.chat-suggestion-btn {
    border-radius: 10px;
    border: solid 0.5px var(--primary-border-color);
    padding: 12px 24px 12px 24px;
    height: 44px;
    font-family: Roboto;
    font-style: Regular;
    text-align: left;
    color: #000000;
    font-size: 15px;
    background-color: #ffff;
    line-height: 100%;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    letter-spacing: 0%;
    text-transform: none;
    align-items: center;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    flex-direction: row;
    justify-content: space-between;
}


.kalravai-inside-disclaimer{
            /* width: 392;*/
            height: 50px;
            border-radius: 5px;
            opacity: 1;
            gap: 24px;
            display: flex;
            align-items: center;
            background-color: #FFF3CD;
            height: 50px;
            border-radius: 5px;
            opacity: 1;
            gap: 16px;
            padding-top: 8px;
            padding-right: 16px;
            padding-bottom: 8px;
            padding-left: 16px;

}


.kalravai-inside-disclaimer-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
}

.kalravai-inside-disclaimer-close {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    padding: 0 0 0 8px;
    line-height: 1;
    flex-shrink: 0;
}

.kalravai-inside-disclaimer-close:hover {
    color: #333;
}

@media (max-width: 480px) {

    .chat-intro {
        padding: 10px 12px;
        gap: 8px;
        min-height: 60px;
    }

    .chat-intro-wrapper {
        gap: 8px;
        align-items: flex-start; /* keeps avatar top-aligned when text wraps */
    }

    .chat-intro-text {
        min-width: 0;       /* critical — allows flex child to shrink below content width */
        flex: 1;
        gap: 4px;
    display: grid;
    }

    .chat-greeting {
        font-size: 13px;
        line-height: 1.4;
        white-space: normal;
        word-break: break-word;
    }

    .chat-label-text {
        font-size: 16px !important;  /* was 20px — too large for narrow containers */
        line-height: 1.2;
        white-space: normal;
        word-break: break-word;
    }

    .chat-intro-close {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        align-self: flex-start;
        margin-top: 2px;
    }

  
}
#chat-input{
    width: 100%; 
    height: 100%;
     padding: 0 44px 0 12px;
      border-radius: 12px; 
      border: 1px solid #ccc; 
      font-size: 15px; 
      outline: none; 
      box-sizing: border-box;
}
/* ── Chat Input */
#chat-input-card {
    background: #fff;
    border: 1px solid #CBCBCB;
    box-sizing: border-box;
    width: 100%;
   /* min-width: 392px;*/
    min-height: 98px;
    /* top: 714px; */
    opacity: 1;
    gap: 48px;
    border-radius: 12px;
    border-width: 1px;
    padding: 16px;
}

/* Input inside card: no individual border, transparent */
#chat-input-card #chat-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 32px 0 4px !important;
    height: 36px !important;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Language select inside card: borderless, compact */
#chat-input-card .kalrav-language-select,
#chat-input-card #language-select {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
   /* height: 28px !important;*/
   border: 1px solid #ccc;
    border-width: 1px;
    border-radius: 6px;
    padding: 0 24px 0 2px !important;
    font-size: 13px !important;
    width: auto !important;
    min-width: 70px !important;
}

#chat-input-card .kalrav-language {
    border: none;
    background: transparent;
}

/* Send button stays same size */
#chat-input-card #send-chat {
    flex-shrink: 0;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}
#chat-input-section{
    padding: 12px; 
    
}
#voice-input-btn{
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgb(111, 111, 111);
                   
}
.kalravai-disclaimer{
 /* width: 392;*/
/*height: 50;*/
border-radius: 5px;
opacity: 1;
gap: 24px;
padding-top: 8px;
padding-right: 16px;
/*padding-bottom: 8px;*/
/* padding-left: 16px; */
font-family: Roboto;
font-weight: 400;
font-style: Regular;
font-size: 12px;
line-height: 100%;
letter-spacing: 0%;
}
.kalravai-disclaimer span{
font-family: Roboto;
font-weight: 400;
font-style: normal;
font-size: 12px !important;
line-height: 100%;
color:#818181 !important;
letter-spacing: 0%;

}
#poweredby{
  
    display: flex;
    flex-direction: row;
    gap: 8px;
    font-family: Roboto;
    font-weight: 500;
    font-style: Medium;
    color:#818181;
    padding-right: 16px;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    justify-content: flex-end;
}
#poweredby a{
  
 align-self: center;
}
.footer-logo-img{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:#818181;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
 }
.kalrav-footer-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #818181;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.kalrav-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* ensures proper cropping */
    border-radius: 50%;
    display: block;
}
.kalravai-footer{
    display: flex;
    flex-direction: column;
   /* width: 392px;*/
    height: 42px;
    gap: 2px;
    opacity: 1;
    padding-left: 24px;
  /*  padding-right: 24px;*/
    
}
button#send-chat svg {
    fill: none !important;
}
/*.kalravai-disclaimer span{
font-family: Roboto;
font-weight: 500;
font-style: Medium;
font-size: 12px;
line-height: 100%;
letter-spacing: 0%;

}*
/* Overlay */
#new-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* transparent background */
    display: none; /* show with JS */
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

/* Modal Box */
#clear-chat-dialog {
    width: 360px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    font-family: 'Inter', Arial, sans-serif;
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid #eee;
}

.modal-title {
font-family: Roboto;
font-weight: 600;
color:#000000;
font-style: SemiBold;
font-size: 14px;
line-height: 100%;
letter-spacing: 0%;

}

/* Close button */
#modal-close {
    background: #fff;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    color: #888;
}

#modal-close:hover {
    color: #333;
}

/* Body */
.modal-body {
    display: flex;
    gap: 24px;
    padding: 24px 24px;
    text-align: center;
    flex-direction: column;
}

.modal-text {
font-family: Roboto;
font-weight: 400;
margin:0;
font-style: Regular;
font-size: 14px;
color:#616161;
line-height: 140%;
letter-spacing: 0%;
text-align: center;

}

/* Button */
#start-new-chat {
    background: linear-gradient(90deg, #5a4bff, #6a5cff);
    color: #fff;
    border: none;
    width:263px;
    height:40px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#start-new-chat:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(90,75,255,0.3);
}
#confirm-clear
{
   
    width: 163px !important;
    display: flex;
    align-items: center;
    align-self: center;
    height: 40px;
    background-color: var(--primary-color);
    opacity: 1;
    border-radius: 10px;
    padding-top: 12px;
    padding-right: 24px;
    padding-bottom: 12px;
    padding-left: 24px;
    gap: 8px;
    border: 1px;

}