:root {
  --font-primary: #1f1f1f;
  --font-secondary: #707070;
  --font-on-color: #ffffff;
  --font-disabled: #ababab;
  --font-periwinkle: #4b4fe2;
  --font-on-background-periwinkle: #4b4fe2;
  --font-blue: #006cd6;
  --font-purple: #a03291;
  --font-coral: #b2301a;
  --font-green: #009058;
  --font-yellow: #a16123;
  --font-red: #c71739;

  --background-primary: #ffffff;
  --background-secondary: #f5f5f5;
  --background-tertiary: #e5e5e5;
  --background-disabled: #cccccc;
  --background-periwinkle: #dbdcf9;
  --background-blue: #e5f3fd;
  --background-purple: #ecd6e9;
  --background-coral: #ffe5e0;
  --background-green: #cff3e8;
  --background-yellow: #fff4e0;
  --background-red: #ffedf0;

  --accent-periwinkle: #4b4fe2;
  --accent-periwinkle-hover: #6f72e8;
  --table-blue: #66b6f6;
  --accent-blue: #0085f0;
  --accent-purple: #a03291;
  --accent-red: #c71739;
  --accent-coral: #ff7c66;
  --accent-green: #0ec38b;
  --accent-yellow: #cf761b;
  --accent-red: #ff5c6c;

  --border-primary: #cccccc;
  --border-secondary: #e5e5e5;
}

:root:has(body.dark-mode) {
  --font-primary: #ffffff;
  --font-secondary: #cccccc;
  --font-on-color: #ffffff;
  --font-disabled: #707070;
  --font-periwinkle: #4b4fe2;
  --font-on-background-periwinkle: #ffffff;
  --font-blue: #66b6f6;
  --font-purple: #a03291;
  --font-coral: #b2301a;
  --font-green: #009058;
  --font-yellow: #ec9932;
  --font-red: #c71739;

  --background-primary: #2e2e2e;
  --background-secondary: #1f1f1f;
  --background-tertiary: #707070;
  --background-disabled: #454545;
  --background-periwinkle: #2a2d7f;
  --background-blue: #152a40;
  --background-purple: #6d005e;
  --background-coral: #800000;
  --background-green: #003d18;
  --background-yellow: #4e2d0e;
  --background-red: #43191b;

  --accent-periwinkle: #4b4fe2;
  --accent-periwinkle-hover: #6f72e8;
  --table-blue: #0052bd;
  --accent-blue: #0085f0;
  --accent-purple: #a03291;
  --accent-red: #c71739;
  --accent-coral: #ff7c66;
  --accent-green: #0ec38b;
  --accent-yellow: #cf761b;
  --accent-red: #ff5c6c;

  --border-primary: #707070;
  --border-secondary: #454545;
}

/* Please write all the css in respective sections  */

/*  */
/*  */
/*  */
/*  */
/*  */
/*  */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--font-disabled);
  width: 8px;
  border-radius: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
a,
button,
textarea,
input {
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  background: none;
  outline: none;
  border: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
a,
button {
  cursor: pointer;
}
.material-icons-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-size: inherit;
  font-weight: 400 !important;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.material-icons {
  font-family: "Material Symbols Outlined" !important;
  font-weight: 400 !important;
  font-size: inherit;
}

body {
  overflow: hidden;
  background-color: var(--background-secondary);
  transition: background-color 0.4s;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
}

* {
  box-sizing: border-box;
  font-family: "Noto Sans" !important;
  width: auto;
}
.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-weight: 400;
  &.filled {
    font-variation-settings: "FILL" 1;
  }
}
.container {
  padding: 0;
  margin: 0;
  max-width: none;
  /* height: 100%; */
  width: 100%;
}
.d-none {
  display: none;
}
.d-flex {
  display: flex;
}
.mode-dark-asset {
  display: none !important;
}
.mode-light-asset {
  display: block !important;
}
body.dark-mode {
  .mode-dark-asset {
    display: block !important;
  }
  .mode-light-asset {
    display: none !important;
  }
}

/* main .main-section {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  display: -webkit-flex;
  flex-direction: row;
} */

pre,
li,
p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.32px;
  font-style: normal;
  overflow-wrap: break-word;
}

pre,
li,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--font-primary) !important;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.28px;
  font-weight: 600;
  margin-top: 0;
}

h1 {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.32px;
}

h2 {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.28px;
}

h3 {
  font-size: 24px;
  line-height: 30px;
}

h4 {
  font-size: 20px;
  line-height: 24px;
}

h5,
h6 {
  font-size: 16px;
  line-height: 24px;
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.24px;
  }

  h2 {
    font-size: 22px;
    line-height: 28px;
  }

  h3 {
    font-size: 20px;
    line-height: 24px;
  }

  h4,
  h5,
  h6 {
    font-size: 16px;
    line-height: 24px;
  }
}

.font-14 {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.28px;
  font-weight: 400;
}

.text-red {
  color: var(--font-red) !important;
}

strong {
  font-weight: 600;
  letter-spacing: -0.28px;
  /* color: inherit !important; */
}

span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--font-disabled);
  width: 8px;
  border-radius: 8px;
}

/* all buttons */
.button-negative,
.button-secondary,
.explore-modal-actions button,
.primary-negative,
.dialog-outcome button,
.flow-page-close-action button,
.close-action-at-top button,
.file-upload-field label,
.acknowledge-outcome button,
.upload-outcome button,
.new-chat-outcome button,
#warningDialog button,
.edit-message-container button.submit,
.file-input-footer button,
.close-files-outcome button,
.submit-files-outcome button,
.signout-outcome button,
.button-secondary-negative,
.button-secondary-gray,
.button-cta {
  display: flex;
  display: -webkit-flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 36px;
  min-height: 36px;
  border-radius: 8px;
  transition: background-color 0.4s, color 0.4s;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.28px;

  &[disabled] {
    pointer-events: none;
  }

  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .button-negative,
  .button-secondary,
  .explore-modal-actions button,
  .primary-negative,
  .dialog-outcome button,
  .flow-page-close-action button,
  .close-action-at-top button,
  .file-upload-field label,
  .acknowledge-outcome button,
  .upload-outcome button,
  .new-chat-outcome button,
  #warningDialog button,
  .edit-message-container button.submit,
  .file-input-footer button,
  .close-files-outcome button,
  .submit-files-outcome button,
  .signout-outcome button,
  .button-secondary-negative,
  .button-secondary-gray,
  .button-cta {
    height: 44px;
    min-height: 44px;
  }
}

.file-upload-field label,
.new-chat-outcome button,
#warningDialog button,
.button-primary {
  color: var(--font-on-background-periwinkle) !important;
  background-color: var(--background-periwinkle) !important;

  &[disabled] {
    background-color: var(--background-disabled) !important;
    color: var(--font-secondary) !important;
  }

  &:not([disabled]):hover {
    color: var(--font-on-color) !important;
    background-color: var(--accent-periwinkle) !important;
  }
}

.explore-modal-actions .run-outcome button,
.dialog-outcome button:nth-of-type(2),
.acknowledge-outcome button,
.edit-message-container button.submit,
.file-input-footer button,
.submit-files-outcome button,
.button-cta {
  color: var(--font-on-color);
  background-color: var(--accent-periwinkle);

  &[disabled] {
    background-color: var(--background-disabled);
    color: var(--font-secondary);
  }

  &:not([disabled]):hover {
    background-color: var(--accent-periwinkle-hover);
    color: var(--font-on-color);
  }
}
.explore-modal-actions .unsave-outcome button,
.explore-modal-actions .save-outcome button,
.dialog-outcome button:nth-of-type(1),
.flow-page-close-action button,
.close-action-at-top button,
.upload-outcome button,
.close-files-outcome button,
.button-secondary-gray {
  background-color: var(--background-secondary);
  color: var(--font-primary);

  &[disabled] {
    background-color: var(--background-disabled);
    color: var(--font-secondary);
  }

  &:not([disabled]):hover {
    background-color: var(--background-tertiary);
    color: var(--font-primary) !important;
  }
}

.button-secondary {
  background-color: var(--background-primary);
  color: var(--font-primary);

  &[disabled] {
    background-color: var(--background-disabled);
    color: var(--font-secondary);
  }

  &:not([disabled]):hover {
    background-color: var(--background-tertiary);
    color: var(--font-primary) !important;
  }
}

.signout-outcome button,
.button-secondary-negative {
  background-color: var(--background-secondary);
  color: var(--font-red);

  &[disabled] {
    background-color: var(--background-disabled);
    color: var(--font-secondary);
  }

  &:not([disabled]):hover {
    background-color: var(--background-red);
    color: var(--font-red);
  }
}

.button-negative,
.primary-negative {
  background-color: var(--background-red);
  color: var(--font-red);

  &[disabled] {
    background-color: var(--background-disabled);
    color: var(--font-secondary);
  }

  &:not([disabled]):hover {
    background-color: var(--font-red);
    color: var(--font-on-color);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.chab-logo-animated {
  display: flex;
  /* flex-direction: column; */
  /* align-items: center; */

  .logo {
    font-size: 64px;
    line-height: 1;
    font-weight: bold;
    background: linear-gradient(
      90deg,
      var(--font-purple),
      var(--font-periwinkle),
      var(--font-coral),
      var(--font-green),
      var(--font-purple)
    );
    background-size: 700px 100%;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent;
    animation: gradientAnimation 30s infinite linear;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-bottom: 16px;
  }
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media screen and (max-width: 767px) {
  .chab-logo-animated .logo {
    font-size: 48px;
  }
}

dialog {
  background-color: transparent;
  border: 0;
  width: 100dvw;
  height: 100dvh;
  inset-block-start: unset;
  inset-block-end: unset;
  max-width: 100dvw;
  max-height: 100dvh;
  user-select: unset;
  visibility: visible;
  overflow: auto;
  left: 0;
  top: 0;

  .content {
    width: 100%;
    height: 100%;

    .modal-title {
      display: none;
    }

    .modal-content {
      width: 100%;
      height: 100%;
      display: flex;
      display: -webkit-flex;
      align-items: center;
      justify-content: center;
    }
  }

  padding: 0;
}

/*  */
/*  */
/*  */
/*  */
/*  */
/*  */

/* chatb navbar */
/* .chatb-nav {
  max-height: 80px;
  padding: 0 !important;
  overflow: visible !important;
  z-index: 15;
  width: 100%;

  .container-content {
    display: flex;
    display: -webkit-flex;
    flex-direction: row !important;
    justify-content: end !important;
    height: auto !important;
    position: relative;
    overflow: visible !important;
    .llm-container {
      display: flex;
      display: -webkit-flex;
      align-items: center;
      width: fit-content;
      min-height: 80px;
      position: absolute;
      top: 0;
      left: 0;

      .llm-toggle-container {
        height: 48px;
        display: flex;
        display: -webkit-flex;
        align-items: center;
        border-radius: 8px;
        transition: background-color 0.4s;

        &:has(.toggler-btn button:hover),
        &:hover {
          background-color: var(--background-primary) !important;
        }

        .container-content {
          width: fit-content;

          .toggler-btn {
            position: absolute;
            opacity: 0;
            height: 100%;
            width: 100%;
            overflow: hidden;
            *,
            *:focus {
              height: 100%;
              width: 100%;
              background-color: transparent !important;
            }
          }

          .selected-model {
            &::after {
              content: "";
              width: 8px;
              height: 8px;
              display: inline-block;
              border-left: 2px solid var(--font-secondary);
              border-bottom: 2px solid var(--font-secondary);
              transform: rotate(-45deg);
              transition: transform 0.4s;
            }

            padding: 12px 16px 12px 12px;
            display: flex;
            display: -webkit-flex;
            flex-direction: row;
            align-items: center;
          }
        }
      }

      .llm-toggle-content {
        position: absolute;
        top: calc(48px + 8px);
        left: -8px;
        width: fit-content;
        background-color: transparent;
        max-height: 0;
        transition: max-height 0.4s;
        overflow: hidden;

        .container-content {
          min-width: 341px;
          width: fit-content;
          border-radius: 16px;
          background-color: var(--background-primary);
          border: 1px solid var(--border-secondary);
          box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.04);
          transition: background-color 0.4s, border-color 0.4s;
          overflow: visible !important;
          padding: 12px !important;

          .llm-toggle-table {
            width: 100%;

            .page-component-controls,
            thead {
              display: none !important;
            }

            .table-wrapper {
              table {
                width: 100%;
                tr {
                  position: relative;
                  width: 100%;
                  height: calc(36px + 12px + 12px);
                  padding: 12px;
                  display: flex;
                  display: -webkit-flex;
                  justify-content: flex-start;
                  align-items: center;
                  flex-direction: row;
                  flex-wrap: wrap;
                  border-radius: 8px;
                  transition: background-color 0.4s;

                  &:hover {
                    background-color: var(--background-secondary);
                  }

                  &.selected {
                    &::after {
                      content: "";
                      width: 8px;
                      height: 8px;
                      display: block;
                      background-color: var(--accent-periwinkle);
                      border-radius: 50%;
                      position: absolute;
                      right: 12px;
                      top: 50%;
                      transform: translateY(-50%);
                    }
                    td {
                      &:nth-last-of-type(3),
                      &:nth-last-of-type(2) {
                        color: var(--accent-periwinkle);
                      }
                    }
                  }
                  td {
                    display: inline;
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 600;
                    line-height: 1;
                    letter-spacing: -0.14px;
                    color: var(--font-primary);
                    padding: 0;

                    &:nth-last-of-type(1) {
                      display: block;
                      font-size: 12px;
                      font-style: normal;
                      font-weight: 400;
                      letter-spacing: -0.24px;
                      color: var(--font-secondary);
                      width: 100%;
                    }
                  }

                  .table-cell-actions {
                    height: calc(36px + 12px + 12px);
                    background-color: green;
                    position: absolute;
                    top: 0;
                    left: 0;
                    opacity: 0;
                    width: 100%;
                    padding: 0;
                    button {
                      padding: 0;
                      width: 100%;
                      height: 100%;
                    }
                  }
                }
              }
            }
          }
        }
        border-radius: 16px;
        box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.04);
      }

      &:has(.status-open) {
        .llm-toggle-container {
          background-color: var(--background-primary) !important;

          .selected-model::after {
            transform: rotate(135deg);
          }
        }

        .llm-toggle-content {
          max-height: 100vh;

          .container-content {
            transform: none;
          }
        }
      }

      &:has(.custom-nav-title) {
        .llm-toggle-container {
          .selected-model::after,
          .toggler-btn {
            display: none;
          }
        }

        .llm-toggle-content {
          display: none;
        }
      }

      padding: 16px;
    }

    .user-info-container {
      position: absolute;
      right: 0;
      top: 0;
      padding: 16px;
      width: fit-content;
      overflow: visible !important;
      display: flex;
      display: -webkit-flex;
      align-items: center;
      justify-content: center;

      .user-profile {
        min-width: 48px;
        max-width: 48px;
        min-height: 48px;
        max-height: 48px;
        border-radius: 8px;
        background: var(--accent-periwinkle);
        color: var(--font-on-color);
        display: flex;
        display: -webkit-flex;
        align-items: center;
        justify-content: center;

        > div {
          display: flex;
          display: -webkit-flex;
          flex-direction: row;
        }

        p {
          font-size: 0px;
          margin: 0;
          line-height: 1;
          letter-spacing: -0.32px;

          &::first-letter {
            font-size: 16px;
            font-weight: 600;
          }

          color: var(--font-on-color) !important;
        }
      }

      .user-info-toggle-container {
        width: fit-content;

        .container-content {
          width: fit-content;
          display: flex;
          display: -webkit-flex;
          align-items: center;
          justify-content: end;

          .toggler-btn {
            position: absolute;
            width: 48px;
            height: 48px;
            overflow: hidden;
            right: 0;
            opacity: 0;
          }
        }
      }

      .user-info-content {
        position: absolute;
        top: calc(48px + 8px);
        right: -8px;
        width: 240px;
        height: auto;
        transform: translateX(calc(100% + 16px));
        transition: transform 0.4s;

        .user-profile {
          min-width: 80px;
          min-height: 80px;
          p::first-letter {
            font-size: 32px;
          }
        }

        > .container-content {
          padding: 12px;
          padding-top: 24px;
          border-radius: 16px;
          border: 1px solid var(--background-tertiary);
          background: var(--background-primary);
          box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.04);
          list-style: none;
          margin: 0;
          width: 100%;
          height: 100%;
          display: flex;
          display: -webkit-flex;
          flex-direction: column !important;

          .user-info-name {
            > div {
              display: flex;
              display: -webkit-flex;
              flex-direction: column;
              align-items: center;

              .name {
                text-align: center;
                color: var(--font-secondary);
                margin: 0;
                letter-spacing: -0.28px;
                margin-top: 12px;
                margin-bottom: 4px;
              }

              .role {
                margin-bottom: 12px;
                color: var(--font-secondary) !important;
              }
            }
          }

          .signout-outcome {
            width: 100%;
            button {
              width: 100%;
              height: 44px;
            }
          }
        }
      }


      &:has(.status-open) {
        .user-info-content {
          transform: none !important;
          > div {
            transform: none !important;
          }
        }
      }
    }

    .new-chat-outcome {
      display: none !important;
    }
  }
} */

/* @media screen and (max-width: 1700px) {
  .chatb-nav {
    .llm-container {
      position: static !important;
    }

    .user-info-container {
      position: static !important;
    }
  }
} */

@media screen and (max-width: 767px) {
  .user-info-toggle-container {
    .user-profile {
      width: 32px;
      height: 32px;
      min-width: 32px !important;
      max-width: 32px !important;
      min-height: 32px !important;
      max-height: 32px !important;

      p::first-letter {
        font-size: 12px !important;
      }
    }
  }
}
.ai-model-switch {
  strong strong {
    color: var(--accent-periwinkle) !important;
  }
}

/* submit suggestions  */

.modal-dialog-title {
  display: flex;
  display: -webkit-flex;
  flex-direction: row;
  gap: 16px;

  .icon {
    img {
      width: 48px;
      height: 48px;
    }
    > span {
      min-width: 48px;
      width: 48px;
      height: 48px;
      background-color: var(--background-yellow);
      border-radius: 50%;
      display: flex;
      display: -webkit-flex;
      align-items: center;
      justify-content: center;
      gap: 2px;
      font-weight: 500 !important;
      font-size: 18px;
      color: var(--font-yellow) !important;
      font-size: 23px !important;
      max-width: 41px;
    }
  }

  .text {
    flex: 1;

    h4 {
      color: var(--font-primary) !important;
      font-size: 20px;
      line-height: 28px;
      letter-spacing: -0.14px;
      font-weight: 600;
      margin: 0;
      margin-bottom: 12px;

      span {
        color: var(--font-periwinkle) !important;
      }
      .beta {
        background-color: var(--accent-green);
        border-radius: 4px;
        padding: 2px 4px;
        color: var(--font-on-color);
        font-size: 12px;
        font-size: 12px;
        font-weight: 600;
        line-height: 16px;
        letter-spacing: -0.12px;
      }
    }

    p {
      color: var(--font-secondary) !important;
      strong {
        color: var(--font-primary);
      }
      margin-bottom: 0;
    }
  }
  .close {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 50%;
    background-color: var(--background-secondary);
    span {
      font-size: 24px;
      color: var(--font-secondary);
      font-weight: 400 !important;
    }
  }
}
.modal-title-presentation {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  .outcome-group {
    button.close {
      display: flex;
      width: 48px;
      height: 48px;
      justify-content: center;
      align-items: center;
      border: 0;
      border-radius: 50%;
      background-color: var(--background-secondary);
      font-size: 0;

      &::before {
        content: "\e5cd";
        font-family: "Material Symbols Outlined";
        font-weight: 400 !important;
        font-size: 24px;
        color: var(--font-secondary);
      }
    }
  }
}
@media screen and (max-width: 767px) {
  .modal-dialog-title {
    flex-direction: column;
    gap: 12px;
    position: relative;
    .close {
      position: absolute;
      top: 0;
      right: 0;
    }
  }
  .modal-title-presentation {
    position: relative;
    .outcome-group {
      position: absolute;
      top: 0;
      right: 0;
    }
  }
}
.dialog-instruction {
  p {
    color: var(--font-secondary) !important;
  }
}
.standard-dialog {
  .reference-id {
    p {
      color: var(--font-secondary, #707070) !important;
      font-size: 12px;
      font-style: normal;
      font-weight: 400;
      line-height: 16px; /* 133.333% */
      max-height: 16px;
      letter-spacing: -0.24px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}
.dialog-input-description {
  display: flex;
  display: -webkit-flex;
  /* margin-top: 16px; */
  /* margin-bottom: 16px; */

  label {
    display: none;
  }
  textarea {
    width: 100%;
    min-height: 420px;
    padding: 16px 24px;
    background-color: var(--background-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 16px;
    color: var(--font-primary);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.32px;
    resize: none;

    &::placeholder {
      color: var(--font-secondary);
    }

    &::-webkit-scrollbar {
      width: 4px;
    }

    &::-webkit-scrollbar-thumb {
      background-color: var(--background-tertiary);
    }

    &::-webkit-scrollbar-track-piece:start {
      margin-top: 10px;
    }

    &::-webkit-scrollbar-track-piece:end {
      margin-bottom: 10px;
    }

    &::placeholder {
      color: var(--font-secondary);
    }
  }

  .validation-message {
    display: none;
  }

  &:has(.validation-message) textarea {
    border-color: var(--font-red);
  }
}

.dialog-outcome {
  > div {
    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 8px;

    button {
    }
  }
}

@media screen and (max-width: 767px) {
  .dialog-input-description textarea {
    min-height: 319px;
  }

  .custom-flow-dropdown-container {
    .container-content {
      .toggle-container {
        height: 44px !important;
        .selected-option {
          > div {
            height: 44px !important;
            padding: 12px 12px 12px 20px !important;
          }
        }
      }
    }
  }
}
/* info dialog  */
.info-dialog {
  .icon {
    span {
      background-color: var(--background-periwinkle);
      color: var(--accent-periwinkle) !important;
    }
  }
}

/* warning boxes  */
#warningDialog {
  transform: none !important;
  opacity: 1;
  z-index: 250;

  > div {
    transform: none !important;
    opacity: 1;
  }

  button {
    margin-left: auto;
    margin-right: 0;
    margin-top: 12px;
  }
}

@media screen and (max-width: 767px) {
  #warningDialog button {
    width: 100%;
  }
}

/* file upload dialog */
.file-upload-dialog {
  > .container-content {
    width: 100%;
    max-width: 840px;
    position: relative;

    .modal-dialog-title .icon span {
      color: var(--accent-coral) !important;
      background-color: var(--background-coral);
    }

    .actions-container {
      margin-top: 16px;

      .container-content {
        display: flex;
        display: -webkit-flex;
        flex-direction: row;
        gap: 8px;
        justify-content: end;
      }

      .submit-files-outcome {
        display: none;
      }
    }
  }

  /*  */
  &:has(.file-input-file-cancel) {
    .submit-files-outcome button {
      color: transparent;
      position: relative;
      pointer-events: none;

      &::before {
        display: block;
        content: "";
        position: absolute;
        transform: translate(-50%, -50%);
        border: 2px solid var(--font-on-color);
        border-top: 2px solid var(--background-disabled);
        border-radius: 50%;
        width: 20px;
        height: 20px;
        animation: spin 1s linear infinite;
      }
    }
  }

  &:has(.file-input-progress-bar:not(.progress-bar-complete)) {
    .file-input-footer {
      button {
        display: flex;
        display: -webkit-flex;
        z-index: 1;
      }
    }

    .submit-files-outcome {
      opacity: 0;
    }

    &:has(.file-input-file-cancel) {
    }
  }

  &:has(.file-input-file-list) .submit-files-outcome {
    display: block !important;
  }

  transform: none !important;
}

@media screen and (max-width: 767px) {
  .file-upload-dialog {
    .actions-container {
      .container-content {
        > div {
          width: 100%;

          button {
            width: 100%;
          }
        }
      }
    }

    &:has(.file-input-file-list) {
      .actions-container {
        .container-content {
          > div {
            width: 50% !important;
          }
        }
      }
    }

    .file-input-footer {
      button {
        width: calc(50% - 28px);
        bottom: 24px !important;
        right: 24px !important;
      }
    }
  }
}

/* file uplaod  */
.file-upload-field {
  margin-top: 12px;
  input,
  label {
    display: none;
  }

  .file-input-drop-target {
    min-height: 240px;
    background-color: var(--background-secondary);
    border: 1px dashed var(--border-primary);
    border-radius: 16px;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.4s, border-color 0.4s;

    &.active {
      background-color: var(--background-periwinkle);
      border-color: var(--accent-periwinkle);
    }
    svg {
      display: none;
    }
    span {
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      line-height: 24px;
      letter-spacing: -0.16px;
      color: var(--font-secondary);
    }
  }

  .file-input-footer {
    margin-top: 12px;

    button {
      position: absolute;
      bottom: 24px;
      right: 24px;
      display: none;
    }

    .help-info-message {
      display: block !important;
      color: var(--font-secondary);
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: 24px;
      /* 150% */
      letter-spacing: -0.32px;
    }
  }

  .file-input-file-list {
    padding: 0;
    list-style: none;
    margin: 16px 0;

    &:before {
      content: "Files";
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      line-height: 24px;
      /* 150% */
      letter-spacing: -0.16px;
      color: var(--font-primary);
      /* margin-bottom: 12px; */
      width: 100%;
    }

    li {
      display: flex;
      display: -webkit-flex;
      flex-direction: column;
      width: 256px;
      height: calc(48px + 14px + 14px);
      padding: 14px;
      padding-left: 70px;
      align-items: flex-start;
      gap: 8px;
      background-color: var(--background-secondary);
      border-radius: 12px;
      /* overflow: hidden; */
      padding-right: 10px;

      /* margin-top: 12px; */
      &::before {
        content: "";
        width: 48px;
        min-width: 48px;
        height: 48px;
        border-radius: 8px;
        background-color: var(--font-purple);
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        content: "\e24d";
        font-family: "Material Symbols Outlined";
        font-variation-settings: "FILL" 1;
        font-weight: 400 !important;
        font-size: 24px;
        color: var(--font-on-color);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
      }

      &::after {
        height: calc(100% - 0px);
        border-radius: 12px;
        position: absolute;
        left: 0;
        top: 0;
        position: absolute;
        background-color: var(--background-secondary);
        z-index: 0;
      }

      * {
        z-index: 4;
      }

      .file-input-file-heading {
        display: block;
        width: 100%;

        .file-input-file-name {
          display: block;
          width: 100%;
          font-size: 14px;
          font-style: normal;
          font-weight: 600;
          line-height: 20px;
          letter-spacing: -0.14px;
          color: var(--font-primary);
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }

        .file-input-file-cancel {
          position: absolute;
          right: -8px;
          top: -8px;
          width: 24px;
          height: 24px;
          border-radius: 50%;
          border: 1px solid var(--background-tertiary);
          background-color: var(--background-secondary);
          display: flex;
          display: -webkit-flex;
          align-items: center;
          justify-content: center;
          padding: 6px;
          /* transform: translate(50%, -50%); */
          opacity: 0;
          /* transition: opacity 0.4s; */

          svg {
            display: none;
          }

          &::before {
            content: "\e5cd";
            width: 16px;
            min-width: 16px;
            height: 16px;
            display: block;
            font-family: "Material Symbols Outlined";
            font-weight: 400 !important;
            color: var(--font-secondary);
            font-size: 12px;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
          }
        }
      }

      .progress-bar {
        /* display: none; */
        height: 100%;
        width: calc(100% - 0px);
        /* background-color: var(--background-tertiary); */
        display: block;
        position: absolute;
        bottom: 0px;
        left: 0%;
        /* background: red; */
        border-radius: 12px;
        overflow: hidden;
        z-index: 1;
        display: flex;
        align-items: end;
        justify-content: end;

        &::before {
          content: "";
          height: 4px;
          width: 100%;
          display: block;
          background-color: var(--background-tertiary);
        }

        .progress-bar-progress {
          height: 4px;
          width: 100%;
          display: block;
          background-color: var(--accent-periwinkle);
          position: absolute;
          left: 0;
          bottom: 0;
        }
      }

      .file-input-file-footer {
        width: 100%;
        font-size: 14px;
        line-height: 20px;
        color: var(--font-green);

        span {
          font-size: 14px;
          font-style: normal;
          font-weight: 400;
          line-height: 20px;
          /* 142.857% */
          letter-spacing: -0.28px;
          color: var(--font-secondary);
        }

        .file-input-file-progress {
          padding-left: 3px;

          &::before {
            content: "(";
          }

          &::after {
            content: ")";
          }
        }
      }

      .file-input-file-error {
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: -0.28px;
        color: var(--font-red);
      }

      &:hover {
        .file-input-file-cancel {
          opacity: 1;
        }
      }

      position: relative;
      overflow: h;
    }

    display: flex;
    display: -webkit-flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 767px) {
  .file-upload-field {
    .file-input-drop-target {
      display: none;
    }

    label {
      display: flex;
      display: -webkit-flex;
    }

    .file-input-file-list {
      li {
        width: 100%;

        .file-input-file-cancel {
          opacity: 1 !important;
        }
      }
    }
  }
}

.files-attachments-list {
  position: absolute;
  bottom: 0;
  left: 0;
  margin-bottom: calc(88px - 4px - 8px);

  .container-content {
    padding: 0 20px;

    > div {
      max-width: calc(840px - 48px);
      overflow-x: scroll;
      overflow-y: hidden;
      margin: auto;
      padding-bottom: 4px;

      &::-webkit-scrollbar {
        width: 8px;
        height: 8px;
      }

      &::-webkit-scrollbar-track {
        background: transparent;
        width: 8px;
      }

      &::-webkit-scrollbar-thumb {
        background: transparent;
        width: 4px;
        border-radius: 8px;
      }

      &:hover::-webkit-scrollbar-thumb {
        background: var(--border-primary);
      }
    }

    .page-component-controls {
      display: none;
    }
    table {
      thead {
        display: none;
      }
      tbody {
        display: flex;
        display: -webkit-flex;
        flex-direction: row;
        gap: 12px;
        padding-top: 7px;
        tr {
          display: flex;
          display: -webkit-flex;
          width: calc(252px + 28px);
          padding: 13px;
          align-items: flex-start;
          flex-shrink: 0;
          background-color: var(--background-primary);
          border: 1px solid var(--background-tertiary);
          border-radius: 12px;
          height: 76px;
          flex-wrap: wrap;
          position: relative;
          margin: 0 !important;

          &::before {
            content: "";
            min-width: 48px;
            height: 48px;
            background-color: var(--font-purple);
            border-radius: 8px;
            position: absolute;
            left: 14px;
          }

          &::after {
            min-width: 48px;
            height: 48px;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: center;
            content: "\e24d";
            font-family: "Material Symbols Outlined";
            font-variation-settings: "FILL" 1;
            font-weight: 400 !important;
            font-size: 24px;
            color: var(--font-on-color);
            position: absolute;
            left: 14px;
          }
          td {
            width: 100%;
            font-size: 14px;
            font-style: normal;
            font-weight: 600;
            line-height: 20px;
            letter-spacing: -0.14px;
            color: var(--font-primary);
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;

            &:nth-of-type(3) {
              color: var(--font-secondary);
              font-weight: 400;
              letter-spacing: -0.28px;
              margin-top: 6px;
              text-transform: uppercase;
            }

            &.table-cell-actions {
              position: absolute;
              right: -8px;
              top: -8px;
              width: 24px;
              height: 24px;
              opacity: 0;
              transition: opacity 0.4s;
              overflow: visible;
              button {
                width: 24px;
                height: 24px;
                border-radius: 50%;
                border: 1px solid var(--background-tertiary) !important;
                background-color: var(--background-secondary);
                display: flex;
                display: -webkit-flex;
                align-items: center;
                justify-content: center;
                font-size: 0;
                border: 0;
                padding: 0;
                border: 0;
                position: relative;

                &::before {
                  content: "\e5cd";
                  width: 16px;
                  min-width: 16px;
                  height: 16px;
                  display: block;
                  font-family: "Material Symbols Outlined";
                  font-weight: 400 !important;
                  color: var(--font-secondary);
                  font-size: 12px;
                  display: flex;
                  display: -webkit-flex;
                  align-items: center;
                  justify-content: center;
                  position: absolute;
                  left: 50%;
                  top: 50%;
                  transform: translate(-50%, -50%);
                }
              }
            }
          }

          &:hover .table-cell-actions {
            opacity: 1;
          }
          padding-left: 70px;
        }
      }
    }
  }
  transition: bottom 0.4s;
  z-index: 14;
  width: 1;
}

.files-attachments-list:has(tbody:empty) {
  display: none;
}

@media screen and (max-width: 767px) {
  .files-attachments-list {
    .container-content {
      padding: 0;

      > div {
        padding-bottom: 0;

        &::-webkit-scrollbar {
          display: none;
        }

        .table-wrapper table {
          /* margin-left: 20px; */
          /* margin-right: 20px; */
          overflow: hidden;
          tr {
            padding: 12px 12px 12px 68px;
            width: calc(318px + 24px);
            height: calc(48px + 24px);
            td {
              &.table-cell-actions {
                opacity: 1 !important;
              }
            }
            &::after,
            &::before {
              left: 12px;
            }
            &:nth-of-type(1) {
              margin-left: 20px !important;
            }
            &:nth-last-of-type(1) {
              margin-right: 20px !important;
            }
          }
        }
      }
    }
  }
}

/* submit suggestions dialog  */
.submit-suggestions-dialog.bottom-dialog-in-mobile {
  transform: none !important;
  opacity: 1;
  > div {
    transform: none !important;
  }

  .modal-dialog-title {
    .icon span {
      background-color: var(--background-coral);
      color: var(--accent-coral) !important;
    }
  }
}

/* report bad response  */
.report-bad-response-dialog.bottom-dialog-in-mobile {
  transform: none !important;
  opacity: 1;
  > div {
    transform: none !important;
  }
  .icon {
    span {
      display: flex;
      align-items: center;
      justify-content: center;
      /* background-color: var(--background-coral);
      color: var(--accent-coral) !important; */
      background-color: var(--background-green);
      color: var(--accent-green) !important;
    }
  }
}
.custom-flow-dropdown-container {
  height: auto;
  margin-bottom: -4px;
  /* margin-bottom: 12px; */
  /* margin-top: 16px; */

  .container-content {
    position: relative;
    .toggle-container {
      display: flex;
      display: -webkit-flex;
      /* padding: 8px 8px 8px 16px; */
      justify-content: center;
      align-items: center;
      gap: 8px;
      background-color: var(--background-secondary);
      border: 1px solid var(--border-secondary);
      border-radius: 48px;
      height: 36px;
      /* border: 0; */
      width: fit-content;
      position: relative;
      overflow: hidden;

      .container-content {
        width: 100%;
        height: 100%;
        .selected-option {
          > div {
            padding: 8px 8px 8px 16px;
            p {
              margin: 0;
              display: flex;
              display: -webkit-flex;
              justify-content: center;
              align-items: center;
              gap: 8px;
              color: var(--font-primary) !important;
              min-width: 40px;
              &::after {
                content: "\e5cf";
                font-size: 20px;
                font-family: "Material Symbols Outlined";
                font-weight: 400 !important;
                color: var(--font-secondary);
                transition: transform 0.4s;
              }
              > strong {
                display: flex;
                flex-direction: row;
                gap: 8px;
                strong {
                  color: var(--font-secondary);
                }
              }
            }
          }
        }
        .toggle-outcome {
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          opacity: 0;

          * {
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
            border: 0;
            border-radius: 48px;
          }
        }
      }
    }
    .dropdown-table-container {
      position: absolute;
      left: -8px;
      bottom: -8px;
      max-height: 0;
      overflow: hidden;
      background-color: transparent;
      border-radius: 16px;
      transition: max-height 0.4s;
      transform: translateY(100%);
      max-width: 240px;
      width: 100%;
      box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.04);
      .container-content {
        padding: 12px !important;
        background-color: var(--background-primary);
        border: 1px solid var(--background-tertiary);
        border-radius: 16px;
        .on-click-outside-close {
          display: none;
        }
        .dropdown-table {
          .page-component-controls {
            display: none;
          }
          .table-wrapper {
            table {
              display: flex;
              display: -webkit-flex;
              /* width: 240px; */
              colgroup,
              thead {
                display: none;
              }
              tbody {
                width: 100%;
                tr {
                  font-size: 14px;
                  font-style: normal;
                  font-weight: 600;
                  line-height: 20px;
                  /* 142.857% */
                  letter-spacing: -0.14px;
                  color: var(--font-primary);
                  display: block !important;
                  height: 44px;
                  border-radius: 8px;
                  display: flex !important;
                  display: -webkit-flex !important;
                  align-items: center;
                  width: 100%;
                  position: relative;
                  &:hover {
                    background-color: var(--background-secondary);
                  }

                  &.selected {
                    &:after {
                      content: "";
                      width: 8px;
                      height: 8px;
                      display: block;
                      background-color: var(--accent-periwinkle);
                      border-radius: 50%;
                      position: absolute;
                      right: 12px;
                      top: 50%;
                      transform: translateY(-50%);
                    }
                  }
                  td {
                    padding: 12px;
                  }

                  .table-cell-actions {
                    position: absolute;
                    padding: 0;
                    width: 100%;
                    height: 100%;
                    display: block;
                    button {
                      width: 100%;
                      height: 100%;
                      border: 0;
                      opacity: 0;
                      display: block;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }

    &:has(.status-open) {
      .dropdown-table-container {
        max-height: 100vh;
      }

      .toggle-container {
        background-color: var(--background-blue);
        border-color: var(--accent-blue);

        .selected-option {
          p {
            &::after {
              transform: rotate(180deg);
            }
          }
        }
      }
    }
  }
}
@media screen and (max-width: 767px) {
  .custom-flow-dropdown-container {
    .container-content {
      .dropdown-table-container {
        transform: none !important;
        .dropdown-table {
        }
      }
      &:has(.status-open) {
        .dropdown-table-container {
          .on-click-outside-close {
            display: block;
          }
        }
      }
    }
  }
}

.chatb-chat-window {
  > .container-content {
    overflow: hidden;
    /* display: flex; */
    /* flex-direction: row !important; */
    .chatb-content-container {
      height: 100%;
      > .container-content {
        height: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        /* align-items: center; */
        /* justify-content: center; */
      }
      overflow: hidden;
      /* width: 100%; */
      flex: 1;
    }
  }
}

:has(.dark-mode-activated-status) {
  .application-switch-outcome-container {
    .application-insider-switch-outcome button::before {
      content: url("https://master-boomi-flow-assets-prod-us-east-1.s3.amazonaws.com/ca72d2b6-becd-47cc-a1f4-65193f8f4be3/ChatB-application-insider-logo-dark-mode.svg") !important;
    }
    .application-chatb-switch-outcome button::before {
      content: url("https://master-boomi-flow-assets-prod-us-east-1.s3.amazonaws.com/ca72d2b6-becd-47cc-a1f4-65193f8f4be3/ChatB-application-chatb-logo-dark-mode.svg") !important;
    }
  }
}

#flow-app {
  height: 100dvh;
  overflow: hidden;

  > .flow {
    height: 100%;

    > .content {
      height: 100%;

      > .container {
        height: 100%;

        > .container-content {
          height: 100%;
          display: flex;
          display: -webkit-flex;
          flex-direction: row;
          overflow: hidden;
          /* align-items: center; */
          /* justify-content: space-between; */
        }
      }
    }
  }
}

.suggested-prompts-container {
  display: block;
  /* max-height: 0; */
  transition: max-height 0.4s;
  overflow: hidden;
  flex: 1 !important;

  > .container-content {
    max-width: 840px;
    margin: auto;
    height: 100%;
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    justify-content: center;
    > div {
      padding: 0 16px;
      &.csm-landing-screen {
        display: flex;
        > div {
          display: flex;
          flex-direction: column;
          align-items: center;
          .chab-logo-animated {
            .logo {
              background: var(
                --gradient-periwinkle-green,
                linear-gradient(45deg, #4b4fe2 0%, #0ec38b 100%)
              );
            }
          }
          h1 {
            margin-bottom: 8px;
            background: linear-gradient(
              90deg,
              var(--font-purple),
              var(--font-periwinkle),
              var(--font-coral),
              var(--font-green),
              var(--font-purple)
            );

            background: var(
              --gradient-periwinkle-green,
              linear-gradient(45deg, #4b4fe2 0%, #0ec38b 100%)
            );
            background-size: 700px 100%;
            background-clip: text !important;
            -webkit-background-clip: text !important;
            color: transparent !important;
            animation: gradientAnimation 10s infinite linear;
          }
          h2 {
            color: var(--font-secondary) !important;
            text-align: center;

            /* Heading/Heading Large */
            font-family: "Noto Sans";
            font-size: 32px;
            font-style: normal;
            font-weight: 600;
            line-height: 40px; /* 125% */
            letter-spacing: -0.32px;
          }
        }
      }
      &.suggested-prompts-description {
        :not(.ai-model-switch) > h1 {
          color: var(--font-secondary) !important;
          margin-top: 8px;
          margin-bottom: 0;
        }
      }

      &.suggested-prompts-table {
        margin-top: 32px;
        &:has(tbody:empty) {
          display: none;
        }
        .page-component-controls {
          display: none;
        }

        .table-wrapper {
          padding-bottom: 8px;
          width: 100%;
          overflow-x: auto;

          &::-webkit-scrollbar {
            width: 8px;
            height: 8px;
          }

          &::-webkit-scrollbar-track {
            background: transparent;
            width: 8px;
          }

          &::-webkit-scrollbar-thumb {
            background: transparent;
            width: 8px;
            border-radius: 8px;
          }

          &:hover::-webkit-scrollbar-thumb {
            background: var(--border-primary);
          }
          table {
            thead {
              display: none;
            }
            tbody {
              display: flex;
              display: -webkit-flex;
              flex-direction: row;
              gap: 8px;
              tr {
                display: flex;
                display: -webkit-flex;
                flex-wrap: wrap;
                width: calc(272px + 48px);
                min-height: calc(120px + 48px);
                height: calc(120px + 48px);
                padding: 24px;
                flex-direction: row;
                align-items: flex-start;
                border-radius: 16px;
                background-color: var(--background-primary);
                transition: background-color 0.4s;
                position: relative;

                &:hover {
                  background-color: var(--background-tertiary);
                }
                td {
                  padding: 0;

                  &.table-cell-actions {
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    button {
                      width: 100%;
                      height: 100%;
                      opacity: 0;
                      border: 0;
                      padding: 0;
                    }
                  }

                  &:nth-of-type(2) {
                    font-size: 18px;
                    font-style: normal;
                    font-weight: 600;
                    line-height: 24px;
                    letter-spacing: -0.18px;
                    color: var(--font-primary);
                    margin-bottom: 4px;
                    width: 100%;
                  }

                  &:nth-of-type(3) {
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 24px;
                    letter-spacing: -0.32px;
                    color: var(--font-secondary);
                    max-height: 48px;
                    overflow: hidden;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    width: 100%;
                  }

                  &:nth-of-type(4) {
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 600;
                    line-height: 20px;
                    letter-spacing: -0.14px;
                    margin-top: auto;
                    color: var(--accent-blue);
                  }

                  &:nth-last-of-type(1) {
                    font-size: 0;
                    color: transparent;
                    margin-left: auto;
                    margin-top: auto;
                    width: 32px;
                    height: 32px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    border-radius: 8px;
                    background-color: var(--background-blue);
                    transition: background-color 0.4s;
                    &::after {
                      content: "";
                      width: 10px;
                      height: 10px;
                      transform: rotate(-45deg);
                      border-radius: 3px;
                      display: block;
                      background-color: var(--accent-blue);
                      transition: background-color 0.4s;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

:has(.dark-mode-activated-status)
  .suggested-prompts-table
  table
  tr
  td:nth-of-type(4)::after {
  background-image: url(https://master-boomi-flow-assets-prod-us-east-1.s3.amazonaws.com/86d308f9-6b29-4a7e-a7bb-994c27674410/prompt-icon-light.svg) !important;
}

/* body:has(.ai-chat-messages) {
  .suggested-prompts-container {
    display: none !important;
  }
} */

.suggested-prompts-container {
  display: none !important;
  max-height: 0;
}
:has(.ai-chat-messages :nth-child(1)#ai-chat-message-wait) {
  /* background-color: red !important; */
  .suggested-prompts-container {
    max-height: 100vh;
    display: flex !important;
  }
  .page-component-aichat-chatb {
    display: none;
  }
}
body.ai-chat-processing {
  :has(.ai-chat-messages :nth-child(1)#ai-chat-message-wait) {
    .suggested-prompts-container {
      display: none !important;
      max-height: 0;
    }
    .page-component-aichat-chatb {
      display: flex;
    }
  }
}

/* #flow-app:not(:has(.ai-chat-messages:empty)) {
  .suggested-prompts-container {
    display: none !important;
  }
} */

@media screen and (max-width: 1700px) {
  #flow-app:has(.ai-chat-messages:empty) {
    .suggested-prompts-container {
      padding-top: 0;
    }
  }
}

@media screen and (max-width: 767px) {
  .suggested-prompts-table {
    margin-left: -16px;
    margin-right: -16px;

    .table-wrapper {
      padding-bottom: 0 !important;

      &::-webkit-scrollbar {
        display: none;
      }
      table {
        padding-left: 16px;
        padding-right: 16px;
      }
    }

    table tr {
      padding: 16px !important;
      width: calc(288px + 32px) !important;
      min-height: calc(120px + 32px) !important;
      height: calc(120px + 32px) !important;
    }
  }
}

.help-info-message {
  display: none !important;
}

.chatb-loader {
  display: flex;
  display: -webkit-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  position: fixed;
  left: 0;
  top: 0;
  width: 100dvw;
  height: 100dvh;
  background-color: var(--background-secondary);
  z-index: 111;

  p {
    text-align: center;
    font-size: 16px;
    letter-spacing: -0.14px;
    font-weight: 600;
    color: var(--font-secondary) !important;
  }

  svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}
.chatb-loader.maintenance {
  display: none;
}
body:has(.maintenance-mode) {
  .chatb-loader.maintenance {
    display: flex !important;
    p {
      /* font-size: 0;
      line-height: 0; */
      /* display: flex;
      flex-direction: column;
      gap: 4px; */
      /* &::before {
        font-size: 16px;
        line-height: 1;
        content: "Wait for an exciting news!!";
      }
      &::after {
        font-size: 16px;
        line-height: 1;
        content: "ChatB under maintenance";
      } */
    }
  }
}
body:has(.chatb-sidebar):has(.chatb-navbar):has(.suggested-prompts-table):has(
    .ai-chat-messages
  ),
body:has(.policy-page-content),
body:has(.chatb-agents-window) {
  #chatb-loader {
    display: none !important;
  }
}

/* modal pages for all pages  */

/* privacy page  */
.policy-page-container {
  .flow-page-close-action {
    z-index: 6;
  }
}

.flow-page-close-action,
.close-action-at-top {
  position: absolute;
  left: 16px;
  top: 95px;
  max-width: 880px;
  z-index: 4;
  button {
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 20px 8px 12px;
    height: 48px;
    background-color: transparent;
    color: var(--font-secondary);

    &::before {
      content: "\e5cd";
      font-family: "Material Symbols Outlined";
      font-weight: 400;
      font-size: 20px;
      color: inherit;
    }
  }
  background-color: var(--background-secondary);
}

/* .close-action-at-top button */

@media screen and (max-width: 1700px) {
  .flow-page-close-action,
  .close-action-at-top {
    position: sticky;
    top: 0;
    left: auto;
    width: 100%;
    max-width: calc(840px + 16px + 16px);
    padding: 0 16px 16px 16px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 767px) {
  .flow-page-close-action,
  .close-action-at-top {
    margin: 0;
    padding: 0 0 16px 0;
    display: flex;
    display: -webkit-flex;
    /* align-items: center; */
    justify-content: end;
  }
  .flow-page-close-action button,
  .close-action-at-top button {
    width: 48px;
    height: 48px;
    background-color: var(--background-primary);
    border-radius: 8px;
    overflow: hidden;
    color: transparent !important;
    font-size: 0;
    position: relative;
  }
  .flow-page-close-action button::before,
  .close-action-at-top button::before {
    color: var(--font-secondary) !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.loader {
  display: none;
}

.standard-dialog {
  display: flex;
  display: -webkit-flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
  transform: none !important;
  padding: 24px;
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgba(38, 38, 38, 0.4);
  z-index: 220000;

  > * {
    border-radius: 24px;
    background-color: var(--background-primary);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 560px;
    overflow-y: auto;
  }
  .actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: end;
    margin-top: 16px;
  }
  .content {
    margin-left: 48px;
    /* margin-top: 12px; */
    border-radius: 12px;
    background: var(--background-secondary);
    padding: 16px 24px;

    p {
      color: var(--font-primary);

      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: 24px; /* 150% */
      letter-spacing: -0.32px;
    }
  }
}
.on-click-outside-close {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  z-index: -1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background-color: transparent !important;
  background-color: rgba(38, 38, 38, 0.4) !important;

  > div {
    width: 100%;
    height: 100%;
  }
  button {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 0;
    font-size: 0;
    color: transparent;
    opacity: 0;
    outline: none;
    padding: 0;
    cursor: unset !important;
  }
}

:has(.dark-mode-activated-status) .standard-dialog {
  background-color: rgba(112, 112, 112, 0.6);
}

.close-in-mobile {
  display: none;
}
.half-buttons-in-mobile {
  /* margin-top: 16px; */
}
.flow-css-modal {
  display: none;
  &:has(.modal-status) {
    display: flex;
  }
}
@media screen and (max-width: 767px) {
  .backdrop-on-show::before {
    content: "";
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: 0;
    width: 200vw;
    height: 200vh;
    height: 200dvh;
    opacity: 0;
    transform: translate(-50%, 0%);
    background-color: rgba(38, 38, 38, 0.4);
    z-index: 1;
    transition: all 0.4s;
  }

  .backdrop-on-show.show::before {
    opacity: 1;
    transform: translate(-50%, -50%);
    z-index: -1;
  }
  .half-buttons-in-mobile {
    > div {
      > div {
        width: 50%;
        button {
          width: 100%;
        }
      }
      > button {
        width: 50%;
      }
    }
  }
}

.flow-page-container {
  display: none;
  width: 100% !important;
  position: absolute;
  left: 0;
  /* transform: scale(1); */
  top: 0;
  width: 100%;
  background-color: var(--background-secondary);
  height: 100%;
  max-height: 100%;
  overflow: hidden;

  > div {
    overflow-y: scroll;
    max-height: 100%;
    width: 100%;
    padding-left: 32px;
    padding-right: 24px;
    &::-webkit-scrollbar {
      width: 8px;
    }

    &::-webkit-scrollbar-thumb {
      /* background-color: var(--background-secondary); */
    }

    &::-webkit-scrollbar-track-piece:start {
      margin-top: 80px;
    }

    &::-webkit-scrollbar-track-piece:end {
      margin-bottom: 0px;
    }
    .flow-page-content {
      max-width: 840px;
      margin: auto;
      margin-top: 96px;
      .outcome-group {
        display: none;
      }
    }
  }
  z-index: 14;
}
.flow-page-container:has(.status-open) {
  display: flex;
}
@media screen and (max-width: 1700px) {
  .flow-page-container {
    padding-top: 80px;
    > div {
      &::-webkit-scrollbar-track-piece:start {
        margin-top: 50px;
      }
      &::-webkit-scrollbar-track-piece:end {
        margin-bottom: 0px;
      }
      .flow-page-content {
        margin-top: 0;
      }
    }
  }
}
@media screen and (max-width: 767px) {
  .flow-page-container {
    > div {
      padding-left: 16px;
      padding-right: 16px;
    }
  }
}

.insider-application-container {
  height: 100%;
  max-height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-left: 8px;
  transform: scale(1);
  display: flex;
  align-items: self-start;
  justify-content: flex-start;

  &::-webkit-scrollbar-track-piece:start {
    margin-top: 80px !important;
  }
  > div {
    max-width: calc(1392px + 160px);
    padding-left: 32px;
    padding-right: 32px;
    margin: auto;
  }
  &:has(.bottom-dialog-in-mobile.active) {
    transform: none;
  }
}
@media screen and (max-width: 1700px) {
  .insider-application-container {
    padding-left: 16px;
    padding-right: 8px;
    margin-top: -80px !important;
    &:has(.search-mode) {
      margin-top: -80px !important;
    }
    &::-webkit-scrollbar-track-piece:start {
      margin-top: 0px !important;
    }
  }
}
@media screen and (max-width: 767px) {
  .insider-application-container {
    margin-top: 0 !important;
    padding-right: 16px;
    &:has(.search-mode) {
      margin-top: 0px !important;
    }
  }
}
@media screen and (max-width: 576px) {
  .insider-application-container {
    > div {
      padding-left: 0;
      padding-right: 0;
    }
  }
}
.insider-application-asset,
.chatb-application-asset {
  width: inherit;
  > div {
    width: 100%;
    min-height: 100%;
  }
}
.insider-application-asset {
  display: flex !important;
}
.chatb-application-asset {
  display: none !important;
}
body:has(.application-chatb-status) {
  .insider-application-asset {
    display: none !important;
  }
  .chatb-application-asset {
    display: flex !important;
  }
  .chatb-nav {
    .container-content {
      justify-content: space-between !important;
    }
  }
  .application-chatb-switch-outcome button {
    background-color: var(--background-secondary) !important;
  }
  .application-insider-switch-outcome button {
    background-color: transparent !important;
  }
}

.tooltip-wrapper {
  position: relative;
  overflow: visible;
  .tooltip {
    position: absolute;
    top: -4px;
    left: -4px;
    transform: translate(0%, -100%);
    background-color: var(--accent-periwinkle);
    color: var(--font-on-color);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.24px;
    padding: 2px 4px;
    min-height: 20px;
    border-radius: 4px;
    z-index: 1;
    height: 20px;
    overflow: visible;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
}



/* for flow debugging  */

/* .chatb-loader {
  display: none !important;
}
.outcomes {
  position: absolute;
  top: 0;
} */
