body {
  --assistant-header-h: 65px;
  --assistant-ads-desktop-h: 90px;
  --assistant-ads-mobile-h: 100px;
  --assistant-ads-margins: 30px;
}

body.chat-mode {
  overflow: hidden;
}

body.chat-mode footer,
body.chat-mode #disclaimerWelcome,
body.welcome-mode #disclaimerChat {
  display: none !important;
  height: 0px !important;
}

body > .ws-c {
  margin-bottom: 5px;
}

body.chat-mode header {
  position: relative !important;
}

body.chat-mode .ws-h-ph {
  display: none !important;
}

body.welcome-mode.no-search-toggle .ws-h-ph {
  height: var(--assistant-header-h) !important;
}

#top-bar > .ws-h-left {
  margin-top: 8px;
}

body.search-toggle #top-bar > .ws-h-left {
  margin-top: 0px !important;
}

.mailcatcher-div {
  display: none !important;
}

/* Hide Explorer */
.ws-b {
  display: none !important;
}

#ad_btmslot {
  display: none !important;
}

#assistant-container {
  display: flex;
}

h1 {
  font-size: 30px !important;
}

h2 {
  text-transform: none !important;
  background: none !important;
  box-shadow: none !important;
}

.idm-assistant .chat-input .chat-input-subtitle {
  max-width: 100% !important;
}

.idm-assistant button {
  font-size: 14px;
}

.idm-assistant .send-button {
  width: 3rem !important;
  height: 3rem !important;
}

.idm-assistant .send-button span {
  font-size: 20px !important;
}

.idm-assistant .scroll-to-bottom-button {
  right: 48% !important;
  width: 3rem !important;
  height: 3rem !important;
  display: none !important;
}

.idm-assistant .scroll-to-bottom-button span {
  font-size: 20px !important;
}

.chat-box {
  font-size: 15px;
}

.chat-input {
  margin-bottom: 20px;
}

.chat-input-subtitle {
  font-size: 12px !important;
  line-height: 1.5rem !important;
}

body.chat-mode #assistant-container .chat-input {
  margin-bottom: 0px !important;
}

.source-links {
  flex-wrap: nowrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 1em;
  padding-right: .5rem;
  font-size: .85rem;
  line-height: 1.5rem;
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
}
}

.source-links a {
  white-space: nowrap;
  align-items: center;
  display: flex !important;
}

.common-questions {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 20px !important;
}

.common-questions-btns {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  padding-top: .75rem;
  gap: .75rem;
  font-family: OpenSans, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

.common-questions-btns .question-btn {
  font-family: OpenSans, sans-serif;
  font-weight: 400;
  line-height: 2rem !important;
  border: 1px solid rgb(197, 202, 202) !important;
  border-radius: .5rem;
  text-align: center;
  align-items: center;
  display: flex;
  padding: .75rem 1.5rem !important;
  cursor: pointer;
  font-size: 14px !important;
}

.question-btn:hover {
    border: 1px solid black !important;
}

#disclaimerWelcome {
  font-size: 14px;
  padding-left: 10px;
}

.welcomeDisclaimer {
  font-size: 14px;
  margin-left: 5px;
}

.welcomeFooter {
  margin-top: 10px;
  font-size: 14px;
  margin-left: 5px;
}

.welcomeFooter > a{
    color: #227DAB!important;
}

#disclaimerChat a {
    color: #227DAB!important;
}

.idm-assistant .chat-input .reset-button {
  font-size: 13px;
  height: 32px;
}

.idm-assistant .chat-input-box textarea {font-size: 15px;}

.link-icon.material-symbols-outlined {
  margin-left: 5px;
  font-size: 18px !important;
  line-height: unset !important;
}

.link-icon.material-symbols-outlined::before {
  content: "open_in_new";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.welcome-title {
  padding-top: unset !important;
}

.assistant-welcome-header {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 8px auto;
}

.assistant-welcome-header-img {
  width: 300px;
  min-height: 61px;
  flex: 1 1 auto;
}

.bot-message {
  max-width: 100% !important;
}

#ad_topslot > * {
  top: 0px !important;
}

#ad_btmslot {
  display: none !important;
}

.ws-c {
  margin-top: 0px !important;
}

h2 {
  padding: 0px;
}

.message-actions {
  gap: 1rem;
  display: flex;
}

@media screen and (max-width: 450px) {
  body.welcome-mode #assistant-container textarea {
    height: 60px !important;
  }
}

@media screen and (max-width: 739px) {
  #disclaimerChat span {
    display: none;
  }
  
  .assistant-welcome-header {
    max-width: 420px;
  }

  #ad_topslot {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body.chat-mode {
    position: fixed;
    top: 0px;
    left: 0px;
  }

  body.welcome-mode.search-toggle .ws-h-ph {
    height: 106px !important;
  }

  body.no-search-toggle.chat-mode #assistant-container {
    height: calc(100dvh - (var(--assistant-header-h) + var(--assistant-ads-mobile-h) + var(--assistant-ads-margins)));
  }

  body.search-toggle.chat-mode #assistant-container {
    height: calc(100dvh - (var(--assistant-header-h) + var(--assistant-ads-mobile-h) + var(--assistant-ads-margins)) - 41px);
  }

  main {
    padding: 0px !important;
  }

  .idm-assistant .chat-window {
    padding: 0px 10px 0.5rem 10px !important;
    max-width: 100dvw !important;
  }
}

@media screen and (min-width: 740px) {
  #ad_topslot {
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  #assistant-container {
    padding: 0px 10px;
  }

  body.welcome-mode #assistant-container {
    min-height: 600px;
  }
}

@media screen and (min-width: 740px) and (max-width: 974px) {
  .idm-assistant .chat-window {
    width: calc(100dvw - 360px) !important;
    min-width: calc(100dvw - 360px) !important;
  }
}

@media screen and (min-width: 975px) {
  .idm-assistant .chat-window {
    width: min(750px, calc(100dvw - 680px)) !important;
    min-width: min(750px, calc(100dvw - 680px)) !important;
  }
}

@media screen and (min-width: 740px) and (max-width: 1144px) {  
  body.welcome-mode.search-toggle .ws-h-ph {
    height: 106px !important;
  }

  body.no-search-toggle.chat-mode #assistant-container {
    height: calc(100dvh - (var(--assistant-header-h) + var(--assistant-ads-desktop-h) + var(--assistant-ads-margins)));
  }

  body.search-toggle.chat-mode #assistant-container {
    height: calc(100dvh - (var(--assistant-header-h) + var(--assistant-ads-desktop-h) + var(--assistant-ads-margins)) - 41px);
  }
}

@media screen and (max-width: 1144px) {
  /* autocomplete */
  .ws-s-a.a{transform:translateY(0px) !important;}
}


@media screen and (min-width: 1145px) {
    /* autocomplete */
  .ws-s-a.a{transform:translateY(5px) !important;}

  body.welcome-mode.search-toggle .ws-h-ph {
    height: 130px !important;
  }

  body.no-search-toggle.chat-mode #assistant-container {
    height: calc(100dvh - (var(--assistant-header-h) + var(--assistant-ads-desktop-h) + var(--assistant-ads-margins)));
  }

  body.search-toggle.chat-mode #assistant-container {
    height: calc(100dvh - (var(--assistant-header-h) + var(--assistant-ads-desktop-h) + var(--assistant-ads-margins)) - 65px);
  }
}

body.welcome-mode #assistant-pwa-bar {
  display: flex;
  padding: 5px;
  justify-content: center;
  width: 100%;
  z-index: 50;
  bottom: 0;
  position: fixed;
  background-color: #227dab;
}

body.chat-mode #assistant-pwa-bar {
  display: none !important;
}

#assistant-pwa-img {
  height: 44px;
  width: 175px;
  cursor: pointer;
}
