/*CSS used for Vinny start*/

#ai-advisor-icon {
  display: block;
  position: fixed;
  bottom: 60px;
  right: 90px;
  z-index: 9999;
  cursor: pointer;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

#ai-advisor-icon.flash-once {
  animation: advisor-icon-flash-once 1.6s ease-in-out 0.2s 1;
}

@keyframes advisor-icon-flash-once {
  0% {
    transform: translateZ(0) scale(1);
    filter: brightness(1);
  }
  40% {
    transform: translateZ(0) scale(1.14);
    filter: brightness(1.5);
  }
  70% {
    transform: translateZ(0) scale(0.96);
    filter: brightness(1.1);
  }
  100% {
    transform: translateZ(0) scale(1);
    filter: brightness(1);
  }
}

#ai-advisor-icon img {
  width: 75px;
  height: 75px;
  display: block;
}


.chatbot-container {
  width: 90%;
  max-width: 380px;
  height: 75svh;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  bottom: calc(5px + max(env(safe-area-inset-bottom), 20px));
  right: 15px;
  z-index: 999;
}

#ai-advisor-prompt {
  display: none;
}

#terms-overlay {
  display: none;
}

/* Tablet Styles */
@media screen and (max-width: 1024px) {
  #ai-advisor-icon {
    bottom: 30px;
    right: 20px;

  }
  #ai-advisor-icon img {
    width: 60px;
    height: 60px;
  }
  .chatbot-container {
    width: 95%;
    right: 10px;
    left: auto;
    max-width: 400px;
  }
}

/* Mobile Styles */
@media screen and (max-width: 430px) {
  #ai-advisor-icon {
    bottom: 45px;
    right: 15px;
  }
  #ai-advisor-icon img {
    width: 50px;
    height: 50px;
  }
  .chatbot-container {
    width: 92%;
    right: 10px;
    left: auto;
    height: 60svh;
  }
}

.chatbot-header {
  background-color: #f7f7f7;
  padding: 5px;
  display: flex;
  align-items: center;
  border-top: 1px solid #E2E4E7;
  border-bottom: 1px solid #E2E4E7;
  font-weight: bold;
  color: #333;
}

.chatbot-header-chat {
  justify-content: space-between;
}

.chatbot-header-terms {
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
}


.header-span {
  position: static;
  transform: none;
  font-size: 1.05rem;
}


.minimize-button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 25px;
  color: #333;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.1s ease;
  padding: 0; /* Remove default padding to keep it centered */
}

.minimize-button:hover {
  background-color: rgba(0, 0, 0, 0.1); /* Subtle circled background */
  transform: scale(1.05);
}

.minimize-button:active {
  background-color: rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
}



.chat-container {
  position: relative;
  display: flex;
  flex-direction: column;
  border: none;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.vinny-row-flex {
  display: flex;
}

.vinny-col-icon {
  width: 10%;
}

.vinny-col-message {
  width: 90%;
}

.vinny-consent-icon-col {
  width: 10%;
  padding-top: 5%;
  padding-left: 2%;
}

.vinny-consent-action-row {
  display: flex;
  padding-bottom: 10px;
}

.vinny-consent-action-col {
  display: flex;
  width: 90%;
  align-items: center;
  justify-content: center;
}

/* For Chrome, Safari, and Opera */
.chatbot-body::-webkit-scrollbar {
  display: none;
}

/* For Internet Explorer and Edge */
.chatbot-body {
  -ms-overflow-style: none;
}

/* For Firefox */
.chatbot-body {
  scrollbar-width: none;
}

.chatbot-body {
  position: relative;
  background-color: #fcfcfc;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: scroll;
  height: 100%;
  max-height: 100%;
  transition: max-height 0.3s ease-in-out;
  overscroll-behavior: contain;
  display: none;
  flex-direction: column;
}

.chatbot-body.expanded {
max-height: none;
}

.chatbot-body-icon {
  width: 10%;
}


.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 1.1rem;
}

.bot-message {
  background-color: rgba(0, 0, 8, 0.1);
  align-self: flex-start;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 80%;
}

.user-message {
  background-color: rgba(110, 35, 121);
  color: white;
  border: none !important;
  align-self: flex-end;
  max-width: 70%;
}

.suggested-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.suggestion {
  background-color: rgba(110, 35, 121, 0.1);
  color: rgba(110, 35, 121);
  border: 1px solid #d0a0e0;
  border-radius: 5px;
  border-color: rgba(110, 35, 121, 0.4);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.2s;
  align-self: flex-start;
  text-align: left;
  max-width: 90%;
}

.suggestion:hover {
  background-color: rgba(110, 35, 121, 0.4);
}

.chatbot-footer {
  padding: 10px 15px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: flex-end;
  position: relative;
  margin-top: auto;
}

#chat-footer {
  display: none;
  flex-direction: column;
}

.disabled-div {
    pointer-events: none;
    opacity: 0.5;
}

#vinny-container #chatInput {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 8px;
  resize: none;
  min-height: 40px;
  max-height: 100px;
  overflow-y: auto;
  font-size: 1.1rem;
  font-family: Arial, sans-serif;
  color: #333;
  -webkit-text-fill-color: #333;
  caret-color: #333;
  padding-right: 50px;
  background-color: #f1eded;
}

.send-arrow {
  font-size: 25px;
}

.terms-link-row {
  text-align: center;
  font-size: 0.8em;
}

.vinny-hidden-text {
  display: none;
}

#charCount {
  position: absolute;
  right: 60px; /* Adjust based on send button */
  bottom: 15px;
  font-size: 0.8em;
  color: #888;
}

.send-button {
  background-color: transparent;
  border: none;
  font-size: 1.5em;
  color: rgba(110, 35, 121);
  cursor: pointer;
  padding-left: 6px;
}

.send-button-icon {
  display: inline-block;
  font-size: 31px;
  line-height: 1;
  transform: scaleY(1.28);
  transform-origin: center;
}

.blink_me {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
50% {
  opacity: 0;
}
}

.loading-dots-container {
  display: flex; /* Arrange dots horizontally */
  justify-content: center; /* Center the dots */
  align-items: center;
  /* Add more styling as needed for your chatbot window */
}

.dot {
width: 8px;
height: 8px;
background-color: rgba(110, 35, 121); /* Choose your desired dot color */
border-radius: 50%;
margin: 0 3px;
animation: jump 1s infinite; /* Apply the animation */
}

.dot:nth-child(2) {
animation-delay: 0.2s; /* Stagger the animation of the dots */
}

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

@keyframes jump {
0% {
  transform: translateY(0); /* Starting position */
}
20% {
  transform: translateY(-5px); /* Move up slightly */
}
40% {
  transform: translateY(0); /* Return to original position */
}
}

.icon-button {
  position: relative;
  color: rgba(110, 35, 121, 0.7);
  border: none;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 5px;
  display: flex;
  background-color: transparent;
}
 .icon-button:hover {
      border: none;
      color: rgba(110, 35, 121);
  }

  .icon-button:focus {
      outline: none;
      color: rgba(110, 35, 121);
  }

#copyToast {
  visibility: hidden; /* Hidden by default */
  display: none;
  min-width: 250px;
  margin-left: -125px; /* Center the toast */
  background-color: rgba(110, 35, 121);
  color: white;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1; /* Ensure it's on top */
  left: 50%;
  bottom: 30px;
}

#copyToast.show {
  visibility: visible;
  display: block;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

/* Fade-out animation */
@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}
#consent-prompt {
  display: none;
  background-color: #f1eded;
  z-index: 99999;
  align-self: flex-end;
  flex-direction: column;
  margin-top: auto;
}

#consent-prompt .message,
#consent-prompt p,
#consent-prompt li,
#consent-prompt .terms-a-link,
#accept-button {
  font-size: 1.1rem;
  line-height: 1.4;
}

#consent-prompt p,
#consent-prompt ul {
  margin-top: 0;
  margin-bottom: 10px;
}

#consent-prompt ul {
  padding-left: 20px;
}

#accept-button {
  background-color: rgba(110, 35, 121);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/**
#terms-overlay {
  width: 380px;
  height: 75vh;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  bottom: 15px;
  right: 15px;
  justify-content: center;
  align-items: center;
}**/

#terms-content {
  display: flex;
  width: 100%
  flex-grow: 1;
  overflow-y: auto;
  background-color: white;
  flex-direction: column;
}

.terms-paragraph {
 padding: 10px;
 margin-top: 0px;
 margin-bottom: 10px;
 font-size: 1.1rem;
}

.circle-button {
    border: none;
    color: black;
    padding: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 50%; /* Makes the button circular */
    box-shadow: 0 2px 4px darkslategray; /* Adds a subtle shadow */
    transition: all 0.2s ease; /* Smooth transition for hover/active effects */
    width: 30px; /* Adjust size as needed */
    height: 30px; /* Adjust size as needed */
    line-height: 20px; /* Vertically centers the text */
}

.circle-button:hover {
    background-color: lightslategray; /* Lighter shade on hover */
}

.circle-button:active {
    box-shadow: 0 0 2px darkslategray;
    transform: translateY(2px);
}

.gear-button {
        border: none;
        color: rgba(110, 35, 121);
        padding: 5px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 30px;
        margin: 4px 2px;
        cursor: pointer;
        border-radius: 50%; /* Makes the button circular */
        width: 30px; /* Adjust size as needed */
        height: 30px; /* Adjust size as needed */
        line-height: 20px; /* Vertically centers the text */
}

.gear-button:hover {
    background-color: rgba(110, 35, 121, 0.5);
}
.terms-a-link {
  color: rgba(110, 35, 121, 0.8);
  background-color: transparent;
  text-decoration: none;
}

.terms-a-link:hover {
  color: rgba(110, 35, 121);
  background-color: transparent;
  text-decoration: underline;
}

.show-more-overlay-button {
  display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 5px;
    border-radius: 50%;
    color: white;
    background: rgba(110, 35, 121);
    border: none;
    cursor: pointer;
    z-index: 9999;
}

.show-more-overlay-button:focus {
    outline: none;
}

@media print {
  #vinny-container,
  .vinny-banner,
  #vinny-view-now,
  #ai-advisor-prompt,
  #terms-overlay,
  #consent-prompt,
  #ai-advisor-icon,
  #copyToast,
  .chatbot-container,
  .show-more-overlay-button,
  .terms-link-row,
  #chat-footer {
    display: none !important;
    visibility: hidden !important;
  }
}

.vinny-banner.vinny-bkg {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: #c1188b;
}

/*CSS used for Vinny end*/