/*
    Chat main container styles
*/

[data-cognigy-webchat-root].webchat-root {
  --webchat-primary-contrast-color: rgba(0, 0, 0, 0.8);
  --nd-webchat-bottom-position: 36px;
  --nd-webchat-right-position: 36px;
  --nd-webchat-button-bottom-position-mobile: 24px;
  --nd-webchat-button-right-position-mobile: 16px;
  --nd-webchat-height: 780px;
  --nd-webchat-width: 460px;
}

[data-cognigy-webchat-root].webchat-root [data-cognigy-webchat].webchat {
  min-height: 0;
  font-family: YouNik;
}

@media screen and (min-width: 576px) {
  [data-cognigy-webchat-root].webchat-root [data-cognigy-webchat].webchat {
    bottom: var(--nd-webchat-bottom-position);
    right: var(--nd-webchat-right-position);
    width: var(--nd-webchat-width);
    height: min(
      calc(100vh - 2 * var(--nd-webchat-bottom-position)),
      var(--nd-webchat-height)
    );
    min-height: 0;
    border-radius: 24px;
  }
}

/*
    Chat toggle button styles
*/

[data-cognigy-webchat-root].webchat-root
  [data-cognigy-webchat-toggle].webchat-toggle-button {
  bottom: var(--nd-webchat-button-bottom-position-mobile);
  right: var(--nd-webchat-button-right-position-mobile);
  width: 48px;
  height: 48px;
}

@media screen and (min-width: 576px) {
  [data-cognigy-webchat-root].webchat-root
    [data-cognigy-webchat-toggle].webchat-toggle-button {
    bottom: var(--nd-webchat-bottom-position);
    right: var(--nd-webchat-right-position);
    width: 74px;
    height: 74px;
  }
}

@media screen and (min-width: 576px) {
  [data-cognigy-webchat-root].webchat-root
    [data-cognigy-webchat-toggle].webchat-toggle-button
    svg {
    width: 32px;
    height: 32px;
  }
}

[data-cognigy-webchat-root].webchat-root
  [data-cognigy-webchat-toggle].webchat-toggle-button,
[data-cognigy-webchat-root].webchat-root
  [data-cognigy-webchat-toggle].webchat-toggle-button:hover {
  background: #3c3f34;
  fill: #ffffff !important;
}

/*
    Chat homescreen header styles
*/

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-content
  .webchat-homescreen-header {
  padding: 13px 4px 0 11px;
  height: unset;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-content
  .webchat-homescreen-header
  .webchat-homescreen-header-logo {
  border-radius: 0;
  width: auto;
  height: auto;
  margin: 0;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-content
  .webchat-homescreen-header
  .webchat-homescreen-close-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  width: 24px;
  margin: 0;
  outline-color: var(--webchat-primary-color);
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-content
  .webchat-homescreen-header
  .webchat-homescreen-close-button
  svg {
  fill: rgba(0, 0, 0, 0.87);
}

/*
    Chat homescreen content styles
*/

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-content
  .webchat-homescreen-title {
  margin-inline: auto;
  margin-top: 57px;
  color: rgba(0, 0, 0, 0.8);
  font-family: YouNik;
  font-size: 40px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.2px;
  text-align: center;
}

@media screen and (max-height: 600px) {
  [data-cognigy-webchat-root].webchat-root
    .webchat-homescreen-content
    .webchat-homescreen-title {
    margin-top: 26px;
  }
}

@media screen and (max-height: 500px) {
  [data-cognigy-webchat-root].webchat-root
    .webchat-homescreen-content
    .webchat-homescreen-title {
    margin-top: 10px;
  }
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-content
  .webchat-homescreen-title::after {
  content: "Sp\00f8rg os om alt";
  display: block;
  margin-top: 14px;
  color: rgba(0, 0, 0, 0.56);
  font-family: YouNik;
  font-size: 16px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.2px;
  text-align: center;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-content
  .webchat-homescreen-buttons {
  width: 100%;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-content
  .webchat-homescreen-buttons
  .webchat-homescreen-button-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  max-width: none;
  border-top: 1px solid rgba(34, 31, 14, 0.23);
  padding-top: 24px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-content
  .webchat-homescreen-buttons
  .webchat-homescreen-button-container::before {
  content: "\00d8jeblikkelige svar";
  display: block;
  color: rgba(0, 0, 0, 0.8);
  margin-bottom: 12px;
  flex: 1 1 100%;
  font-family: YouNik;
  font-size: 14px;
  font-weight: 500;
  line-height: 15px;
  text-align: center;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-content
  .webchat-homescreen-buttons
  .webchat-homescreen-button-container
  .webchat-homescreen-button {
  border: 1px solid rgba(34, 31, 14, 0.23);
  padding: 3px 6px;
}

/*
    Chat homescreen action buttons styles (start chat, chat history)
*/

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-root
  .webchat-homescreen-actions {
  position: absolute;
  top: 192px;
  background: transparent;
}

@media screen and (max-height: 600px) {
  [data-cognigy-webchat-root].webchat-root
    .webchat-homescreen-root
    .webchat-homescreen-actions {
    top: 146px;
  }
}

@media screen and (max-height: 500px) {
  [data-cognigy-webchat-root].webchat-root
    .webchat-homescreen-root
    .webchat-homescreen-actions {
    top: 116px;
    background-color: rgb(240, 235, 220);
  }
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-root
  .webchat-homescreen-actions::after {
  /* content: "Vi gemmer chatten i 30 dage ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã‚Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ ingen hemmeligheder, bare bedre service.\A\A Er du bekymret for din data? SÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬ ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¥ tjek vores privatlivspolitik ud pÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬ ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¥ https://yousee.dk/om-yousee/om-cookies"; */
  content: "";
  white-space: pre-wrap;
  display: block;
  margin-top: 24px;
  max-width: 172px;
  color: rgba(0, 0, 0, 0.56);
  font-family: YouNik;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-root
  .webchat-homescreen-actions
  button {
  width: 152px;
  min-height: 28px;
  height: 28px;
  margin: 0;
  border-radius: 100px;
  background: transparent;
  font-family: YouNik;
  font-size: 14px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 2px solid #323232;
  color: #323232;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-root
  .webchat-homescreen-actions
  button
  + button {
  margin-top: 8px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-root
  .webchat-homescreen-actions
  button:hover {
  opacity: 0.8;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-root
  .webchat-homescreen-actions
  button:focus,
[data-cognigy-webchat-root]
  .webchat-homescreen-root
  .webchat-homescreen-actions
  button:active {
  opacity: 0.7;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-homescreen-root
  .webchat-homescreen-actions
  .webchat-homescreen-send-button {
  background: #323232;
  color: white;
}

/*
    Chat header bar styles
*/

[data-cognigy-webchat-root].webchat-root .webchat .webchat-header-bar {
  padding: 24px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat
  .webchat-header-bar
  .logoNameContainer {
  height: auto;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  .logoNameContainer
  .webchat-header-logo {
  display: none;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  .webchat-header-minimize-button {
  display: none;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  .webchat-header-back-button,
[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  [data-header-menu-button],
[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  .webchat-header-close-button {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  .webchat-header-back-button
  svg,
[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  [data-header-menu-button]
  circle,
[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  .webchat-header-close-button
  svg {
  fill: rgba(255, 255, 255, 0.87) !important;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  [data-header-menu-button]
  svg {
  width: 14px;
  height: 14px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  .webchat-header-close-button {
  margin-left: -7px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  .webchat-header-title {
  font-family: YouNik;
  font-weight: 500;
}

[data-cognigy-webchat-root].webchat-root .webchat-message-row {
  display: flex;
  flex-direction: column;
  margin: 0 16px 8px;
}

[data-cognigy-webchat-root].webchat-root .webchat-message-row div {
  font-weight: 400;
}

[data-cognigy-webchat-root].webchat-root .webchat-message-row .message-header {
  column-gap: 8px;
  margin-block: 8px;
  height: auto;
}

[data-cognigy-webchat-root].webchat-root .webchat-message-row .message-header,
[data-cognigy-webchat-root].webchat-root
  .webchat-message-row
  .message-header
  div,
[data-cognigy-webchat-root].webchat-root
  .webchat-message-row
  .message-header
  span {
  display: flex;
  align-items: center;
  font-family: YouNik;
  color: #000000cc;
  line-height: 10px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-message-row
  .message-header
  span {
  font-size: 10px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-message-row
  .message-header
  span
  time {
  position: relative;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-message-row
  .message-header
  .webchat-avatar {
  height: 24px;
  width: 24px;
}

/*
    Chat user avatar name
*/
[data-cognigy-webchat-root].webchat-root
  .webchat-message-row.user
  .message-header
  span::before {
  content: "Dig";
  position: relative;
  left: -16px;
}

/*
    Chat user avatar separator
*/
[data-cognigy-webchat-root].webchat-root
  .webchat-message-row.user
  .message-header
  span
  time::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: -8px;
}

[data-cognigy-webchat-root].webchat-root .webchat-message-row .chat-bubble {
  background: rgba(240, 235, 220, 0.6);
  border: none;
  font-size: 16px;
  line-height: 20px;
  margin-block: 0;

  &[class*="_outgoing"] {
    background: #3c3f34;
    color: #ffffff;
  }
}

[data-cognigy-webchat-root].webchat-root
  .webchat-message-row
  .message-header
  + .webchat-quick-reply-template-root {
  margin-top: 12px;
}

[data-cognigy-webchat-root].webchat-root .message-header div svg,
[data-cognigy-webchat-root].webchat-root .message-header span time::before {
  width: 0;
  height: 10px;
  border: 0.5px solid #a2a2a2;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-rating-widget-root
  .webchat-rating-widget-content-container
  .webchat-rating-widget-thumbs-up-button,
[data-cognigy-webchat-root]
  .webchat-rating-widget-root
  .webchat-rating-widget-content-container
  .webchat-rating-widget-thumbs-down-button {
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: transparent;
  padding: 8px 16px;
  border-radius: 32px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-rating-widget-root
  .webchat-rating-widget-content-container
  .webchat-rating-widget-thumbs-up-button[aria-pressed="true"],
[data-cognigy-webchat-root]
  .webchat-rating-widget-root
  .webchat-rating-widget-content-container
  .webchat-rating-widget-thumbs-down-button[aria-pressed="true"] {
  border-color: #1a1a1a;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-rating-widget-root
  .webchat-rating-widget-content-container
  .webchat-rating-widget-thumbs-up-button[aria-pressed="true"]
  svg
  path,
[data-cognigy-webchat-root].webchat-root
  .webchat-rating-widget-root
  .webchat-rating-widget-content-container
  .webchat-rating-widget-thumbs-down-button[aria-pressed="true"]
  svg
  path {
  fill: #1a1a1a;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-rating-widget-root
  .webchat-rating-widget-content-container
  .webchat-rating-widget-thumbs-up-button::after {
  content: "God";
  display: block;
  color: rgba(0, 0, 0, 0.8);
}

[data-cognigy-webchat-root].webchat-root
  .webchat-rating-widget-root
  .webchat-rating-widget-content-container
  .webchat-rating-widget-thumbs-down-button::after {
  content: "D\00e5rlig";
  display: block;
  color: rgba(0, 0, 0, 0.8);
}

[data-cognigy-webchat-root].webchat-root
  .webchat-rating-widget-root
  div:focus-within {
  border-color: inherit;
  outline: initial;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-rating-widget-root
  .webchat-rating-widget-send-button {
  background: #00dc00;
  color: rgba(0, 0, 0, 0.8);
  padding: 9px 14px;
  border-radius: 100px;
  width: auto;
  min-height: auto;
  height: 28px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-rating-widget-root
  .webchat-rating-widget-send-button:not(:disabled):hover,
[data-cognigy-webchat-root]
  .webchat-rating-widget-root
  .webchat-rating-widget-send-button:not(:disabled):active {
  background-color: rgba(0, 220, 0, 0.6) !important;
}

[data-cognigy-webchat-root].webchat-root .webchat-rating-widget-root textarea {
  background: transparent;
}

/*
    Previous conversations content styles
*/

[data-cognigy-webchat-root].webchat-root
  .webchat-prev-conversations-root
  .webchat-prev-conversations-content {
  row-gap: 0;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-prev-conversations-root
  .webchat-prev-conversations-content
  .webchat-prev-conversations-item {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 0;
  padding-block: 24px;
  height: auto;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-prev-conversations-root
  .webchat-prev-conversations-content
  .cognigy-webchat-0
  + svg {
  width: 14px;
  height: 0;
  border: 0.5px solid #cecbbd;
  transform: rotate(90deg);
}

[data-cognigy-webchat-root].webchat-root
  .webchat-prev-conversations-root
  .webchat-prev-conversations-actions {
  padding: 26px 0;
  border-top-color: #cccccc3e;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-prev-conversations-root
  .webchat-prev-conversations-send-button {
  min-height: auto;
  height: auto;
  margin: 0;
  padding: 8px 14px;
  border: 2px solid rgba(0, 0, 0, 0.8);
  border-radius: 100px;
  width: auto;
  background: transparent;
  color: rgba(0, 0, 0, 0.8);
  font-family: YouNik;
  font-size: 16px;
  line-height: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-prev-conversations-root
  .webchat-prev-conversations-send-button:hover {
  background: transparent !important;
  opacity: 0.8;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-prev-conversations-root
  .webchat-prev-conversations-send-button:active {
  background: transparent !important;
  opacity: 0.7;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-prev-conversations-item
  > div
  > div:first-child {
  font-size: 16px;
  font-weight: 500;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-prev-conversations-item
  > div
  > div {
  max-width: 250px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-header-bar
  div.logoNameContainer {
  margin-left: 16px;
}

[data-cognigy-webchat-root].webchat-root .webchat-header-bar div:first-child {
  width: auto !important;
}

/*
    Chat input styles
*/

[data-cognigy-webchat-root].webchat-root .webchat-input {
  display: block;
  margin: 16px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 16px;
  background-color: #f2f2f2;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-input.webchat-input-text-active {
  border-color: #00dc00;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-input
  .webchat-input-menu-form {
  border: none;
  align-items: flex-end;
  gap: 0px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-input
  .webchat-input-menu-form
  .webchat-input-message-input {
  min-height: 52px;
  font-family: YouNik;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  order: 0;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-input
  .webchat-input-menu-form
  .webchat-input-button-add-attachments {
  order: 1;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-input
  .webchat-input-menu-form
  .webchat-input-button-add-attachments
  > svg {
  fill: #000000cc;
  width: 19px;
  height: 19px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-input
  .webchat-input-menu-form
  .webchat-input-button-speech {
  margin-left: 12px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-input
  .webchat-input-menu-form
  .webchat-input-button-speech
  > svg {
  width: 19px;
  height: 19px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-input
  .webchat-input-menu-form
  .webchat-input-button-speech-active {
  fill: black !important;
}

/* Animated background when chat muicrophone is active */
[data-cognigy-webchat-root].webchat-root
  .webchat-input
  .webchat-input-menu-form
  .webchat-input-button-speech
  .webchat-input-button-speech-background {
  top: -6px;
  left: -6px;
  height: 31px;
  width: 31px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-input
  .webchat-input-menu-form
  .webchat-input-button-send {
  order: 2;
  margin-left: 20px;
}

[data-cognigy-webchat-root].webchat-root
  .webchat-input
  .webchat-input-menu-form
  .webchat-input-button-send
  > svg {
  fill: #000000cc;
  width: 19px;
  height: 19px;
}

/* Temporary disable alerts in MYS summary page and finance page */
.alert_alertBoxContainer__istVp.finance_customAlertBoxContainer__V0qtS.alert_warning__8L4dG.alert_withoutBorder__MBTLr,
div.overview_notificationsWrapper__gFSGo
  .alert_alertBoxContainer__istVp.alert_withoutBorder__MBTLr {
  display: none;
}
