.AddToCollectionWidget-collectionsList {
  @apply pb-6 pt-2;

  .AddToCollectionWidget-collectionsList-title {
    @apply mb-2.5 text font-semibold text-gray-700;
  }

  .LinkTable > li {
    @apply max-h-[unset] min-h-[unset] border-b last:border-b-0;

    > a {
      @apply my-0 px-0 py-4 text-primary-600 underline;
    }
  }
}

.CollectionsWidget {
  .CollectionList-item {
    @apply relative h-9 justify-between gap-2 rounded-lg px-2 touch-device:h-[52px] touch-device:py-2;

    &:has(> a:first-child:focus-visible) {
      @apply ring-primary-100 ring-offset-1 z-[1] ring-4 ring-offset-primary-600;

      > a:focus {
        @apply ring-offset-0 ring-0;
      }
    }

    &:has(> a:first-child.is-focusRegionTarget) {
      @apply ring-offset-1 ring-4 ring-primary-300 ring-offset-primary-700 transition-[box-shadow] duration-500;

      > a:first-child {
        @apply !ring-offset-0 !ring-0;
      }
    }

    &:has(> a:first-child.was-focusRegionTarget) {
      @apply transition-[box-shadow] duration-500 ease-out;
    }

    > a:first-child {
      @apply m-0 inline-block truncate p-0;
    }

    .CollectionList-item-edit {
      @apply btu-button btu-button-text-hidden btu-button-fill-none btu-button-gray btu-button-xs shrink-0 bg-white before:btu-icon before:btu-icon-settings touch-device:btu-button-sm hover:bg-gray-100;
    }

    &.selected > .CollectionList-item-edit {
      @apply text-primary-800;
    }
  }

  .SearchResult {
    .SearchResult-fullscreen,
    .SearchWidget-controlsToggle {
      @apply hidden;
    }

    .SearchResult-sorts {
      @apply ms-4;
    }
  }
}

.CollectionSubmissionWidget {
  .Message {
    @apply mb-4;
  }

  ul {
    @apply list-disc pl-4;
  }
}
