@use "../base/var";

[part~="wy-pane"] {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
}

[part~="wy-pane-body"] {
  display: flex;
  flex-direction: column;
  flex: 1;
}

[part~="wy-pane-group"] {
  padding: var.default(--wy-padding);
  display: flex;
  flex-direction: column;
  flex: 1;
}

[part~="wy-pane-group-fixed-size"] {
  flex: 0;
}

[part~="wy-pane-toolbar"] {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  padding: var.default(--wy-padding-sm);
}

.wy-member-title {
  display: flex;
  align-items: center;
  gap: var.default(--wy-gap-sm);
  min-width: 0;

  > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

// Blocked users are marked in search results, never hidden -- they stay selectable, since group participation is
// unrestricted. Only the image and body dim, so the selection checkbox stays legible.
[part~="wy-users-search-blocked"] {
  &::part(wy-item-image),
  &::part(wy-item-body) {
    opacity: var.default(--wy-opacity-disabled);
  }
}

// Blocked members are marked in the group details list, never hidden -- group participation is unrestricted, so this is
// informational.
[part~="wy-conversation-details-member"]::part(wy-item-interactive) {
  cursor: default;
}

[part~="wy-conversation-details-member-blocked"] {
  &::part(wy-item-image),
  &::part(wy-item-body) {
    opacity: var.default(--wy-opacity-disabled);
  }
}
