.ds-activity-feed {
  --activity-feed-bg-accent-purple-subtle: var(--bh-bg-accent-purple-subtle);
  --activity-feed-bg-raised: var(--bh-bg-raised);
  --activity-feed-bg-success: var(--bh-bg-success-default);
  --activity-feed-border-accent-purple-strong: var(--bh-border-accent-purple-strong);
  --activity-feed-border-default: var(--bh-border-default);
  --activity-feed-border-subtle: var(--bh-border-subtle);
  --activity-feed-content-default: var(--bh-content-default);
  --activity-feed-content-link: var(--bh-content-link);
  --activity-feed-content-on-brand: var(--bh-content-on-brand);
  --activity-feed-content-subtle: var(--bh-content-subtle);
  --activity-feed-interactive-brand: var(--bh-interactive-brand-default);
  --activity-feed-interactive-secondary: var(--bh-interactive-secondary-default);
  --activity-feed-radius-full: var(--bh-radius-full);
  --activity-feed-radius-sm: var(--bh-radius-sm-4);
  --activity-feed-control-radius: var(--bh-control-default);
  --activity-feed-space-xxs: var(--bh-space-xxs-2);
  --activity-feed-space-xs: var(--bh-space-xs-4);
  --activity-feed-space-md: var(--bh-space-md-8);
  --activity-feed-space-lg: var(--bh-space-lg-10);
  --activity-feed-space-xl: var(--bh-space-xl-12);
  --activity-feed-shadow-component: var(--shadow-component-default);
  --activity-feed-shadow-color-button: var(--shadow-button-raised);

  box-sizing: border-box;
  position: relative;
  width: var(--bh-activity-feed-compact-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--activity-feed-content-default);
  font-family: var(--bh-font-family);
  letter-spacing: 0;
}

.ds-activity-feed *,
.ds-activity-feed *::before,
.ds-activity-feed *::after {
  box-sizing: border-box;
}

.ds-activity-feed button,
.ds-activity-feed a {
  font: inherit;
}

.ds-activity-feed a {
  text-decoration: none;
}

.ds-activity-feed--rtl {
  font-family: var(--bh-font-family);
}

.ds-activity-feed-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--activity-feed-space-xl);
  color: var(--activity-feed-content-default);
}

.ds-activity-feed-item__indicator {
  align-self: stretch;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: var(--activity-feed-space-xxs);
  padding-top: var(--activity-feed-space-xxs);
}

.ds-activity-feed-item__avatar {
  position: relative;
  width: var(--bh-space-6xl-32);
  height: var(--bh-space-6xl-32);
  flex: 0 0 auto;
  overflow: hidden;
  border: var(--bh-space-xxxs-1) solid var(--activity-feed-border-subtle);
  border-radius: var(--activity-feed-radius-full);
  background: var(--activity-feed-bg-raised);
}

.ds-activity-feed-item__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-activity-feed-item__line {
  width: var(--bh-space-xxxs-1);
  min-height: var(--bh-space-xxxs-1);
  flex: 1 0 0;
  border-radius: var(--activity-feed-radius-full);
  background: var(--activity-feed-border-default);
}

.ds-activity-feed-item__content {
  min-width: 0;
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--activity-feed-space-lg);
}

.ds-activity-feed-item--rtl .ds-activity-feed-item__content {
  align-items: flex-end;
}

.ds-activity-feed-item__container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--activity-feed-space-lg);
}

.ds-activity-feed-item__topline {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--bh-space-sm-6);
}

.ds-activity-feed-item--rtl .ds-activity-feed-item__topline {
  justify-content: flex-end;
}

.ds-activity-feed-item__text {
  min-width: 0;
  flex: 1 0 0;
  display: flex;
  align-items: center;
  gap: var(--activity-feed-space-xs);
  color: var(--activity-feed-content-default);
  font-size: var(--bh-text-body-md-font-size);
  font-weight: var(--bh-font-weight-regular);
  line-height: var(--bh-text-body-md-line-height);
  white-space: nowrap;
  word-break: break-word;
}

.ds-activity-feed-item--rtl .ds-activity-feed-item__text {
  justify-content: flex-end;
  text-align: right;
}

.ds-activity-feed-item__text strong {
  color: var(--activity-feed-content-default);
  font-weight: var(--bh-font-weight-medium);
}

.ds-activity-feed-item--rtl .ds-activity-feed-item__text strong {
  font-weight: var(--bh-font-weight-semibold);
}

.ds-activity-feed-item__support {
  color: var(--activity-feed-content-subtle);
}

.ds-activity-feed-item__link {
  color: var(--activity-feed-content-link);
}

.ds-activity-feed-item__status {
  width: var(--bh-space-3xl-16);
  height: var(--bh-space-3xl-16);
  flex: 0 0 var(--bh-space-3xl-16);
  display: inline-grid;
  place-items: center;
  padding: var(--bh-space-xxxs-1);
}

.ds-activity-feed-item__status > span {
  width: var(--bh-space-sm-6);
  height: var(--bh-space-sm-6);
  border-radius: var(--activity-feed-radius-full);
  background: var(--activity-feed-bg-success);
}

.ds-activity-feed-item__caption,
.ds-activity-feed-item__slot {
  width: 100%;
  min-width: 0;
  border-radius: var(--activity-feed-radius-sm);
  font-size: var(--bh-text-body-md-font-size);
  font-weight: var(--bh-font-weight-regular);
  line-height: var(--bh-text-body-md-line-height);
  word-break: break-word;
}

.ds-activity-feed-item__caption {
  min-height: calc(var(--bh-space-8xl-48) + var(--bh-space-xxs-2));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: var(--bh-space-xxxs-1) solid var(--activity-feed-border-subtle);
  background: var(--activity-feed-bg-raised);
  color: var(--activity-feed-content-default);
  padding: var(--activity-feed-space-xl);
}

.ds-activity-feed-item--rtl .ds-activity-feed-item__caption {
  justify-content: flex-end;
  text-align: right;
}

.ds-activity-feed-item__slot {
  height: calc(var(--bh-space-9xl-64) + var(--bh-space-xl-12));
  display: grid;
  place-items: center;
  overflow: hidden;
  border: var(--bh-space-xxxs-1) dashed var(--activity-feed-border-accent-purple-strong);
  background: var(--activity-feed-bg-accent-purple-subtle);
  color: var(--activity-feed-content-subtle);
  font-size: var(--bh-text-body-xs-regular-font-size);
  line-height: var(--bh-text-body-sm-regular-line-height);
}

.ds-activity-feed-item__timestamp {
  width: 100%;
  min-width: 0;
  color: var(--activity-feed-content-subtle);
  font-size: var(--bh-text-body-sm-regular-font-size);
  font-weight: var(--bh-font-weight-regular);
  line-height: var(--bh-text-body-sm-regular-line-height);
}

.ds-activity-feed-item--rtl .ds-activity-feed-item__timestamp {
  text-align: right;
}

.ds-activity-feed-item__actions {
  display: flex;
  align-items: flex-start;
  gap: var(--activity-feed-space-md);
  padding-top: var(--activity-feed-space-md);
}

.ds-activity-feed-item__button {
  position: relative;
  min-width: 0;
  height: calc(var(--bh-space-6xl-32) + var(--bh-space-xs-4));
  border: var(--bh-space-xxxs-1) solid transparent;
  border-radius: var(--activity-feed-control-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--activity-feed-space-xl);
  box-shadow: var(--shadow-button-raised);
  cursor: pointer;
  font-size: var(--bh-text-body-md-font-size);
  font-weight: var(--bh-font-weight-medium);
  line-height: var(--bh-text-body-md-line-height);
  white-space: nowrap;
}

.ds-activity-feed-item__button--primary {
  border-color: var(--activity-feed-interactive-brand);
  background: var(--activity-feed-interactive-brand);
  box-shadow: var(--activity-feed-shadow-color-button);
  color: var(--activity-feed-content-on-brand);
}

.ds-activity-feed-item__button--secondary {
  border-color: var(--activity-feed-border-default);
  background: var(--activity-feed-interactive-secondary);
  color: var(--activity-feed-content-default);
}

.ds-activity-feed-item__button:hover {
  filter: brightness(var(--bh-activity-feed-completed-brightness));
}

.ds-activity-feed-item__button:disabled {
  cursor: not-allowed;
  opacity: var(--bh-opacity-muted);
}

.ds-activity-feed-item__button:focus-visible {
  outline: var(--bh-space-xxs-2) solid var(--activity-feed-content-link);
  outline-offset: var(--bh-space-xxs-2);
}

.ds-activity-feed-item__bottom-space {
  width: 100%;
  height: calc(var(--bh-space-4xl-20) + var(--bh-space-xxs-2));
  flex: 0 0 auto;
}
