.zpl-timeline {
  @apply flex items-center relative bg-surface py-xs;
  @apply dark:bg-surface-dark;

  &::before {
    content: "";
    @apply w-[1px] bg-border-divider absolute right-sm z-0;
    @apply dark:bg-border-dark-divider;
  }

  &:only-child {
    @apply py-0;
    &::before {
      @apply h-0 top-0;
    }
  }

  &:not(:only-child) {
    &::before {
      @apply h-[50%];
    }
  }

  &:first-of-type {
    @apply pt-0;
    &::before {
      @apply bottom-0;
    }
  }

  &:last-of-type {
    @apply pb-0;
    &::before {
      @apply top-0;
    }
  }

  &:not(:first-of-type):not(:last-of-type) {
    &::before {
      @apply h-full top-0;
    }
  }
}

.zpl-timeline-cart {
  @apply rounded-sm p-md border border-border-divider w-full gap-xs;
  @apply dark:border-border-dark-divider;
}
.zpl-timeline-title {
  @apply flex items-center gap-xs text-b2 text-text font-medium break-words;
  @apply dark:text-text-dark;
  span {
    word-break: break-word;
  }
}
.zpl-timeline-sub {
  @apply text-b3 text-text-soft mt-xs font-IRANYekanFaNum;
  @apply dark:text-text-dark-soft;
}

.zpl-timeline-link {
  @apply mt-xs;
  &-btn {
    @apply min-w-[135px];
    @apply text-b3 #{!important}
  }
}

.zpl-timeline-icon {
  @apply ml-md relative z-20 bg-surface py-xs;
  @apply dark:bg-surface-dark;

  svg {
    @apply w-[24px] h-[24px] text-icon-disabled;
    @apply dark:text-icon-dark-disabled;
  }

  .blue {
    @apply text-icon-information;
    @apply dark:text-icon-dark-information;
  }
  .green {
    @apply text-icon-success;
    @apply dark:text-icon-dark-success;
  }
  .warning {
    @apply text-icon-warning;
    @apply dark:text-icon-dark-warning;
  }
  .danger {
    @apply text-icon-danger;
    @apply dark:text-icon-dark-danger;
  }
}
