@import '../../scss/styles.scss';

.list-drawer {
  &__header {
    margin-top: base(2.5);
    width: 100%;

    @include mid-break {
      margin-top: base(1.5);
    }
  }

  &__header-wrap {
    display: flex;
    gap: base(1);
  }

  &__header-content {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    align-items: flex-start;

    button .pill {
      pointer-events: none;
      margin: 0;
      top: 4px;
      margin-left: base(0.5);
    }
  }

  &__header-text {
    margin: 0;
  }

  &__header-close {
    flex-shrink: 0;
  }

  &__toggler {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: inherit;

    &:focus:not(:focus-visible),
    &:focus-within:not(:focus-visible) {
      outline: none;
    }

    &:disabled {
      pointer-events: none;
    }
  }

  &__header-close {
    border: 0;
    background-color: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    overflow: hidden;
    width: base(1);
    height: base(1);

    svg {
      width: base(2.75);
      height: base(2.75);
      position: relative;
      left: base(-0.825);
      top: base(-0.825);

      .stroke {
        stroke-width: 2px;
        vector-effect: non-scaling-stroke;
      }
    }
  }

  &__select-collection-wrap {
    margin-top: base(1);
  }

  &__first-cell {
    border: 0;
    background-color: transparent;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-align: left;
    white-space: nowrap;
  }

  @include mid-break {
    .collection-list__header {
      margin-bottom: base(0.5);
    }

    &__select-collection-wrap {
      margin-top: calc(var(--base) / 2);
    }

    &__header-content {
      button .pill {
        top: 2px;
      }
    }
  }
}
