@import '../../style/global.less';

.@{prefix}-message-box {
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-medium);
  border: 1px solid var(--color-fill-3);
  box-sizing: border-box;
  background-color: var(--color-bg-popup);
  width: 324px;
  max-height: 360px;

  &-header {
    width: 100%;
    height: 40px;
    min-height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-fill-3);
  }

  &-header-title {
    font-weight: 500;
  }

  &-list {
    flex: 1;
    padding: 4px 0;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
  }

  &-item {
    display: inline-block;
    width: 100%;
    padding: 8px 20px;
    box-sizing: border-box;
    text-decoration: none;
    transition: all 0.2s;

    &:hover {
      background-color: var(--color-fill-2);
    }

    &[href]:hover {
      .title {
        color: rgb(var(--primary-6));
      }
    }

    &-description {
      font-size: 12px;
      color: var(--color-text-2);
      line-height: auto;
    }

    &-date {
      font-size: 12px;
      color: var(--color-text-3);
    }
  }
}
