.hidden {
  position: absolute;
  left: 0;
  top: -500px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.gradient-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar {
  width: 100%;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(159, 172, 188, .1) 50%, rgba(245, 245, 245, 0) 70%, rgba(159, 172, 188, .1) 100%);
  background-size: 200% 100%;
  animation: barAnimation linear 15s infinite;
}

.bar.small {
  width: 134px;
  height: 12px;
}
.bar.high {
  height: 24px;
}

@keyframes barAnimation {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.glow-icon svg {
  z-index: 2;
}
.glow-icon:after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--main-color);
  opacity: 0.4;
  /*box-shadow: 0 0 5px var(--main-color), 0 0 10px var(--main-color), 0 0 20px var(--main-color);*/
}
.glow-icon.active:after {
  animation: glowPulse 1.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.8);
  }
  100% {
    transform: scale(1);
  }
}

/* Small popup*/
.ai-icon__wraper {
  display: inline-block;
  vertical-align: top;
  position: relative;
}
.ai-popup__small {
  box-shadow: 0px -2px 2px -1px rgba(27, 36, 44, 0.04), 0px -2px 8px -1px rgba(27, 36, 44, 0.08);
  position: absolute;
  right: 0;
  width: 600px;
  max-width: 90vw;
  top: calc(100% + 33px);
  border-radius: 24px;
  background: #fff;
  border: 1px solid #C2CCD9;
  padding: 32px;
  box-sizing: border-box;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  transform: translate(100%, 0);
  transition: visibility .5s, opacity .5s, transform .5s;
}
.ai-popup__small-bg {
  position: absolute;
  inset: 0;
  background: var(--main-color);
  opacity: 0.1;
}
.ai-popup__small-in {
  position: relative;
  z-index: 10;
}
.ai-popup__small.show {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}
.ai-popup__small-header .main-close {
  margin-right: 0;
  margin-left: auto;
}
.ai-icon {
  width: 46px;
  height: 46px;
  border-radius: 46px;
  background: var(--main-color);
  border: none;
  padding: 0;
  position: relative;
}
.ai-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.promotion-modal__overlay {
  position: fixed;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .5s, visibility .5s;
  z-index: 998;
  background: rgba(0,0,0, 0.4);
}
.promotion-modal__overlay.show {
  visibility: visible;
  opacity: 1;
}
.promotion-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  max-height: 100vh;
  max-width: calc(100% - 32px);
  width: 780px;
  overflow-y: auto;
  padding: 48px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 24px;
  text-align: center;
  z-index: 999;
  transform: translate(-100%, -100%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s, transform 0.5s;
}

.promotion-modal.show {
  transform: translate(-50%, -50%);
  visibility: visible;
  opacity: 1;
}
.promotion-modal__image {
  max-width: 245px;
  margin: 0 auto;
  color: var(--main-color);
}
.promotion-modal__image svg {
  max-width: 100%;
  height: auto;
}
.chat-bot-ia-image-icon {
  fill: white;
}
.news-corp .chat-bot-ia-image-icon,
.storyful .chat-bot-ia-image-icon {
  fill: #000;
}
.promotion-modal__in {
  max-width: 405px;
  margin: 0 auto;
}
.promotion-modal__header {
  margin-bottom: 24px;
}
.promotion-modal__header .main-close {
  margin-left: auto;
  margin-right: 0;
}
.promotion-modal__title {
  font-size: 32px;
  font-family: "EB Garamond", Arial, sans-serif;
  margin-bottom: 10px;
  line-height: 1.2;
  color: #272E35;
}
.promotion-modal__desk {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 32px;
  color: #272E35;
}
.promotion-modal .promotion-modal__btns  {
  justify-content: center;
}
.promotion-modal__btns {
  gap: 16px;
  display: flex;
}
.main-close {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 32px;
  border: 2px solid #555F6D;
  background: none;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.35s;
}
.main-close svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ai-btn {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.45px;
  border-radius: 30px;
  text-align: center;
  padding: 14px 32px;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: top;
  transition: color 0.5s, border 0.5s;
  z-index: 2;
  color: #fff;
  cursor: pointer;
  background: none;
  position: relative;
  overflow: hidden;
  border: 2px solid  var(--main-color);
}

.news-corp .ai-chatbot__tool-field button,
.news-corp .ai-btn,
.storyful .ai-chatbot__tool-field button,
.storyful .ai-btn {
  color: #000;
}
.ai-btn span {
  position: relative;
  z-index: 5;
}
.ai-btn:before {
  content: '';
  position: absolute;
  inset: 0;
  transition: transform 0.5s;
  background:  var(--main-color);
}

.ai-btn.ai-btn--outline {
  background: none;
  border: 2px solid #082D3C;
  color: #082D3C;
}
.ai-btn.ai-btn--outline:before {
  background: #082D3C;
  transform: translate(-100%, 0);
}

  /* Chat icon styling */
.chat-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: #00d6e3;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: transform 0.3s ease;
}
.chat-icon svg {
  width: 35px;
  height: 35px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}


.chat-icon img {
  width: 32px;
  height: 32px;
}
/*on the page*/
.ai-chatbot__tool {
  background: var(--text-color);
  border-top: 12px solid var(--main-color);
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding: 24px 24px 48px;
  transition: transform 0.8s 0.3s;
  color: #fff;
}
.ai-chatbot__tool-title {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 32px;
  font-family: "EB Garamond", sans-serif;
}
.ai-chatbot__tool-field {
  position: relative;
  margin-bottom: 32px;
}
.ai-chatbot__tool-field input {
  border: 1px solid #9FACBC;
  padding: 0 56px 0 24px;
  font-size: 18px;
  width: 100%;
  color: #272E35;
  height: 56px;
  border-radius: 999px;
  box-sizing: border-box;
}
.ai-chatbot__tool-field input::placeholder {
  color: #272E35;
}
.ai-chatbot__tool-field button {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  padding: 0;
  background: var(--main-color);
  border: none;
  color: #fff;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 8px;
}
.ai-chatbot__tool-field button svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item {
  padding: 8px 16px;
  color: white;
  border: 1px solid #C2CCD9;
  margin-top: 8px;
  display: inline-block;
  vertical-align: top;
  text-align: left;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: background .5s, color .5s;
  background: none;
}

.faq-item:first-child {
  margin-top: 0;
}
/* Chat popup window styling */
.chat-popup {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 1196px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  border-left: 12px solid var(--main-color);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  border-radius: 20px;
  background: white;
  flex-direction: column;
  z-index: 1001;
  padding: 0 48px;
  overflow: hidden;
  transform: translate(100%, 0);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s, visibility .5s, transform .5s;
}
.chat-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}
.chat-popup.show + .chatbot-overlay {
  visibility: visible;
  opacity: 1;
}

.chatbot-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  background: rgba(0,0,0, .5);
}
/* Chat header styling */
.chat-header {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

/* Chat message area styling */
.chat-body {
  overflow-y: auto;
  height: calc(100% - 140px);
  box-sizing: border-box;
  padding-bottom: 100px;
}

.chat-body__item {
  display: flex;
  justify-content: space-between;

}
.chat-body__item-left {
  width: 70%;
}
.chat-body__item-right {
  width: calc(30% - 38px);
  padding-top: 30px;
  padding-right: 20px;
}
#recaptcha-container {
  margin-bottom: 25px;
}
.chat-body__answer {
  padding: 24px ;
  border-radius: 16px;
  border: 1px solid  #C2CCD9;
  margin-bottom: 30px;
}
.chat-related {

}
.chat-body__answer-response .chat-related__list {
  width: 100%;
}
.chat-body__answer-response p {
  margin-bottom: 25px;
  font-size: 18px;
  line-height: 1.5;
}
.chat-related__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 70%;
}
.chat-related-item {
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid #9EA8B3;
  display: inline-block;
  background: transparent;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: background .5s, border .5s, color .5s;
}

.chat-related-item a {}
.chat-body__answer-head {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s, visibility .5s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid #C2CCD9;
}
.chat-body__answer-head.active  {
  opacity: 1;
  visibility: visible;
}
.chat-response.loading {
  .chat-related {
    cursor: wait;
    pointer-events: none;
  }
}
.chat-response.disabled .chat-body__answer-head.active .chat-body__answer-head-btns {
  opacity: 0.5;
  pointer-events: none;
}
.chat-response.disabled .chat-body__answer-head.active * {
  pointer-events: none;
}
.chat-body__answer-head-title {
  color: var(--text-color);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0;
}
.chat-body__answer-head-btns {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.ai-head-btn {
  color: #555F6D;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .5px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .5s;
  display: inline-block;
  vertical-align: top;
}

.ai-head-btn svg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.chat-body__answer a,
.chat-notification svg {
  color: var(--link-color);
}
.chat-body__secured p,
.chat-body__answer p,
.chat-body__session-end p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 25px;
}
.chat-body__answer-in {
  max-width: 637px;
  min-height: 300px;
}
.chat-notification {
  font-size: 14px;
  line-height: 1.5;
  color: #555F6D;
  position: relative;
  padding-left: 28px;
  margin-bottom: 28px;
}
.chat-notification svg {
  position: absolute;
  left: 0;
  top: 0;
}
.chat-message {
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.user-message {
  font-size: 48px;
  color: #272E35;
  padding: 8px 0;
  margin-top: 45px;
  margin-bottom: 25px;
  font-family: "EB Garamond", Arial, sans-serif;
  padding-top: 45px;
  border-top: 1px solid #C2CCD9;
  line-height: 1;
}

.user-message:first-child {
  padding-top: 0;
  margin-top: 0;
  border: none;
}

.bot-message {
  background: #E3E3E3;
  align-self: flex-start;
  color: black;
  padding: 10px;
  border-radius: 10px;

}

/* Input area styling */
.chat-footer__notice {
  position: absolute;
  width: calc(30% - 96px * .3 - 40px);
  right: 20px;
  bottom: 20px;
  background: #fff;
  z-index: 99;
  font-size: 12px;
  color: #555F6D;
}
.chat-footer {
  position: absolute;
  left: 4.8rem;
  width: calc(70% - 9.6rem*0.7);
  bottom: 3.2rem;
  display: flex;
  box-shadow: 0px 0 20px 0 rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  z-index: 100;
  background: #fff;
}
#chat-input {
  border: 1px solid #9FACBC;
  padding: 0 58px 0 24px;
  font-size: 18px;
  width: 100%;
  color: #272E35;
  height: 56px;
  border-radius: 999px;

}
#chat-input:disabled {
  opacity: .3;
}
#chat-input:disabled + #chat-submit {
  background: #DEDEDE;
  pointer-events: none;
  color: #272E35;
  opacity: 0.3;
}
#chat-input::placeholder {
  color: #272E35;
}
#chat-submit {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  padding: 0;
  background: var(--main-color);
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 8px;
  top: 8px;
  transition: opacity .5s;
  svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sources-title {
  font-size: 18px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  margin-bottom: 1rem;
}
.source-item {
  padding: 12px;
  background: #fff;
  border: 1px solid #C2CCD9;
  margin-bottom: 12px;
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
  display: block;
  transition: box-shadow .5s;
  cursor: pointer;
}

.source-item__head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.source-item__head span {
  font-size: 14px;
  color: #555F6D;
}
.source-item__title {
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 7px;

}

.chat-feedback {
  padding: 32px 0 24px;
  visibility: hidden;
  opacity: 0;
  display: none;
  transition: opacity .5s, visibility .5s;
}
.chat-feedback.active {
  opacity: 1;
  visibility: visible;
  display: block;
}
.chat-feedback h4 {
  font-family: "Roboto Condensed";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-color);

  margin-bottom: 16px;
}
.chat-feedback__checkbox label{
  display: flex;
  font-size: 18px;
  margin-bottom: 12px;
  align-items: center;
  margin-top: 0;
}
.chat-feedback__checkbox input {
  width: 16px;
  height: 16px;
  border: 2px solid #9EA8B3;
  box-sizing: border-box;
  margin-right: 8px;
  margin-left: 0;
  margin-top: 0;
  appearance: none;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.chat-feedback__checkbox input:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  background-color: var(--text-color);
  border-radius: 50%;
}


.chat-feedback__checkbox {
  margin-bottom: 24px;
}

.chat-feedback textarea {
  border: 1px solid #9EA8B3;
  border-radius: 6px;
  display: block;
  padding: 8px 16px;
  box-sizing: border-box;
  font-size: 18px;
  margin-bottom: 8px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  width: 100%;
  max-width: 100%;
  height: 120px;
}
.chat-feedback__form {
  max-width: 450px;
}
.chat-feedback__form-bottom {
  /*text-align: right;*/
}
.char-counter {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 400;
  color: #555F6D;
}
.chat-feedback textarea::placeholder {
  color: #7E8B99;
}
.feedback-error {
  margin-bottom: 16px;
}
.chat-feedback__question h3 {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}
.chat-feedback__btn {
  border: none;
  padding: 0;
  background: none;
  color: #555F6D;
  cursor: pointer;
}
.chat-feedback__btn--yes {
  margin-right: 24px;
}

.chat-body__session-end {
  max-width: 540px;
}
.chat-body__secured {
  max-width: 645px;
}
.chat-body__session-end h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 48px;
}
.chat-body__session-btn {
  color: #191919;
  border: 1px solid #555F6D;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.45px;
  padding: 8px 24px 8px 16px;
  cursor: pointer;
  gap: 8px;
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 999px;
  transition: background .5s, border .5s, color .5s;
}

.chat-popup__session-expired .chat-header > svg {
  opacity: 0;
}
.chat-popup__session-expired .chat-footer {
  opacity: 0;
}
.feedback-thanks h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}
.feedback-thanks p {
  color: #555F6D;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 24px;
}
.feedback-thanks p a {
  color: var(--link-color);
}
.footnotes {
  display: none;
}
.chat-thread-indicator {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: opacity .5s;
  border: 1px solid #000;
  z-index: 10;
  color: #000;
  left: calc((70% - 9.6rem * 0.7) / 2);
  bottom: 107px;
}
.chat-thread-indicator svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%) scaleY(-1);
}
@media screen and ( min-width: 1024px ) {
  .faq-item:hover {
    background: white;
    color: var(--text-color);
  }
  .main-close:hover {
    background: var(--main-color);
  }
  .ai-btn:hover {
    background: transparent;
    color: var(--text-color);
  }
  .news-corp .ai-btn:hover,
  .storyful .ai-btn:hover{
    color: #000 !important;
  }
  .ai-btn:hover:before {
    transform: translate(-100%, 0);
  }
  .ai-btn.ai-btn--outline:hover:before {
    transform: translate(0, 0);
  }
  .ai-btn.ai-btn--outline:hover {
    color: #fff !important;
  }
  .chat-icon:hover {
    transform: scale(1.1);
  }
  .chat-related-item:hover {
    border-color: var(--text-color);
    background: var(--text-color);
    color: white;
  }
  .chat-related-item:hover a {
    color: white;
  }
  .ai-head-btn:hover {
    opacity: 0.7;
    color: var(--text-color);
  }
  #chat-submit:hover {
    opacity: .7;
  }
  .source-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .chat-feedback__btn:hover {
    color: var(--main-color);
  }
  .chat-body__session-btn:hover {
    background: #555F6D;
    color: white;
    border-color: #555F6D;
  }
}
@media screen and ( max-width: 767px ) {
  .chat-related__list {
    width: 100%;
  }
  .promotion-modal {
    padding: 32px;
  }
  .promotion-modal__in {
    display: flex;
    flex-direction: column;
  }
  .promotion-modal__image {
    order: 0;
    max-width: 182px;
  }
  .promotion-modal__image {
    margin-bottom: 24px;
  }
  .promotion-modal__title {
    order: 1;
  }
  .promotion-modal__desk {
    order: 2;
  }
  .promotion-modal__btns {
    order: 3;
    flex-direction: column;
  }
  .chat-popup {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    inset: 0;
    transform: translate(0, 0);
    box-sizing: border-box;
    padding: 0 16px 0 20px ;
  }
  .chat-header {
    padding: 16px 0;
  }
  .chat-body__item {
    display: block;
    margin-bottom: 32px;
  }
  .chat-body__item-left {
    width: 100%;
    margin-bottom: 24px;
  }
  .chat-body__item-right {
    width: 100%;
    padding-top: 0;
    padding-right: 0;
  }
  .chat-body__answer {
    padding: 16px;
  }
  .chat-body__answer-head {
    padding-bottom: 8px;
    margin-bottom: 24px;
  }
  .user-message {
    font-size: 28px;
    padding: 24px 0 0;
    margin-top: 32px;
    margin-bottom: 24px;
  }
  .chat-body__answer-head-title {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
  }
  .chat-body {
    height: calc(100% - 145px);
  }
  .source-list {
    display: block;
  }
  .source-item {
    width: auto;
    box-sizing: border-box;
  }
  .chat-footer {
    left: 22px;
    width: auto;
    right: 16px;
    bottom: 8px;
  }
  .ai-btn {
    padding: 10px 20px;
  }
  .chat-thread-indicator {
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
  }
  .chat-footer__notice {
    transform: rotate(-90deg);
    left: 8px;
    bottom: 10px;
    right: auto;
    transform-origin: left center;
    text-align: left;
    width: 250px;
  }
}