/* latin */
@font-face {
  font-family: 'PoppinsRegular';
  font-style: normal;
  font-weight: 300;
  src: url('/system/api/copilot-web/PoppinsRegular.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'PoppinsItalic';
  font-style: italic;
  font-weight: 300;
  src: url('/system/api/copilot-web/PoppinsItalic.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
  font-family: 'PoppinsSemiBold';
  font-style: normal;
  font-weight: 600;
  src: url('/system/api/copilot-web/PoppinsSemiBold.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mainColor: #ff0000;
  --mainColorOpacity: #ff0000de;
  --mainColorDark: #db0000;
  --CTAColor: #d2003a;
  --darkGrey: #464646;
  --lightestGrey: #efefef;
  --lightGrey: #cbcbcb;
  --middleGrey: #757575;
  --darkGreyOpacity: #757575b5;
  --errorColor: #ffc200;
  --white: #fff;
  --gapBig: 20px;
  --gapSmall: 10px;
  --gapSmallest: 5px;
  --chatMessageWidth: 90%;
  --maxFont: 15px;
  --midFont: 0.9em;
  --minFont: 0.8em;
  --chatWidth: 500px;
  --chatHeight: 600px;
  --buttonHeight: 44px;
  --buttonWidth: 120px;
  --copilotIndentation: 30px;
  --borderRadBig: 15px;
  --toggleIconIndentation: 0px;
  --copilotIconSize: 60px;
}

* {
  box-sizing: border-box;
}

.copilotWebWrapper p,
.copilotWebWrapper span {
  line-height: normal;
}

.copilotSourcesWrapper span {
  line-height: normal;
  -ms-word-break: break-all;
  word-break: break-all;
  white-space: pre-wrap;
}

.copilotWebWrapper button {
  background-color: transparent;
  border: 0px;
  padding: 0px;
  margin-right: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.copilotWebWrapper h1 {
  font-size: 1.3em;
  font-family: 'PoppinsSemiBold';
  letter-spacing: normal;
}

.copilotWebWrapper h2 {
  font-size: 1em;
}

.copilotWebWrapper ol,
.copilotWebWrapper li,
.copilotWebWrapper ul {
  padding-left: 1em;
}

.copilotWebWrapper img {
  max-width: 100%;
}

.copilotWebWrapper :focus,
.copilotWebWrapper :focus-visible {
  border: 2px var(--darkGrey) !important;
  border-style: solid !important;
  outline-color: var(--darkGrey) !important;
  outline-style: auto;
}

.copilotWebWrapper {
  position: fixed;
  margin: 0;
  font-size: var(--maxFont);
  font-family: 'PoppinsRegular';
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 10000;
}

.copilotMessageText p {
  margin: 0px;
}

.copilotMessageText h3 {
  font-size: 1em;
}

.copilotChatWrapper,
.copilotSettingsWrapper,
.copilotDisclaimerWrapper,
.copilotUpdatingWrapper {
  background-color: var(--white);
  border-radius: var(--borderRadBig);
  position: relative;
  overflow: hidden;
  max-width: var(--chatWidth);
  width: var(--chatWidth);
  height: var(--chatHeight);
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  border: 2px solid var(--darkGrey);
  z-index: 2147483646;
}

.copilotSettingsSelectWrapper {
  font-size: 15px;
}

.copilotToggleIcon {
  width: var(--copilotIconSize);
  height: var(--copilotIconSize);
  object-fit: contain;
  border-radius: 100%;
  border: 2px solid var(--darkGrey);
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.copilotToggleIcon img {
  height: calc(var(--copilotIconSize)/2);
  width: calc(var(--copilotIconSize)/2);
}

.copilotToggleImage {
  max-width: 70px;
  min-height: 70px;
  cursor: pointer;
}

.copilotHeader,
.copilotSettingsHeader,
.copilotDisclaimerHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  font-size: 18px;
}

.copilotIcon {
  height: 20px;
  min-width: 15px;
  min-height: 20px;
}

.copilotCloseButton {
  rotate: 270deg;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  width: 15px;
}

.copilotButtons {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: var(--gapBig);
}

.copilotDeleteButtonContainer,
.copilotSettingsButtonContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.copilotHeaderHeadline {
  font-family: 'PoppinsSemiBold';
  flex: 2;
  text-align: center;
  font-size: 12px;
}

.copilotChatInnerWrapper,
.copilotSettingsInnerWrapper,
.copilotDisclaimerInnerWrapper {
  padding: 10px 15px;
  overflow-y: auto;
  height: 100%;
}

.copilotMessageContainerChatbot>.copilotChatMessagesOuterWrapper>.copilotMessageContainer>.copilotCopyIconAndTimeWrapper {
  font-size: 13px;
}

.copilotDisclaimerInnerWrapper,
.copilotSettingsInnerWrapper,
.copilotChatInnerWrapper {
  padding: 30px;
}


.copilotDisclaimerHeader,
.copilotSettingsHeader,
.copilotHeader {
  padding: 10px 20px;
}

.copilotFooter {
  display: flex;
  justify-content: space-between;
  padding: 10px 10px;
  align-items: center;
  gap: var(--gapSmall);
  height: 70px;
}

.copilotWebWrapper input.copilotChatInput {
  width: 100%;
  border-radius: 10px;
  border-color: var(--lightGrey);
  border-style: solid;
  font-family: 'PoppinsRegular';
  font-size: 12px;
  font-weight: 400;
  border: 2px solid var(--lightGrey);
  padding: 10px;
}

button.copilotSendButtonContainer {
  border-radius: 100%;
  background-color: var(--mainColor);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

button.copilotSendButtonContainer:disabled {
  cursor: not-allowed;
}

button.copilotSendButtonContainer:hover,
.copilotButtonContainer:hover {
  background-color: var(--mainColorDark);
  transition: 200ms;
}

.copilotOverlay {
  background-color: var(--darkGreyOpacity);
  height: 100%;
  width: 100%;
  top: 0;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-radius: var(--borderRadBig);
  overflow: hidden;
  z-index: 2147483647;
}

.copilotDeleteOverLayContent {
  height: fit-content;
}

.copilotDeleteOverLayContent,
.copilotLanguageOverlayWrapper,
.copilotDocumentExplainerOverLayContent {
  background-color: var(--white);
  width: 100%;
  border-radius: 15px 15px 0px 0px;
  padding: 20px;
  font-size: var(--maxFont);
}

.copilotLanguageOverlayWrapper {
  height: 90%;
  overflow: hidden;
}

.copilotOverlayClose {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.copilotOverlayButtonWrapper {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: var(--gapSmall);
}

.copilotButtonContainer {
  cursor: pointer;
  background-color: var(--mainColor);
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--white);
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.copilotButtonContainer img,
.copilotOpenSourcesContainer img {
  filter: invert(1) brightness(1000%);
}

.copilotReferenceNumber {
  color: var(--darkGrey);
  background-color: #fff;
  border-radius: 100%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--minFont);
  font-family: 'PoppinsSemiBold';

}

.copilotSettingsHeader .copilotCloseButtonContainer {
  flex: none;
}

.copilotBackButtonContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}


.copilotSettingsSelectRow {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 20px 0px;
}

.copilotSettingsSelectOptions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gapBig);
}

.copilotRightArrowContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.copilotRightArrow {
  rotate: 180deg;
}

.copilotSettingsWrapper .copilotButtonContainer {
  justify-content: center;
  margin-top: var(--gapBig)
}

.copilotSettingsSelectRow:nth-child(2) {
  border-bottom: 1px solid var(--lightGrey);
  border-top: 1px solid var(--lightGrey);
}

.copilotSelectOption {
  padding: 15px 0px;
  border-bottom: 1px solid var(--lightGrey);
}

.copilotOptionsWrapper {
  overflow-y: scroll;
  overflow-x: scroll;
  margin-top: 10px;
  height: 90%;
}

.copilotLanguageHeader {
  display: flex;
  align-items: center;
  position: relative;
}

.copilotCloseButtonContainer {
  margin-right: auto;
}

.copilotLanguageSelectHeadline {
  flex-grow: 1;
  text-align: center;
}

.copilotSelectOption {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  align-items: center;
  cursor: pointer;
}

.copilotSelectedIconContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.copilotSelectedIcon {
  min-width: 20px;
}

.copilotTextWrapper {
  display: flex;
  flex-direction: column;
}

.copilotLanguagesSelectText {
  font-size: 12px;
}

.copilotMessageWrapper {
  display: flex;
  padding: 5px;
}

.copilotMessageContainer {
  width: fit-content;
  max-width: var(--chatMessageWidth);
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  line-height: 1.2em;
}

.copilotMessageWrapper.copilotMessageContainerChatbot {
  display: flex;
  flex-direction: row;
}

.copilotMessageContainer a,
.copilotMessageContainer a:visited {
  color: var(--white);
}

.copilotLogoWrapper {
  display: flex;
  align-items: flex-end;
  min-width: 50px;
}

.copilotMessageContainerChatbot>.copilotChatMessagesOuterWrapper>.copilotMessageContainer {
  background-color: var(--darkGrey);
  color: var(--white);
  justify-self: flex-start;
  border-radius: 15px 15px 15px 0px;
}

a.copilotSource:hover {
  color: var(--white);
  text-decoration: underline;
}

.copilotSourcesDropDown {
  display: none;
}

.copilotSourcesWrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gapSmallest);
}

.copilotSourcesHeadline,
.copilotAdditionalSourcesWrapper {
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--darkGrey);
  color: var(--white);
  border-radius: var(--borderRadBig);
  display: flex;
  gap: var(--gapSmall);
  flex-wrap: wrap;
  width: var(--chatMessageWidth);
  cursor: pointer;
}

a.copilotAdditionalSourcesWrapper:hover,
a.copilotAdditionalSourcesWrapper {
  background-color: var(--darkGrey) !important;
  color: var(--white) !important;
}

.copilotSourcesDropDown.copilotShowDropdown {
  background-color: var(--darkGrey);
  color: var(--white);
  border-radius: var(--borderRadBig);
  padding: 10px 10px;
  max-width: var(--chatMessageWidth);
  display: flex;
  gap: var(--gapSmall);
  flex-wrap: wrap;
}

.copilotSource {
  background-color: var(--middleGrey);
  color: var(--white);
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  flex: 1 1 calc(33.33% - 10px);
  box-sizing: border-box;
}

a.copilotSource {
  text-decoration: none;
  display: flex;
  justify-content: space-evenly;
  gap: var(--gapSmall);
  flex-wrap: wrap;
  max-width: 100%;
}

.copilotReferenceNumberWrapper {
  display: flex;
  gap: var(--gapSmallest);
}

.copilotOpenSourcesContainer {
  display: flex;
  align-items: center;
}

.copilotDropDownIsOpen {
  rotate: 180deg;
}

.copilotMessageContainerChatbot {
  justify-content: flex-start;
  display: flex;
  flex-direction: column-reverse;
}

.copilotMessageContainerUser {
  justify-content: flex-end;
  flex-direction: column;
  align-items: flex-end;
}

.copilotMessageContainerUser>.copilotMessageContainer {
  background-color: var(--mainColor);
  color: var(--white);
  justify-self: flex-end;
  border-radius: 15px 15px 0px 15px;
}

.copilotMessageContainerUser>.copilotMessageContainer>.copilotCopyIconAndTimeWrapper {
  align-self: flex-end;
  font-size: var(--minFont);
}

.copilotMessageContainerChatbot>.copilotChatMessagesOuterWrapper>.copilotMessageContainer>.copilotCopyIconAndTimeWrapper {
  align-self: flex-start;
  font-size: var(--minFont);
}

.copilotMessageContainerChatbot.copilotHasSource>.copilotChatMessagesOuterWrapper>.copilotMessageContainer {
  border-radius: var(--borderRadBig);
}

.copilotChatMessagesOuterWrapper {
  gap: var(--gapSmallest);
  display: flex;
  flex-direction: column;
}

.copilotCopyWrapper {
  display: flex;
  align-items: center;
  justify-content: left;
  cursor: pointer;
  gap: var(--gapSmallest);
}

.copilotCopyButtonContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.copilotCopyButtonContainer img {
  width: 13px;
}

.copilotCopyIconAndTimeWrapper {
  display: flex;
  align-items: center;
  gap: var(--gapSmall);
}

.copilotSuccessOverlay {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--mainColorOpacity);
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--borderRadBig);
  z-index: 2147483647;
}

.copilotSuccessAnimation {
  animation: roll-successAnimation 1s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

.copilotCloseIconWrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.copilotCloseInfoButton {
  rotate: 180deg;
}

.copilotCloseIconWrapper .copilotCloseButtonContainer {
  display: flex;
  align-items: flex-end;
  width: fit-content;
  margin-right: 0;
}

@keyframes roll-successAnimation {
  0% {
    transform: rotate(720deg);
    opacity: 0;
    height: 3rem;
  }

  100% {
    transform: rotate(0deg);
    opacity: 1;
    height: 10rem;
  }
}

.copilotLoadingElement {
  display: flex;
  align-items: center;
  gap: var(--gapSmall);
  font-size: 15px;
  padding: 5px;
}

.copilotLoadingIcon {
  width: 50px;
}

.copilotLoadingIconAnimation,
.copilotLoadingIconAnimation div {
  box-sizing: border-box;
}

.copilotLoadingIconAnimation {
  display: inline-block;
  position: relative;
  width: 15px;
  height: 15px;
}

.copilotLoadingIconAnimation div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--darkGrey);
  border-radius: 50%;
  animation: copilotLoadingIconAnimation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--darkGrey) transparent transparent transparent;
}

.copilotLoadingIconAnimation div:nth-child(1) {
  animation-delay: -0.45s;
}

.copilotLoadingIconAnimation div:nth-child(2) {
  animation-delay: -0.3s;
}

.copilotLoadingIconAnimation div:nth-child(3) {
  animation-delay: -0.15s;
}

a.copilotAdditionalSourcesLink {
  color: var(--white);
}

.copilotAdditionalSourcesWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes copilotLoadingIconAnimation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.copilotInfoMessageHeader {
  display: flex;
  justify-content: center;
  font-size: var(--midFont);
  align-items: center;
  line-height: 1.5em;
}

.copilitInfoMessageIconContainer.copilotInfoMessageHeaderIcon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.copilotInfoMessageHeader {
  /* flex: 10; */
  display: none;
}

.copilotShowInfoMessage {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  padding: 10px 15px;
  border-bottom: 2px solid var(--lightGrey);
  border-left: 2px solid var(--lightGrey);
  border-right: 2px solid var(--lightGrey);
  border-radius: 0px 0px 15px 15px;
  margin: -2px;
  box-shadow: 0px 9px 9px rgb(211 210 210);
}

.copilitInfoMessageIconContainer {
  flex: 1;
}

.copilotInfoMessageHeaderText a {
  margin-left: 10px;
  cursor: pointer;
  color: var(--mainColor);
  text-decoration: underline;
}

h2.copilotDocumentHeaderText {
  margin: 0px;
}

img.copilotIcon.copilotMoveOnButton {
  rotate: 270deg;
}

.copilotRefNumber {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  font-size: var(--minFont);
  background-color: var(--white);
  border-radius: 50%;
  text-align: center;
  color: var(--darkGrey);
  font-weight: bold;
  vertical-align: text-top;
}

.copilotErrorMessage {
  padding: 10px 15px;
  background-color: var(--errorColor);
  display: flex;
  gap: var(--gapBig);
  border-bottom: 2px solid var(--lightGrey);
  border-left: 2px solid var(--lightGrey);
  border-right: 2px solid var(--lightGrey);
}

.copilotErrorMessageText {
  font-size: 13px;
}

button.copilotCloseIconContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.copilotErrorMessage .copilotAttentionIcon.copilotIcon {
  height: 40px;
}

.copilotErrorMessage .copilotCloseIcon.copilotIcon {
  height: 30px;
}

.copilotCTAWrapper {
  background-color: var(--CTAColor);
  color: var(--white);
  padding: 10px 15px;
  margin: 10px;
  max-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gapBig);
  width: 200px;
}

.copilotCTAWrapper:after {
  left: 210px;
  bottom: 10px;
  content: "";
  position: absolute;
  border-top: 14px solid transparent;
  border-left: 10px solid var(--CTAColor);
}

.copilotCloseCTAIconContainer {
  margin: 0px;
  padding: 0px;
  width: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

img.copilotIcon.copilotCloseCTAIcon {
  filter: invert(1) brightness(1000%);

}

.hideCopilotCTAWrapper {
  display: none;
}

.copilotDocumentHeaderWrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--lightGrey);
  border-top: 1px solid var(--lightGrey);
  background-color: var(--lightestGrey);
  cursor: pointer;
}

a.copilotDocumentHeaderWrapper {
  color: var(--darkGrey);
}

.copilotDocumentImgTextWrapper img {
  max-width: 20px;
}

.copilotDocumentImgTextWrapper {
  display: flex;
  gap: var(--gapBig);
  justify-content: center;
  align-items: center;
}

.copilotDocumentHeaderIconContainer {
  rotate: 270deg;
}

.copilotResendButton {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: var(--chatMessageWidth);
  width: fit-content;
  border-radius: 10px;
  padding: 0px 18px;
  cursor: pointer;
  min-height: 48px;
  border: 2px solid var(--errorColor);
  margin-top: 5px;
  background-color: transparent;
}

.copilotResendButton:hover {
  background-color: var(--errorColor);
  transition: 200ms;
}

.copilotResendButtonIcon {
  width: 20px;
  height: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  margin-right: 5px;
  border: 1.5px solid;
}

img.copilotIcon.resendIcon {
  height: 20px;
  min-width: 20px;
  min-height: 20px;
}

.copilotResendButtonText {
  font-size: var(--minFont);
}

/* ANIMATIONS */

.copilotAnimate {
  transform-style: preserve-3d;
  transition: transform 0.6s;
  perspective: 1000px;
  animation: coinFlip 1s ease-in-out infinite;
  transform-origin: center;
}

@keyframes coinFlip {
  0% {
    transform: rotateY(0deg) scale(1);
  }

  50% {
    transform: rotateY(180deg) scale(1.2);
  }

  100% {
    transform: rotateY(360deg) scale(1);
  }
}