.cometchat-ai-assistant-chat-history {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--cometchat-padding-2);
  padding-top: 0;
}

.cometchat-ai-assistant-chat-history__loading,
.cometchat-ai-assistant-chat-history__empty,
.cometchat-ai-assistant-chat-history__error {
  padding: var(--cometchat-padding-5);
  text-align: center;
  color: var(--cometchat-text-color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.cometchat-ai-assistant-chat-history__list {
  flex: 1;
  overflow-y: auto;
}

.cometchat-ai-assistant-chat-history__header-container {
  background: transparent;
  box-sizing: border-box;
  height: fit-content;
  width: 100%;
}

.cometchat-ai-assistant-chat-history .cometchat-list__header {
  background: transparent;
  border: none;
}

.cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container {
  padding-bottom: var(--cometchat-padding-5);
  box-sizing: border-box;

}

.cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button {
  height: fit-content;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  padding: var(--cometchat-padding-2);
  gap: var(--cometchat-spacing-2);
  min-height: 44px;
  justify-content: flex-start;
  padding-left: 0;

}
.cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button__text{
  color: var(--cometchat-text-color-primary);

}
.cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button__icon {
  background: var(--cometchat-icon-color-secondary);
  height: 24px;
  width: 24px;
}
.cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button:hover {
  background: var(--cometchat-background-color-03);
  border-radius: var(--cometchat-radius-2);

}
.cometchat-ai-assistant-chat-history__list-options{
  visibility: hidden;
}
.cometchat-ai-assistant-chat-history__list-item:hover .cometchat-ai-assistant-chat-history__list-options{
  visibility: visible;
}
.cometchat-ai-assistant-chat-history__list-item {
  padding: var(--cometchat-padding-3) var(--cometchat-padding-2);
  background: var(--cometchat-background-color-02);
  transition: background 0.2s ease;
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.cometchat-ai-assistant-chat-history__list-item-date-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  border-radius: var(--cometchat-radius-1, 4px);
  background: transparent;
  width: fit-content;
  min-height: 42px;
  box-sizing: border-box;
  padding: var(--cometchat-padding-5) var(--cometchat-padding-2) var(--cometchat-padding-2) var(--cometchat-padding-2);
  width: 100%;

}

.cometchat-ai-assistant-chat-history__list-item-date-header-start {
  padding: var(--cometchat-padding-2);

}
.cometchat-ai-assistant-chat-history .cometchat-menu-list__menu {
  background-color: transparent;
}

.cometchat-ai-assistant-chat-history .cometchat-menu-list__main-menu-item{
  background-color: transparent;
  box-shadow: none;
}


.cometchat-ai-assistant-chat-history .cometchat-menu-list__main-menu-item-icon-delete {
 -webkit-mask: url("../../assets/delete_icon.svg") center center no-repeat;
  mask: url("../../assets/delete_icon.svg") center center no-repeat;
  background: var(--cometchat-error-color,#F44649);
  width: 24px;
  height: 24px;
  -webkit-mask-size: contain;
}
.cometchat-ai-assistant-chat-history__list-item-date-header .cometchat-date {
  padding: 0;
}

.cometchat-ai-assistant-chat-history__list-item-container {
  height: fit-content;
  width: 100%;
}

.cometchat-ai-assistant-chat-history__list-item:hover {
  background: var(--cometchat-background-color-03);
  border-radius: var(--cometchat-radius-2);
}

.cometchat-ai-assistant-chat-history__list-item-text {
  line-height: 1.5;
  color: var(--cometchat-text-color-primary);
  font: var(--cometchat-font-body-regular);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cometchat-ai-assistant-chat-history .cometchat-list__body {
  border: none;
  padding: var(--cometchat-padding-2) 0;

}

.cometchat-ai-assistant-chat-history__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--cometchat-padding-2);
  background: var(--cometchat-background-color-02);
  min-height: 65px;
  box-sizing: border-box;
}

.cometchat-ai-assistant-chat-history__title {
  font: var(--cometchat-font-heading3-bold);
  color: var(--cometchat-text-color-primary);
  margin: 0;
}

.cometchat-ai-assistant-chat-history .cometchat-list__body-intersection-top {
  visibility: hidden !important;
}

.cometchat-ai-assistant-chat-history__close {
  background: transparent;
  border: none;
  padding: var(--cometchat-padding-2);
  cursor: pointer;
  border-radius: var(--cometchat-radius-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.cometchat-ai-assistant-chat-history__close:hover {
  background: var(--cometchat-background-color-03);
}

.cometchat-ai-assistant-chat-history__close-icon {
  width: 24px;
  height: 24px;
  mask: url("../../assets/close.svg") center center no-repeat;
  -webkit-mask: url("../../assets/close.svg") center center no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  background: var(--cometchat-icon-color-secondary);
}

.cometchat-ai-assistant-chat-history__shimmer {
  width: 100%;
  height: 100%;
  background: transparent;

}

.cometchat-ai-assistant-chat-history__shimmer-item {
  width: 100%;
  height: 48px;
  display: flex;
  width: 100%;
  padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
}

.cometchat-ai-assistant-chat-history__shimmer-item-title {
  width: 100%;
  height: 22px;
  flex-shrink: 0;
  border-radius: var(--cometchat-radius-2, 8px);
  background: var(--cometchat-shimmer-gradient-color,
      linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
  animation: shimmerAnimation 1.5s infinite linear;

}

.cometchat-ai-assistant-chat-history__empty-state-view,
.cometchat-ai-assistant-chat-history__error-state-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--cometchat-padding-5, 20px);
  justify-content: center;
  align-items: center;
  background: transparent;
}



.cometchat-ai-assistant-chat-history__empty-state-view-body,
.cometchat-ai-assistant-chat-history__error-state-view-body {
  display: flex;
  flex-direction: column;
  gap: var(--cometchat-padding, 2px);
}

.cometchat-ai-assistant-chat-history__empty-state-view-body-title,
.cometchat-ai-assistant-chat-history__error-state-view-body-title {
  width: 280px;
  color: var(--cometchat-text-color-primary, #141414);
  text-align: center;
  font: var(--cometchat-font-heading3-bold);
  font-style: normal;
}

.cometchat-ai-assistant-chat-history__empty-state-view-body-description,
.cometchat-ai-assistant-chat-history__error-state-view-body-description {
  width: 280px;
  color: var(--cometchat-text-color-secondary, #727272);
  text-align: center;
  font: var(--cometchat-font-body-regular);
  font-style: normal;
}

@keyframes shimmerAnimation {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}