#chat-icon {
  position: fixed;
  bottom: 10%;
  right: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #00000000 !important;
  z-index: 1001; /* Make sure the chat icon is above the web chat container */
  border-radius: 50%;
  color: black;
  @media (max-width: 767px) {
      width: 52px !important;
      height: 52px !important;
  }

  @media (min-width: 768px) and (max-width: 1199px) {
      width: 52px !important;
      height: 52px !important;
  }

  @media (min-width: 1200px) and (max-width: 1365px) {
      width: 58px !important;
      height: 58px !important;
  }

  @media (min-width: 1366px) and (max-width: 1919px) {
      width: 64px !important;
      height: 64px !important;
  }

  @media (min-width: 1920px) {
      width: 96px !important;
      height: 96px !important;
  }
}

.hidden {
  display: none;
}

.webchat__send-box__text-box {
  padding:0px 0px !important;
}

button.ac-pushButton.style-default.ac-selectable {
  cursor: pointer;
  height: 28px;
  width: fit-content;
  min-width: 68px;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 4px;
  padding-left: 12px;
  gap: 4px;
  border: 0.5px solid #000000;
  font-family: roboto;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #000000;
}

button.ac-pushButton.style-default.ac-selectable:hover {
  /* background-color: #01044B;
  border: 1px solid #000; */
  color: #FFFFFF;
  background: #171C8F;
}
button.ac-pushButton.style-default.ac-selectable[aria-pressed="true"] {
 /* background-color: #01044B;
  color: #FFFFFF;
  border: 1px solid #000; */
  background: #171C8F;
  font-family: roboto;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.custom-send-button {
   
  border: none;
  cursor: pointer; 
} 

.webchat__bubble__content table {
  border-collapse: collapse; /* Ensure borders are collapsed for a cleaner look */
  width: 100%; /* Optional: make the table take the full width of its container */
}

.webchat__bubble__content table
.webchat__bubble__content table th,
.webchat__bubble__content table td {
  border: 1px solid #000000;
}

.webchat__bubble__content table th {
  background-color: #18171A;
  color: white; /* Change the text color as needed */
  padding: 8px; /* Optional: add padding for better spacing */
  border: 1px solid white;
}


#maximize-button{
  cursor: pointer;
  position: absolute;
  left: 324px;
  @media (max-width: 767px) {
      display: none !important;
  }
}

#minimize-to-standard{
  position: absolute;
  left:645px;
  @media (max-width: 767px) {
      display: none !important;
  }
}



/* .webchat__imageAvatar,
.webchat__initialsAvatar,
.webchat__defaultAvatar,
.webchat__stacked-layout__avatar-gutter {
  @media (max-width: 767px) {
      width: 52px !important;
      height: 52px !important;
  }

  @media (min-width: 768px) and (max-width: 1199px) {
      width: 40px !important;
      height: 40px !important;
  }

  @media (min-width: 1200px) and (max-width: 1365px) {
      width: 58px !important;
      height: 58px !important;
  }

  @media (min-width: 1366px) and (max-width: 1919px) {
      width: 64px !important;
      height: 64px !important;
  }

  @media (min-width: 1920px) {
      width: 96px !important;
      height: 96px !important;
  }

} */

#loadingMessage {
  font-size: 20px;
  text-align: center;
  border: 2px solid #0B38C4;
  background-color: #ffffff;
  height: 45%;
  padding-top: 20%;
}

#webchat-container {
  width: 400px;
  height: 600px;
  transition: all 0.3s ease-in-out;
  max-height: calc(100vh - 100px);
  @media (max-width: 767px) {
      width: 360px !important;
      height: 600px;
      right: 0% !important; 
  }   
  display: none;
  position: fixed;
  bottom: 0;
  right: 1%; 
   z-index: 1001;
  /* max-width: 90%;  */
  border-radius: 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  h1, h2, h3, h4, h5, h6 {
    all: revert;
  }
}

#webchat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px;
  background: linear-gradient(228.24deg, rgba(23, 29, 155, 0.1) 31.52%, rgba(1, 1, 1, 0.1) 111.9%);
  font-weight: 700;
  /* border-top-left-radius: 10px; Border radius for the top-left corner */
  /*border-top-right-radius: 10px;  Border radius for the top-right corner */
  color: #171C8F;
  font-size: 16px;
  height: 49px;

}

#minimize-button {
cursor: pointer;
font-size: 18px;
color: #171C8F;
  margin-right: 10px;
  /* margin-top: -10px; */
}

#pre-chat-container {
text-align: center;
background-color: #ffffff;
display: none;
}
#avatar-container {
  width: 100%;
  justify-content: space-evenly;
  margin-top: 20px;
}
.avatar-mode, .chat-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  cursor: pointer;
}

#loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#loader {
  border: 6px solid #f3f3f3; /* Light grey */
  border-top: 6px solid #0B38C4; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
      transform: rotate(0deg);
  }

  100% {
      transform: rotate(360deg);
  }
}


#suggested-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#suggested-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  background-color: #fff;
  border: none;
  box-shadow: 0px 0.3px 0.9px rgba(0, 0, 0, 0.1), 0px 1.6px 3.6px rgba(0, 0, 0, 0.13);
  border-radius: 4px;
  padding: 4px 12px;
  font-family: "Segoe UI";
  cursor: pointer;
}

@media (min-width: 1920px) and (max-width: 2560px) {
  #webchat {
      height: 80%;
  }
}

#webchat {
height: 91%;
}

.ac-pushButton[disabled]{
  background-color: #ccc !important;
  border:0 !important;
  cursor: not-allowed !important;
  color: #939393 !important;
}

.ac-pushButton-disabled {
  background-color: #cccccc !important;
  border: 0 !important;
  cursor: not-allowed !important;
  color: #939393 !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  padding: 10px;
}

#webchat-popup {
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px;
background-color: #f9f9f9;
box-shadow: 0 0 10px rgba(0,0,0,0.15);
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
display: none;
}


.ac-multichoiceInput {
width: 100%;
padding: 5px;
border: 1px solid #ccc;
  min-height: 40px;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  padding-left: 0px !important;

  @media (max-width: 480px) {
      min-height: 36px;
      padding: 8px !important;
      font-weight: 400;
      font-size: 14px;
      line-height: 20px;
      padding-left: 0px !important;
  }
}
.ac-multichoiceInput:has(option:not(:first-child):checked) {
  font-weight: 600;

  @media (max-width: 480px) {
      font-weight: 600;
  }
}

#chat-history {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding-left: 0;
  max-width: 500px;
  justify-content: center;
  max-height: 70%;
  overflow: hidden;
}

#QuestionAsked {
  padding: 8px 16px 8px 16px;
  border-radius: 6px;
  background: rgba(0, 114, 135, .1);
  border: 2px solid rgba(0, 114, 135, .1);
  margin-bottom: 20px;
}

#spokenText {
  padding: 8px 16px 8px 16px;
  border-radius: 6px;
  background: rgba(0, 114, 135, .1);
  border: 2px solid rgba(0, 114, 135, .1);
/*    background: rgba(100, 170, 0, .1);
  border: 2px solid rgba(100, 170, 0, .1);*/
}

.outerbutton {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background-color: lightblue;
  margin: 0 0 0 0;
}

.test{
  color: #939393;
}

.round-button {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: 6px 0 0 6px;
  cursor: pointer;
}

.round-button i {
  font-size: 18px;
}

.round-button-hide {
  display: none;
}

.record-card {
  --card-width: 350px;
  --card-height: 108;
  padding: 10px;
  margin-top: -4px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  border-radius: 10px 10px 10px 10px;
}

.webchat--css-chlhj-12hch8g.webchat__adaptive-card-renderer .ac-pushButton[aria-pressed="true"] {
  background-color: #272727 !important;
  border-color: #272727 !important;
  color: white !important;
}

.webchat__fileContent__downloadIcon{
  fill: #171C8F!important;
  padding: 0 !important;
  height: 24px;
  width: 24px;
}

.webchat__fileContent__fileName {
  color: #171C8F !important;
}

.webchat__fileContent__buttonLink{
cursor:pointer;
}

/* new css */

#webchat-span{
  padding: 12px 12px 4px 12px;
  font-family: roboto;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;

  span{
      position: absolute;
      padding: 7px;
  }

  @media (max-width: 480px) {
      svg{
          width: 24px;
          height: 24px;
      }

      span{
          padding-top: 3px;
          padding-left: 8px;
      }
  }
}

#refresh-button {
  position: absolute;
  left: 280px;
  cursor: pointer;
  transition: left 0.3s ease-in-out; /* Add transition for smooth movement */
  @media (max-width: 767px) {
      position: unset;
      flex: 1;
      text-align-last: end;
      margin-right: 10px;
  }
}

/* terms and privacy */
#termsPrivacy{
  position: absolute;
  bottom: 0rem;
  /* background: #F2F2F2; */
  background: linear-gradient(228.24deg, rgba(23, 29, 155, 0.1) 31.52%, rgba(255, 98, 0, 0.1) 111.9%);
  width: auto;
  min-height: 140px;
  padding: 16px;
  color: #000000;

  font-family: roboto;
  font-weight: 400;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0%;


  a{
      text-align: left;
      text-underline-position: from-font;
      text-decoration-skip-ink: none;
      color: #000000;
      text-decoration: none;

      font-family: roboto;
      font-weight: 700;
      font-size: 10px;
      line-height: 15px;
      letter-spacing: 0%;

  }


  @media (max-width: 480px) {
      height: auto;
  }
  

  button{
      width: 100%;
      height: 42px;
      padding-top: 12px;
      padding-right: 24px;
      padding-bottom: 12px;
      padding-left: 24px;
      background: #171C8F;
      font-family: roboto;
      font-weight: 400;
      font-size: 14px;
      line-height: 18px;
      color: #F5F5F5;
      border: none;
      margin-top: 8px;
      cursor: pointer;
  }

  button:hover{
      color: #ffffff;
      background: #01044B;
  }

  @media (max-width: 480px) {
      button{
          height: 34px;
          padding-top: 8px;
          padding-bottom: 8px;
      }
  }
}

.webchat__bubble:not(.webchat__bubble--from-user) .webchat__bubble__content {
  background: #fff !important;
  border: none;
  border-width: 0px !important;
  padding-left: 12px;
  border-radius: 0px !important;
  padding-top: 0px;
}

.webchat__adaptive-card-renderer * {
  width: fit-content;
  flex: 1 1 auto !important;
}

.webchat__bubble.webchat__bubble--hide-nub .webchat__bubble__nub-pad{
  width: 0px !important;
}

.ac-adaptiveCard{
  padding: 0px !important;
}

.webchat__render-markdown{
  font-family: roboto;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #000000;

  @media (max-width: 480px) {
      font-family: roboto;
      font-weight: 400;
      font-size: 12px;
  }
}

.webchat__basic-transcript__filler{
display: none;
}

.webchat__stacked-layout{
  margin: 14px 12px 0px 12px !important;

  @media (max-width: 480px) {
      margin: 10px 12px 0px 12px !important;
  }
}

.webchat__send-box{
  background: linear-gradient(228.24deg, rgba(23, 29, 155, 0.1) 31.52%, rgba(255, 98, 0, 0.1) 111.9%);
}

.webchat__send-box .webchat__send-box__main{
  min-height: 50px !important;
  background-color: transparent !important;
  height: 60px;
}

.webchat__send-box__main form{
  height: 40px !important;
  border-bottom: 0.5px solid #939393 !important;
  margin: 16px 0px 16px 12px;
  gap: 8px;
}
.custom-send-button{
  padding: 0;
}

.webchat__send-box .webchat__send-box__microphone-button{
  align-content: center;
  height: 40px;
  margin-top: 16px;
  border-bottom: 0.5px solid #939393 !important;
  margin-right: 12px;
}

.webchat__send-box-text-box__input{
  font-family: roboto !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

.webchat__bubble__content{
margin-right: 12px !important;
  min-height: 32px !important;

  font-family: roboto;
  font-weight: 400;
  font-size: 12px;

  @media (max-width: 480px) {
      min-height: 24px !important;
  }

  ul:not(.media-list) {
    all: revert;
  }

  p {
    all: revert;
    font-size: 14px;
    line-height: 20px;
    @media (max-width: 480px) {
      font-size: 12px;
    }
  }
}

.webchat__text-content {
  padding: 6px 15px !important;

  @media (max-width: 480px) {
      padding: 1px 10px !important;
      align-content: center;
  }
}

#dealercode + div + div{
  width: 100%;

  div[style*="overflow: hidden;"] {
      width: 100%;
  }
}

.ac-container:has(#dealercode){ 
  gap: 9px;
  width: 100%;

  button{
      background-color: transparent;
      cursor: pointer;
      width: auto;
      height: 42px !important;
      border-radius: 0px !important;

      padding-top: 12px;
      padding-right: 24px;
      padding-bottom: 12px;
      padding-left: 24px;
      gap: 8px;
      border: 1px solid #171C8F;
      font-family: roboto;
      font-weight: 400;
      font-size: 14px;
      line-height: 18px;
      letter-spacing: 0%;
      color: #171C8F;

      @media (max-width: 480px) {
          height: 34px !important;
      }
  }

  @media (max-width: 768px) {
      button{
          width: 47.5% !important;
      }
  }
  @media (max-width: 360px) {
      button{
          width: auto !important;
      }
  }

  button:hover{
      color: #ffffff;
      background: #01044B;
  }
  button:active{
      color: #ffffff;
      background: #171C8F;

  }
}

.ac-container:has(#dealercode) .ac-actionSet {
  flex-direction: row !important;
  width: auto;
  gap: 8px;
  float: inline-end;
}

.webchat__adaptive-card-renderer .ac-input {
  border: 0;
  border-bottom: 1px solid #B2B2B2;
  background: transparent;
}

#comment{
width: 100%;

.ac-input-container{
  width: 100%
}
}

.ac-container:has(#responseId) div {
width: 100%;

  button{
  width: 100%
}
}

@media (max-width: 480px) {
  svg{
      width: 24px;
      height: 24px;
  }
}

@media (max-width: 480px) {
  .webchat__defaultAvatar{
      height: 24px !important;
      width: 24px !important;
  }

  [class*="webchat--css-"] > img {
      height: 24px;
      width: 24px;
  }
}

.webchat__suggested-action__text,  .webchat__text-content--is-plain{
font-family: roboto;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #000000;

}
@media (max-width: 480px) {
  .webchat__text-content--is-plain{
      font-size: 12px;
  }
}

.ac-adaptiveCard{
  img{
      /* width: 352px; */
      height: 160.5614013671875px;

      @media (max-width: 480px) {
          width: 336px;
          height: 153.26315307617188px;
      }
  }
}

.ac-container:has(.ac-textBlock) .ac-actionSet{
flex-direction: row !important;
  width: auto;
  gap: 8px;
  float: inline-end;

}

.ac-container:has(.ac-textBlock) .ac-textBlock + div + div{
  width: 100%;

  div[style*="overflow: hidden;"] {
      width: 100%;
  }
}

.ac-container:has(#modelcode){
width: 100%;

#modelcode {
  width: 100%;

  .ac-input-container{
    width: 100%
  }
}
}

.ac-container:has(#modelcode) .ac-actionSet{
flex-direction: row !important;
  width: 100%;
  gap: 8px;
  
  .ac-pushButton-disabled{
      padding: 4px 12px 4px 12px !important;
  }
}

.ac-container:has(#fueltypecode){
width: 100%;

#fueltypecode {
  width: 100%;

  .ac-input-container{
    width: 100%
  }
}
}

.ac-container:has(#fueltypecode) .ac-actionSet{
flex-direction: row !important;
  width: 100%;
  gap: 8px;
  
  .ac-pushButton-disabled{
      padding: 4px 12px 4px 12px !important;
  }
}

.ac-container:has(#variantcode) .ac-actionSet{
flex-direction: row !important;
  width: 100%;
  gap: 8px;
  
  .ac-pushButton-disabled{
      padding: 4px 12px 4px 12px !important;
  }
}

.ac-container:has(#colorcode){
width: 100%;

#colorcode {
  width: 100%;

  .ac-input-container{
    width: 100%
  }
}
}

.ac-container:has(#colorcode) .ac-actionSet{
flex-direction: row !important;
  width: 100%;
  gap: 8px;
  
  .ac-pushButton-disabled{
      padding: 4px 12px 4px 12px !important;
  }
}

.risclaimer{
  letter-spacing: 0.00938em;
  color: rgb(149, 143, 143);
  font-size: 0.55rem;
  font-weight: 400;
  line-height: 1;
  padding: 0rem 1rem;
  margin: 0;
  padding-bottom: 12px;
  text-align: justify;
}
.disclaimer-label{
  letter-spacing: 0.00938em;
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1;
  padding: 0rem 1rem;
  margin: 0;
  padding-bottom: 3px;
}

.webchat__upload-button{
display: none !important;
}
/* --- Wrapper/General --- */
#webchat-container {
  font-family: sans-serif;
}
/* --- FAQ Popup Container (Animation Logic) --- */
#faq-popup {
  position: absolute;
  top: 30%;
  left: 0;
  width: 100%;
  height: 70%;
  background: #F4F6F8;
  z-index: 1000;
  
  /* Animation Initial State: Hidden */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px); /* Starts slightly lower */
  transition: all 0.3s ease-in-out; /* Smooth fade and slide */

  display: flex;
  flex-direction: column;
  box-shadow: 0px -4px 10px rgba(0,0,0,0.1);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* This class is added via JS to show the popup */
#faq-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Header --- */
.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #F4F6F8;
  border-bottom: 1px solid #e0e0e0;
}

.faq-header h3 {
  margin: 0;
  font-size: 18px !important;
  font-weight: 700;
  color: #000;
}

.faq-close-icon {
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #333;
}

/* --- Content List --- */
.faq-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px;
  background: #F4F6F8;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
   overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 550;
  font-size: 14px;
  color: #18171A;
}

/* --- Toggle Icon Animation --- */
.faq-toggle-icon {
  font-size: 24px;
  color: #171C8F;
  font-weight: 200;
  display: inline-block;
  transition: transform 0.3s ease; /* Smooth rotation */
}

/* Rotate when active */
.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

/* --- Answer Animation (Accordion) --- */
.faq-answer {
  /* Initial State: Collapsed */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  
  /* Smooth expand effect */
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease;
}

/* Expanded State */
.faq-item.active .faq-answer {
  max-height: 500px; /* Increased height to fit lists */
  opacity: 1;
  margin-top: 10px;
}

/* --- LIST STYLING (For Bullet Points) --- */
.faq-answer ul {
  margin: 8px 0;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 5px;
  list-style-type: disc;
}

/* --- Footer --- */
.faq-footer {
  padding: 12px 10px;
  background: #fff;
  border-top: 1px solid #eee;
}

.faq-footer button {
  width: 100%;
  background: #171C8F;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.faq-link {
  color: #171C8F;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 300;
}
.blur-background {
  position: absolute;top: 0;
  left: 0;width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  transition: opacity 0.3s ease;
}
.faq-close-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

 #chat-icon-nexa-script {
  position: fixed;
  bottom: 10%;
  right: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #00000000 !important;
  z-index: 1001; /* Make sure the chat icon is above the web chat container */
  border-radius: 50%;
  color: black;
  @media (max-width: 767px) {
      width: 52px !important;
      height: 52px !important;
  }

  @media (min-width: 768px) and (max-width: 1199px) {
      width: 52px !important;
      height: 52px !important;
  }

  @media (min-width: 1200px) and (max-width: 1365px) {
      width: 58px !important;
      height: 58px !important;
  }

  @media (min-width: 1366px) and (max-width: 1919px) {
      width: 64px !important;
      height: 64px !important;
  }

  @media (min-width: 1920px) {
      width: 96px !important;
      height: 96px !important;
  }
}

.webchat__render-markdown ul,
.webchat__render-markdown ol {
    color: var(--nexa-text-primary) !important;
    padding-left: 20px !important;
    margin: 8px 0 !important;
}

.webchat__render-markdown li {
    color: var(--nexa-text-primary) !important;
    margin-bottom: 4px !important;
}

.webchat__send-button {
    display: none !important;
}
