.categoryBox {
  height: var(--categoryBox-height, 4.3rem);
  overflow-y: hidden;
  background-color: #f3f2f2;
  border-radius: 0.8rem;
  margin-top: 0.8rem;

  .categoryHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--categoryBox-padding, 0.8rem 1.6rem);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 2.7rem;
    color: #1b1b1c;

    > p {
      font-weight: 700;
      font-size: 1.4rem;
      line-height: 2.2rem;
      text-align: right;
    }

    .boxTitle {
      display: flex;
      align-items: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      > span {
        margin: 0px;
        padding-left: 0.8rem;
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }

  .categoryText {
    background-color: white;
    margin: 1.5px;
    padding: 1.6rem;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 2.2rem;
    color: var(--categoryText-color, #515156);
    max-height: 10rem;
    overflow-y: auto;

    @include min(tablet){
      &::-webkit-scrollbar {
        height: 4px;
        width: 4px;
      }

      /* Track */
      &::-webkit-scrollbar-track {
        background: white;
      }

      /* Handle */
      &::-webkit-scrollbar-thumb {
        background: #d4d7da;
      }
    }
  }
}

.showFullCategory {
  height: auto;
}
