.mwai-chatgpt-theme {
  --mwai-spacing: 15px;
  --mwai-fontSize: 15px;
  --mwai-lineHeight: 1.5;
  --mwai-borderRadius: 10px;
  --mwai-width: 460px;
  --mwai-maxHeight: 40vh;
  --mwai-iconTextColor: white;
  --mwai-iconTextBackgroundColor: #343541;
  --mwai-fontColor: #FFFFFF;
  --mwai-backgroundPrimaryColor: #454654;
  --mwai-backgroundHeaderColor: #343541;
  --mwai-bubbleColor: #343541;
  --mwai-headerButtonsColor: #FFFFFF;
  --mwai-conversationsBackgroundColor: #202123;
  --mwai-conversationsTextColor: #FFFFFF;
  --mwai-backgroundSecondaryColor: #343541;
  --mwai-errorBackgroundColor: #6d2f2a;
  --mwai-errorTextColor: #FFFFFF;
}

.mwai-chatgpt-theme * {
  box-sizing: border-box;
}

.mwai-chatgpt-theme .mwai-content {
  background: var(--mwai-backgroundSecondaryColor);
  color: var(--mwai-fontColor);
  font-size: var(--mwai-fontSize);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--mwai-borderRadius);
}

.mwai-chatgpt-theme .mwai-shortcuts {
  display: flex;
  justify-content: center;
  margin: var(--mwai-spacing);
}

.mwai-chatgpt-theme .mwai-shortcuts .mwai-shortcut {
  margin-right: calc(var(--mwai-spacing) / 2);
  display: flex;
}

.mwai-chatgpt-theme .mwai-shortcuts .mwai-shortcut.mwai-success {
  color: #4caf50;
  border: 1px solid #4caf50;
}

.mwai-chatgpt-theme .mwai-shortcuts .mwai-shortcut.mwai-danger {
  color: #f44336;
  border: 1px solid #f44336;
}

.mwai-chatgpt-theme .mwai-shortcuts .mwai-shortcut.mwai-warning {
  color: #ff9800;
  border: 1px solid #ff9800;
}

.mwai-chatgpt-theme .mwai-shortcuts .mwai-shortcut.mwai-info {
  color: #2196f3;
  border: 1px solid #2196f3;
}

.mwai-chatgpt-theme .mwai-shortcuts .mwai-shortcut .mwai-icon {
  margin-right: 5px;
}

.mwai-chatgpt-theme .mwai-shortcuts .mwai-shortcut .mwai-icon img {
  max-height: 16px;
  width: auto;
}

.mwai-chatgpt-theme .mwai-blocks {
  display: flex;
  flex-direction: column;
  padding: var(--mwai-spacing);
}

.mwai-chatgpt-theme .mwai-blocks .mwai-block p:first-child {
  margin-top: 0;
}

.mwai-chatgpt-theme .mwai-blocks button {
  cursor: pointer;
}

.mwai-chatgpt-theme .mwai-conversation {
  overflow: auto;
}

.mwai-chatgpt-theme .mwai-reply {
  display: flex;
  padding: var(--mwai-spacing);
  position: relative;
  line-height: var(--mwai-lineHeight);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mwai-chatgpt-theme .mwai-reply.mwai-fade-out {
  opacity: 0;
}

.mwai-chatgpt-theme .mwai-reply.mwai-user {
  background: var(--mwai-backgroundSecondaryColor);
}

.mwai-chatgpt-theme .mwai-reply.mwai-ai {
  background: var(--mwai-backgroundPrimaryColor);
}

.mwai-chatgpt-theme .mwai-reply .mwai-name {
  color: var(--mwai-fontColor);
  margin-right: 5px;
}

.mwai-chatgpt-theme .mwai-reply .mwai-name .mwai-name-text {
  opacity: 0.50;
  white-space: nowrap;
}

.mwai-chatgpt-theme .mwai-reply .mwai-name .mwai-avatar {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  overflow: hidden;
}

.mwai-chatgpt-theme .mwai-reply .mwai-name .mwai-avatar img {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.mwai-chatgpt-theme .mwai-reply .mwai-name .mwai-avatar.mwai-svg img {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  filter: brightness(0) invert(1);
}

.mwai-chatgpt-theme .mwai-reply .mwai-text {
  flex: auto;
  font-size: var(--mwai-fontSize);
  line-height: var(--mwai-lineHeight);
  color: var(--mwai-fontColor);
}

.mwai-chatgpt-theme .mwai-reply .mwai-text .mwai-image {
  display: block;
  max-width: 250px;
  height: auto;
  margin: 0 0 10px 0;
  border-radius: var(--mwai-borderRadius);
}

.mwai-chatgpt-theme .mwai-reply .mwai-text .mwai-filename {
  display: flex;
  text-decoration: none;
  border: 1px solid var(--mwai-backgroundPrimaryColor);
  border-radius: var(--mwai-borderRadius);
  padding: 5px 10px;
  margin-bottom: 10px;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text * {
  font-size: var(--mwai-fontSize);
}

.mwai-chatgpt-theme .mwai-reply .mwai-text > span > *:first-child {
  margin-top: 0;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text > span > *:last-child {
  margin-bottom: 0;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text a {
  color: #2196f3;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text h1, .mwai-chatgpt-theme .mwai-reply .mwai-text h2, .mwai-chatgpt-theme .mwai-reply .mwai-text h3, .mwai-chatgpt-theme .mwai-reply .mwai-text h4 {
  color: var(--mwai-fontColor);
}

.mwai-chatgpt-theme .mwai-reply .mwai-text h1 {
  font-size: 200%;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text h2 {
  font-size: 160%;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text h3 {
  font-size: 140%;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text h4 {
  font-size: 120%;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text p code {
  background: var(--mwai-backgroundSecondaryColor);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 90%;
  font-family: system-ui;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text pre {
  color: var(--mwai-fontColor);
  border-radius: var(--mwai-borderRadius);
  padding: calc(var(--mwai-spacing) * 2 / 3) var(--mwai-spacing);
  break-after: auto;
  white-space: pre-wrap;
  font-size: 95%;
  max-width: 100%;
  width: 100%;
  font-family: system-ui;
  background: hsl(0 0% 0% / 30%);
}

.mwai-chatgpt-theme .mwai-reply .mwai-text pre code {
  padding: 0 !important;
  font-family: system-ui;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text ul, .mwai-chatgpt-theme .mwai-reply .mwai-text ol {
  padding: 0;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text ol {
  margin: 0 0 0 20px;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text table {
  width: 100%;
  border: 2px solid var(--mwai-backgroundSecondaryColor);
  border-collapse: collapse;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text thead {
  background: var(--mwai-backgroundSecondaryColor);
}

.mwai-chatgpt-theme .mwai-reply .mwai-text tr, .mwai-chatgpt-theme .mwai-reply .mwai-text td {
  padding: 2px 5px;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text td {
  border: 2px solid var(--mwai-backgroundSecondaryColor);
}

.mwai-chatgpt-theme .mwai-reply .mwai-text .mwai-typewriter {
  display: inline-block;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text .mwai-typewriter > :first-child {
  margin-top: 0;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text > *:first-child {
  margin-top: 0;
}

.mwai-chatgpt-theme .mwai-reply .mwai-text > *:last-child {
  margin-bottom: 0;
}

.mwai-chatgpt-theme .mwai-reply.mwai-system {
  background: var(--mwai-errorBackgroundColor);
  color: var(--mwai-errorFontColor);
}

.mwai-chatgpt-theme .mwai-reply.mwai-system .mwai-name {
  display: none;
}

.mwai-chatgpt-theme .mwai-input {
  display: flex;
  padding: var(--mwai-spacing);
  border-top: 1px solid var(--mwai-backgroundPrimaryColor);
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text {
  flex: auto;
  position: relative;
  background: var(--mwai-backgroundPrimaryColor);
  border-radius: var(--mwai-borderRadius);
  overflow: hidden;
  display: flex;
  padding: calc(var(--mwai-spacing) / 2);
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text.mwai-blocked {
  background: var(--mwai-errorBackgroundColor);
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text.mwai-dragging {
  filter: brightness(1.2);
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text textarea {
  background: inherit;
  color: var(--mwai-fontColor);
  padding-left: calc(var(--mwai-spacing) / 2);
  flex: auto;
  border: none;
  font-size: var(--mwai-fontSize);
  line-height: var(--mwai-lineHeight);
  resize: none;
  font-family: inherit;
  margin: 0;
  overflow: hidden;
  min-height: inherit;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text textarea:focus {
  outline: none;
  box-shadow: none;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text textarea::placeholder {
  color: var(--mwai-fontColor);
  opacity: 0.5;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-microphone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-microphone svg {
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.3s ease-out;
  cursor: pointer;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-microphone[active=true] svg {
  opacity: 1;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-microphone[disabled] svg {
  opacity: 0;
  cursor: not-allowed;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon {
  background: url("icons/dark-icons.svg");
  background-size: 500%;
  background-position: 0px -96px;
  width: 32px;
  height: 32px;
  z-index: 100;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-idle-add {
  background-position: -32px -96px;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-add {
  background-position: -32px 0px;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-up {
  background-position: -64px 0px;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-del {
  background-position: -96px 0px;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-image-ok {
  background-position: -128px 0px;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-add {
  background-position: -32px -64px;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-up {
  background-position: -64px -64px;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-del {
  background-position: -96px -64px;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon.mwai-document-ok {
  background-position: -128px -64px;
}

.mwai-chatgpt-theme .mwai-input .mwai-input-text .mwai-file-upload-icon .mwai-file-upload-progress {
  position: absolute;
  font-size: 8px;
  width: 21px;
  top: 24px;
  left: 23px;
  overflow: hidden;
  text-align: center;
  font-weight: bold;
  color: white;
}

.mwai-chatgpt-theme .mwai-input button {
  margin-left: var(--mwai-spacing);
}

.mwai-chatgpt-theme .mwai-compliance {
  opacity: 0.50;
  margin-top: calc(-1 * var(--mwai-spacing));
  padding: calc(var(--mwai-spacing) / 1.5) var(--mwai-spacing);
  font-size: smaller;
  color: var(--mwai-fontColor);
  text-align: left;
}

.mwai-chatgpt-theme .mwai-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 5px;
}

.mwai-chatgpt-theme .mwai-gallery img {
  width: 100%;
}

.mwai-chatgpt-theme button {
  color: var(--mwai-fontColor);
  background: var(--mwai-backgroundSecondaryColor);
  border: 1px solid var(--mwai-backgroundPrimaryColor);
  padding: calc(var(--mwai-spacing) / 2) var(--mwai-spacing);
  min-width: 70px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--mwai-fontSize) * 0.9);
  position: relative;
}

.mwai-chatgpt-theme button .mwai-timer {
  margin-left: 5px;
  margin-right: 5px;
  font-size: 11px;
}

.mwai-chatgpt-theme button:hover {
  background: var(--mwai-backgroundPrimaryColor);
}

.mwai-chatgpt-theme button[disabled] {
  cursor: not-allowed;
}

.mwai-chatgpt-theme button[disabled] span {
  opacity: 0.5;
}

.mwai-chatgpt-theme button[disabled].mwai-busy span {
  display: none;
}

.mwai-chatgpt-theme button[disabled].mwai-busy:before {
  content: '';
  width: 18px;
  height: 18px;
  margin: auto;
  border: 3px solid transparent;
  border-top-color: var(--mwai-fontColor);
  border-radius: 50%;
  animation: mwai-button-spinner 1s ease infinite;
}

.mwai-chatgpt-theme.mwai-form-container {
  padding: var(--mwai-spacing);
  font-size: var(--mwai-fontSize);
  color: var(--mwai-fontColor);
  background: var(--mwai-backgroundSecondaryColor);
  border-radius: var(--mwai-borderRadius);
}

.mwai-chatgpt-theme.mwai-form-container fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.mwai-chatgpt-theme.mwai-form-container fieldset input[type="text"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="email"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="tel"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="url"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="password"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="number"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="date"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="datetime"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="datetime-local"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="month"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="search"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="time"], .mwai-chatgpt-theme.mwai-form-container fieldset input[type="week"], .mwai-chatgpt-theme.mwai-form-container fieldset select, .mwai-chatgpt-theme.mwai-form-container fieldset textarea {
  padding: calc(var(--mwai-spacing) * 2 / 3) var(--mwai-spacing);
  border: 0;
  width: 100%;
  border-radius: var(--mwai-borderRadius);
  font-size: var(--mwai-fontSize);
  background: var(--mwai-backgroundPrimaryColor);
  color: var(--mwai-fontColor);
}

.mwai-chatgpt-theme.mwai-form-container fieldset select {
  padding: calc(var(--mwai-spacing) * 2 / 3) var(--mwai-spacing);
  border: 0;
  width: 100%;
  border-radius: var(--mwai-borderRadius);
  font-size: var(--mwai-fontSize);
  background: var(--mwai-backgroundPrimaryColor);
  color: var(--mwai-fontColor);
}

.mwai-chatgpt-theme.mwai-form-container fieldset textarea {
  padding: calc(var(--mwai-spacing) * 2 / 3) var(--mwai-spacing);
  border: 0;
  width: 100%;
  border-radius: var(--mwai-borderRadius);
  font-family: inherit;
  font-size: var(--mwai-fontSize);
  background: var(--mwai-backgroundPrimaryColor);
  color: var(--mwai-fontColor);
}

.mwai-chatgpt-theme.mwai-form-container fieldset input[disabled], .mwai-chatgpt-theme.mwai-form-container fieldset select[disabled], .mwai-chatgpt-theme.mwai-form-container fieldset textarea[disabled] {
  opacity: 0.25;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-submit button, .mwai-chatgpt-theme.mwai-form-container .mwai-form-reset button {
  height: 45px;
  background: none;
  width: 100%;
  color: var(--mwai-fontColor);
  font-size: var(--mwai-fontSize);
  background-color: var(--mwai-backgroundSecondaryColor);
  border: 1px solid var(--mwai-backgroundPrimaryColor);
  border-radius: var(--mwai-borderRadius);
  cursor: pointer;
  transition: all 0.2s ease-out;
  position: relative;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-submit button:hover, .mwai-chatgpt-theme.mwai-form-container .mwai-form-reset button:hover {
  background: var(--mwai-backgroundPrimaryColor);
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-submit button[disabled] span, .mwai-chatgpt-theme.mwai-form-container .mwai-form-reset button[disabled] span {
  opacity: 0.25;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-submit button[disabled]:hover, .mwai-chatgpt-theme.mwai-form-container .mwai-form-reset button[disabled]:hover {
  background: none;
  cursor: not-allowed;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-submit.mwai-loading button span, .mwai-chatgpt-theme.mwai-form-container .mwai-form-reset.mwai-loading button span {
  opacity: 0;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-submit.mwai-loading button::after, .mwai-chatgpt-theme.mwai-form-container .mwai-form-reset.mwai-loading button::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid transparent;
  border-top-color: var(--mwai-fontColor);
  border-radius: 50%;
  animation: mwai-button-spinner 1s ease infinite;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-output-container .mwai-form-output {
  font-size: var(--mwai-fontSize);
  position: relative;
  margin-top: var(--mwai-spacing);
  padding: var(--mwai-spacing);
  border: 1px solid var(--mwai-backgroundPrimaryColor);
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-output-container .mwai-form-output.mwai-error {
  background: var(--mwai-errorBackgroundColor);
  color: var(--mwai-errorFontColor);
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-output-container .mwai-form-output > *:first-child {
  margin-top: 0;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-output-container .mwai-form-output > *:last-child {
  margin-bottom: 0;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-output-container .mwai-form-output img {
  max-width: 33%;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-output-container .mwai-form-output div > *:first-child {
  margin-top: 0;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-output-container .mwai-form-output div > *:last-child {
  margin-bottom: 0;
}

.mwai-chatgpt-theme.mwai-form-container .mwai-form-output-container.mwai-has-content {
  display: block;
}

.mwai-chatgpt-theme.mwai-form-container .wp-block-columns {
  margin: 0;
}

.mwai-chatgpt-theme.mwai-discussions {
  border-radius: var(--mwai-borderRadius);
  background: var(--mwai-backgroundHeaderColor);
  overflow: hidden;
}

.mwai-chatgpt-theme.mwai-discussions * {
  box-sizing: border-box;
}

.mwai-chatgpt-theme.mwai-discussions .mwai-discussion {
  display: flex;
  gap: 5px;
  padding-left: calc(var(--mwai-spacing) / 2);
  padding-right: calc(var(--mwai-spacing) / 2);
  padding-bottom: calc(var(--mwai-spacing) / 2);
  color: var(--mwai-conversationsTextColor);
  opacity: 0.65;
  justify-content: space-between;
  align-items: center;
}

.mwai-chatgpt-theme.mwai-discussions .mwai-discussion .mwai-discussion-title {
  flex: auto;
  padding: 5px;
}

.mwai-chatgpt-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions {
  display: flex;
  gap: 3px;
}

.mwai-chatgpt-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-icon {
  width: 32px;
  height: 32px;
  background: var(--mwai-iconTextBackgroundColor);
  color: var(--mwai-iconTextColor);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mwai-chatgpt-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-icon:hover {
  background: var(--mwai-backgroundPrimaryColor);
}

.mwai-chatgpt-theme.mwai-discussions .mwai-discussion .mwai-discussion-actions .mwai-icon:hover.mwai-danger {
  background: var(--mwai-errorBackgroundColor);
}

.mwai-chatgpt-theme.mwai-discussions .mwai-discussion.mwai-active, .mwai-chatgpt-theme.mwai-discussions .mwai-discussion:hover {
  cursor: pointer;
}

.mwai-chatgpt-theme.mwai-discussions .mwai-discussion.mwai-active .mwai-discussion-title, .mwai-chatgpt-theme.mwai-discussions .mwai-discussion:hover .mwai-discussion-title {
  background: var(--mwai-backgroundPrimaryColor);
  border-radius: var(--mwai-borderRadius);
  opacity: 1;
}

.mwai-chatgpt-theme.mwai-discussions .mwai-discussion:first-child {
  margin-top: calc(var(--mwai-spacing) / 2);
}

.mwai-chatgpt-theme.mwai-discussions .mwai-header {
  color: var(--mwai-headerButtonsColor);
  padding: var(--mwai-spacing);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mwai-chatgpt-theme.mwai-discussions .mwai-content {
  background: var(--mwai-conversationsBackgroundColor);
  list-style: none;
  padding: 0;
  margin: 0;
}

.mwai-chatgpt-theme.mwai-transition, .mwai-chatgpt-theme .mwai-transition {
  opacity: 0;
  transition: opacity 350ms ease-in-out;
}

.mwai-chatgpt-theme.mwai-transition-visible, .mwai-chatgpt-theme .mwai-transition-visible {
  opacity: 1;
}

.mwai-chatgpt-theme .mwai-text {
  overflow-wrap: anywhere;
}

.mwai-chatgpt-theme .mwai-text img {
  max-width: 100%;
}

.mwai-chatgpt-theme .mwai-text div p:first-child {
  margin-top: 0;
}

.mwai-chatgpt-theme .mwai-text div p:last-child {
  margin-bottom: 0;
}

.mwai-chatgpt-theme .mwai-trigger {
  position: absolute;
  right: 0;
  bottom: 0;
  transition: all 0.2s ease-out;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.mwai-chatgpt-theme .mwai-trigger .mwai-icon-text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mwai-chatgpt-theme .mwai-trigger .mwai-icon-text-container .mwai-icon-text {
  background: var(--mwai-iconTextBackgroundColor);
  color: var(--mwai-iconTextColor);
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  max-width: 200px;
  font-size: 13px;
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 8px;
}

.mwai-chatgpt-theme .mwai-trigger .mwai-icon-text-container .mwai-icon-text-close {
  color: var(--mwai-iconTextColor);
  background: var(--mwai-iconTextBackgroundColor);
  padding: 5px;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  margin-bottom: 3px;
}

.mwai-chatgpt-theme .mwai-trigger .mwai-icon-text-container:hover {
  cursor: pointer;
}

.mwai-chatgpt-theme .mwai-trigger .mwai-icon-text-container:hover .mwai-icon-text-close {
  display: flex;
  font-size: 12px;
}

.mwai-chatgpt-theme .mwai-trigger .mwai-icon-text-container:hover .mwai-icon-text-close:hover {
  filter: brightness(1.2);
}

@media (max-width: 760px) {
  .mwai-chatgpt-theme .mwai-trigger .mwai-icon-text-container .mwai-icon-text-close {
    display: flex;
  }
}

.mwai-chatgpt-theme .mwai-trigger .mwai-icon-container .mwai-icon {
  filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.15));
  transition: all 0.2s ease-out;
}

.mwai-chatgpt-theme .mwai-trigger .mwai-icon-container .mwai-icon:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.mwai-chatgpt-theme.mwai-window {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: var(--mwai-width);
  z-index: 9999;
}

.mwai-chatgpt-theme.mwai-window .mwai-header {
  display: none;
  justify-content: flex-end;
  align-items: center;
  border-radius: var(--mwai-borderRadius) var(--mwai-borderRadius) 0 0;
  background: var(--mwai-backgroundHeaderColor);
}

.mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons {
  display: flex;
  align-items: center;
}

.mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button {
  justify-content: center;
  height: 32px;
  width: 22px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:before {
  transition: all 0.2s ease-out;
  content: ' ';
  cursor: pointer;
  position: absolute;
  height: 13px;
  width: 13px;
  border: 1px solid var(--mwai-headerButtonsColor);
}

.mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons .mwai-resize-button:hover:before {
  width: 16px;
  height: 16px;
}

.mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button {
  justify-content: center;
  height: 32px;
  width: 33px;
  cursor: pointer;
  border-radius: var(--mwai-borderRadius);
}

.mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before {
  transition: all 0.2s ease-out;
  transform: translate(16px, 5px) rotate(45deg);
}

.mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after {
  transition: all 0.2s ease-out;
  transform: translate(16px, 5px) rotate(-45deg);
}

.mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:before, .mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:after {
  content: ' ';
  cursor: pointer;
  position: absolute;
  height: 22px;
  width: 1px;
  background-color: var(--mwai-headerButtonsColor);
}

.mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:before {
  opacity: 1;
  transform: translate(16px, 5px) rotate(135deg);
}

.mwai-chatgpt-theme.mwai-window .mwai-header .mwai-buttons .mwai-close-button:hover:after {
  opacity: 1;
  transform: translate(16px, 5px) rotate(45deg);
}

.mwai-chatgpt-theme.mwai-window .mwai-content {
  display: none;
  opacity: 0;
  max-height: var(--mwai-maxHeight);
  border-radius: 0 0 var(--mwai-borderRadius) var(--mwai-borderRadius);
}

.mwai-chatgpt-theme.mwai-window.mwai-bottom-left {
  bottom: 30px;
  right: inherit;
  left: 30px;
}

.mwai-chatgpt-theme.mwai-window.mwai-bottom-left .mwai-trigger {
  right: inherit;
  left: 0;
}

.mwai-chatgpt-theme.mwai-window.mwai-top-right {
  top: 30px;
  bottom: inherit;
  right: 30px;
}

.mwai-chatgpt-theme.mwai-window.mwai-top-right .mwai-trigger {
  top: 0;
  bottom: inherit;
}

.mwai-chatgpt-theme.mwai-window.mwai-top-left {
  top: 30px;
  bottom: inherit;
  right: inherit;
  left: 30px;
}

.mwai-chatgpt-theme.mwai-window.mwai-top-left .mwai-trigger {
  top: 0;
  bottom: inherit;
  right: inherit;
  left: 0;
}

.mwai-chatgpt-theme.mwai-window.mwai-top-left .mwai-trigger, .mwai-chatgpt-theme.mwai-window.mwai-bottom-left .mwai-trigger {
  align-items: flex-start;
}

.mwai-chatgpt-theme.mwai-window.mwai-top-right .mwai-trigger, .mwai-chatgpt-theme.mwai-window.mwai-top-left .mwai-trigger {
  flex-direction: column-reverse;
}

.mwai-chatgpt-theme.mwai-window.mwai-top-right .mwai-trigger .mwai-icon-text, .mwai-chatgpt-theme.mwai-window.mwai-top-left .mwai-trigger .mwai-icon-text {
  margin-bottom: 0;
  margin-top: 15px;
}

.mwai-chatgpt-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons {
  margin-bottom: 0px;
}

.mwai-chatgpt-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:before {
  width: 16px;
  height: 16px;
}

.mwai-chatgpt-theme.mwai-window.mwai-fullscreen .mwai-header .mwai-buttons .mwai-resize-button:hover:before {
  width: 13px;
  height: 13px;
}

.mwai-chatgpt-theme.mwai-fullscreen:not(.mwai-window), .mwai-chatgpt-theme.mwai-fullscreen.mwai-window.mwai-open {
  position: fixed;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: 0 !important;
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  z-index: 999999;
  background-color: var(--mwai-backgroundSecondaryColor);
}

.mwai-chatgpt-theme.mwai-fullscreen:not(.mwai-window) .mwai-header, .mwai-chatgpt-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-header {
  border-radius: 0;
}

.mwai-chatgpt-theme.mwai-fullscreen:not(.mwai-window) .mwai-content, .mwai-chatgpt-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-content {
  height: 100%;
  max-height: inherit;
  border-radius: 0;
}

.mwai-chatgpt-theme.mwai-fullscreen:not(.mwai-window) .mwai-content .mwai-conversation, .mwai-chatgpt-theme.mwai-fullscreen.mwai-window.mwai-open .mwai-content .mwai-conversation {
  flex: auto;
  max-height: none;
}

.mwai-chatgpt-theme.mwai-window.mwai-open .mwai-header {
  display: flex;
}

.mwai-chatgpt-theme.mwai-window.mwai-open .mwai-content {
  display: flex;
  transition: opacity 200ms ease-in-out 0s;
  opacity: 1;
}

.mwai-chatgpt-theme.mwai-window.mwai-open .mwai-trigger {
  display: none;
}

.mwai-chatgpt-theme .mwai-error {
  margin: var(--mwai-spacing);
  color: white;
  background: rgba(180, 55, 55, 0.55);
  padding: var(--mwai-spacing);
  border-radius: var(--mwai-borderRadius);
}

.mwai-chatgpt-theme .mwai-error:hover {
  cursor: pointer;
  background: rgba(180, 44, 44, 0.85);
}

.mwai-chatgpt-theme.mwai-bubble .mwai-icon-container {
  background: var(--mwai-bubbleColor);
  width: 60px;
  height: 60px;
  border-radius: 100%;
  transition: all 0.2s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mwai-chatgpt-theme.mwai-bubble .mwai-icon-container .mwai-icon {
  max-width: 50%;
  max-height: 50%;
  filter: none;
}

.mwai-chatgpt-theme.mwai-bubble .mwai-icon-container .mwai-icon:hover {
  transform: none;
}

.mwai-chatgpt-theme.mwai-bubble .mwai-icon-container .mwai-emoji {
  font-size: 30px !important;
}

.mwai-chatgpt-theme.mwai-bubble .mwai-icon-container:hover {
  cursor: pointer;
  filter: brightness(1.1);
}

@media (max-width: 760px) {
  .mwai-chatgpt-theme.mwai-window.mwai-open {
    position: fixed;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: 0 !important;
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    z-index: 999999;
    background-color: var(--mwai-backgroundSecondaryColor);
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-header {
    border-radius: 0;
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-content {
    height: 100%;
    max-height: inherit;
    border-radius: 0;
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-content .mwai-conversation {
    flex: auto;
    max-height: none;
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input {
    flex-direction: column;
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input button {
    font-size: 16px;
    margin-left: 0;
    width: 100%;
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input .mwai-input-text {
    width: 100%;
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input .mwai-input-text input, .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-input .mwai-input-text textarea {
    font-size: 16px;
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-content {
    display: flex;
    transition: opacity 200ms ease-in-out 0s;
    opacity: 1;
    height: 100%;
    max-height: inherit;
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-content .mwai-conversation {
    flex: auto;
    max-height: none;
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-resize-button {
    display: none !important;
  }
  .mwai-chatgpt-theme.mwai-window.mwai-open .mwai-trigger {
    display: none;
  }
}

@keyframes mwai-button-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

.mwai-chatgpt-theme .admin-bar .mwai-fullscreen:not(.mwai-window),
.mwai-chatgpt-theme .admin-bar .mwai-fullscreen.mwai-window.mwai-open {
  top: 32px;
}

.mwai-chatgpt-theme pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em;
}

.mwai-chatgpt-theme code.hljs {
  padding: 3px 5px;
}

.mwai-chatgpt-theme .hljs {
  color: #fff;
}

.mwai-chatgpt-theme .hljs-subst {
  color: #fff;
}

.mwai-chatgpt-theme .hljs-comment {
  color: #999;
}

.mwai-chatgpt-theme .hljs-attr, .mwai-chatgpt-theme .hljs-doctag, .mwai-chatgpt-theme .hljs-keyword, .mwai-chatgpt-theme .hljs-meta .hljs-keyword, .mwai-chatgpt-theme .hljs-section, .mwai-chatgpt-theme .hljs-selector-tag {
  color: #88aece;
}

.mwai-chatgpt-theme .hljs-attribute {
  color: #c59bc1;
}

.mwai-chatgpt-theme .hljs-name, .mwai-chatgpt-theme .hljs-number, .mwai-chatgpt-theme .hljs-quote, .mwai-chatgpt-theme .hljs-selector-id, .mwai-chatgpt-theme .hljs-template-tag, .mwai-chatgpt-theme .hljs-type {
  color: #f08d49;
}

.mwai-chatgpt-theme .hljs-selector-class {
  color: #88aece;
}

.mwai-chatgpt-theme .hljs-link, .mwai-chatgpt-theme .hljs-regexp, .mwai-chatgpt-theme .hljs-selector-attr, .mwai-chatgpt-theme .hljs-string, .mwai-chatgpt-theme .hljs-symbol, .mwai-chatgpt-theme .hljs-template-variable, .mwai-chatgpt-theme .hljs-variable {
  color: #b5bd68;
}

.mwai-chatgpt-theme .hljs-meta, .mwai-chatgpt-theme .hljs-selector-pseudo {
  color: #88aece;
}

.mwai-chatgpt-theme .hljs-built_in, .mwai-chatgpt-theme .hljs-literal, .mwai-chatgpt-theme .hljs-title {
  color: #f08d49;
}

.mwai-chatgpt-theme .hljs-bullet, .mwai-chatgpt-theme .hljs-code {
  color: #ccc;
}

.mwai-chatgpt-theme .hljs-meta .hljs-string {
  color: #b5bd68;
}

.mwai-chatgpt-theme .hljs-deletion {
  color: #de7176;
}

.mwai-chatgpt-theme .hljs-addition {
  color: #76c490;
}

.mwai-chatgpt-theme .hljs-emphasis {
  font-style: italic;
}

.mwai-chatgpt-theme .hljs-strong {
  font-weight: 700;
}

.mwai-chatgpt-theme .mwai-reply-actions {
  position: absolute;
  border-radius: 5px;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  padding: 2px 2px;
  z-index: 100;
  background: var(--mwai-backgroundPrimaryColor);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

.mwai-chatgpt-theme .mwai-reply-actions .mwai-copy-button {
  fill: var(--mwai-fontColor);
  padding: 3px 5px;
  width: 24px;
  height: 24px;
  background: var(--mwai-backgroundPrimaryColor);
  cursor: pointer;
  border-radius: 5px;
}

.mwai-chatgpt-theme .mwai-reply-actions .mwai-copy-button:hover {
  filter: brightness(1.2);
}

.mwai-chatgpt-theme .mwai-reply-actions.mwai-hidden {
  opacity: 0;
}

.mwai-chatgpt-theme .mwai-realtime {
  padding: var(--mwai-spacing);
}

.mwai-chatgpt-theme .mwai-realtime .mwai-visualizer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mwai-chatgpt-theme .mwai-realtime .mwai-visualizer hr {
  width: 100px;
  margin-right: var(--mwai-spacing);
  margin-left: var(--mwai-spacing);
  border: 1px solid var(--mwai-backgroundPrimaryColor);
}

.mwai-chatgpt-theme .mwai-realtime .mwai-visualizer .mwai-animation {
  background: var(--mwai-backgroundPrimaryColor);
}

.mwai-chatgpt-theme .mwai-realtime .mwai-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--mwai-spacing);
}

.mwai-chatgpt-theme .mwai-realtime .mwai-controls > * + * {
  margin-left: 10px;
}

.mwai-chatgpt-theme .mwai-realtime .mwai-controls button {
  border-radius: 100%;
  width: 50px;
  height: 50px;
  margin: 5px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mwai-fontColor);
  border: 2px solid var(--mwai-backgroundPrimaryColor);
  background: none;
  cursor: pointer;
  transition: all 0.2s ease-out;
  min-width: inherit;
  max-width: inherit;
}

.mwai-chatgpt-theme .mwai-realtime .mwai-controls button:hover:not(:disabled) {
  background: var(--mwai-backgroundPrimaryColor);
}

.mwai-chatgpt-theme .mwai-realtime .mwai-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: none;
}

.mwai-chatgpt-theme .mwai-realtime .mwai-controls button.mwai-active {
  border: 2px solid var(--mwai-fontColor);
}

.mwai-chatgpt-theme .mwai-realtime .mwai-last-transcript {
  margin: var(--mwai-spacing);
  margin-top: 0;
  border: 2px solid var(--mwai-backgroundPrimaryColor);
  padding: calc(var(--mwai-spacing) / 2);
  border-radius: var(--mwai-borderRadius);
  display: flex;
  justify-content: center;
  font-size: 80%;
}

.mwai-chatgpt-theme .mwai-realtime .mwai-statistics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-row-gap: 10px;
  font-size: 14px;
}

.mwai-chatgpt-theme .mwai-realtime .mwai-statistics div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mwai-chatgpt-theme .mwai-realtime .mwai-statistics label {
  font-size: 11px;
  opacity: 0.5;
  text-transform: uppercase;
}

.mwai-chatgpt-theme .mwai-realtime .mwai-options {
  margin-top: var(--mwai-spacing);
  display: flex;
  align-items: center;
}

.mwai-chatgpt-theme .mwai-realtime .mwai-options .mwai-option {
  cursor: pointer;
  opacity: 0.5;
  margin-right: 2px;
}

.mwai-chatgpt-theme .mwai-realtime .mwai-options .mwai-option.mwai-active {
  opacity: 1;
}

@media (max-width: 760px) {
  .mwai-chatgpt-theme.mwai-window {
    width: calc(100% - 40px);
    z-index: 9999999999;
  }
  .mwai-chatgpt-theme .mwai-input {
    flex-direction: column;
  }
  .mwai-chatgpt-theme .mwai-input .mwai-input-submit {
    margin: 15px 0 0 0;
    height: 40px;
    width: inherit;
  }
  .mwai-chatgpt-theme .mwai-name {
    margin-right: 0;
    max-width: inherit;
  }
}
