.points-element-container {
  --points-element-white: white;

  border-radius: 1rem;

  &.dropdown-active {
    background-color: var(--points-element-prim-color);
  }

  .points-element {
    min-width: 5rem;
    display: grid;
    grid-template-columns: 25% 75%;
    grid-template-rows: 100%;
    grid-auto-flow: column;
    direction: ltr;
    column-gap: 1.4rem;
    align-items: center;
    margin: auto var(--gap-1);
    padding: 0.5rem;

    @media screen and (max-width: 768px) {
      grid-template-columns: auto;
      grid-template-rows: auto;
      grid-auto-flow: row;
      justify-content: center;
      justify-items: center;
    }

    &:hover, &:focus {
      text-decoration: none;
    }

    svg {
      flex-shrink: 0;
      width: 22px;
      height: 22px;

      path {
        stroke: var(--points-element-prim-color);
        fill: var(--points-element-prim-color);
      }
    }

    svg.icon-plus {
      width: 14px;
      height: 14px;
      position: absolute;
      transform: translate(100%, -40%);
      z-index: 1000;
    }

    .counter {
      font-weight: 800;
      color: var(--points-element-prim-color);
    }

    &.dropdown-active {
      svg {
        path {
          stroke: var(--points-element-white);
          fill: var(--points-element-white);
        }
      }

      .counter {
        color: var(--points-element-white);
      }
    }
  }

  .points-element-dropdown {
    position: absolute;
    right: 0;
    min-height: 9rem;
    height: auto;
    width: 20rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    margin-top: 0.3rem;
    background: var(--points-element-white);
    transition: all 0.1s cubic-bezier(0.16, 1, 0.5, 1);
    transform: translateY(0.5rem);
    visibility: hidden;
    opacity: 0;
    display: none;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;

    &.show-dropdown {
      transform: translateY(0);
      visibility: visible;
      opacity: 1;
      display: block;
      z-index: var(--zindex-dropdown-menu);
    }

    .parent-container {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      row-gap: 0.5rem;
      padding: 0.5rem 1rem;
      min-height: 9rem;
      height: 100%;
      font-weight: bold;

      .content {
        width: 100%;
      }

      p {
        width: 100%;
        margin-top: 0.3rem;
        margin-bottom: 0.3rem;
        min-height: 3rem;
        display: inline-flex;
        align-items: flex-start;
        border-radius: 10px;
        padding: 10px;
        flex-direction: column;

        &.new {
          background: #dddddd;
        }

        .date {
          font-size: 12px;
          font-weight: normal;
          font-style: italic;
        }
      }

      .content-loader {
        width: 100%;
        text-align: center;
      }
    }
  }
}

.usertext {
  white-space: nowrap;
}